Commands covered: mkdir, ls, cd, cp, mv
Other material covered: tab completion
pwd stands for print working directory, and should show something like /users/grad/gates.pwd
mkdir stands for make directory.mkdir tutorial
cd stands for change directory.cd tutorial
cp stands for copy. To "move" the original file to a new location, rather than copying it, use "mv". If you try to mv the above file, you will get a permission denied because you do not own the file (more on permissions later!) Also, note that the "." here means the current directory. To copy that file to the parent directory (in this case, your home directory), use "..".cp /users/grad/gates/public_html/tutorials/this_is_a_tutorial_file .
Shortcuts:
This works because the shell interprets the ~ as meaning check the password file for the path to the home directory of the username occuring after the ~.cp ~gates/public_html/tutorials/this_is_a_tutorial_file .
ls stands for LiSt files.ls
mv stands for MoVe file. You can use this command to move/rename directories as well as files. Unix treats directories as essentially a special type of file.mv this_is_a_tutorial_file tut_file
cat is short for concatenate. You can use this command to display multiple files by listing more files after the command, e.g.cat tut_file
There are many other ways to view a file. Rather than have the whole file scroll by, it can be viewed page by page using "more" or "less". The command "less" is just like "more" except that it has more functionality. Try using less now (to get out of less, hit q for quit):cat file1 file2 file3
less tut_file