Saturday, December 11, 2010

More on Terminal

 Another day again using terminal, but not as simple as the previous one. Commands such as pwd and cd are still used but with other commands. New commands such as cp, mv, rm, cat, less, head, tail and grep are introduced.


according to my understandings...
cp - is used to copy a file to another directory
mv - is used to move or rename a file
rm - is used to remove a file, however we use "rmdir" to remove a directory
cat - is used to display the contents of a file
less - is almost the same as cat but displays the file per page
head - it is used to display the first 10 lines of a file
tail - the opposite of head which displays the last 10 lines of a file
grep - it is used to search specific words in a file


 in executing commands that involves files. knowing their path names is indeed neded
absolute path names are those which are relative to the main directory or the root
relative path names are those which are relative only to the current directory


well i'm hoping for new commands by the next meeting :)

No comments:

Post a Comment