A Casual guide to some commonly used Linux Commands
Through this document i try to explain some of the commonly used commands under linux and their basic use In this first part of series we cover ls,cat,arch,bzip2,gzip,tar,pwd,more,mpg123
1. cat : ( concatenate)
This command can be used for diplaying content of a file on the console, combining two files into a single file , or appending content of one or more files into a single file commonly.
cat v1 This statement would display the file named v1 on the console
cat v1 v2 v3 > v4 This statement would combine the content of textfile v1,v2,v3 and create a new file v4 having all the content of three files.
cat v4 >> v5 This statement would append v4 file at the end of file v5. To end the statement type (Ctrl + D (EOF))
cat > filename << STOP This statement would create a filenamed filename at the console and aaccept input from the user for the file , the file is ended(terminated ) on typing Ctrl + D.