Files
Creating a File
If you are not familiar with a Unix editor, please look at the Emacs tutorial or Vi tutorial.
Generate a file called cake with a few lines of text.
Copying Files
cp (copy)
cp cake candy is the command which makes a copy of cake in the current working directory and calls it candy
Moving files
mv (move)
mv cake soda moves (or renames) cake to soda
To move a file from one place to another, use the mv command. This has the effect of moving rather than copying the file, so you end up with only one file rather than two.
It can also be used to rename a file, by moving the file to the same directory, but giving it a different name.
Removing files and directories
rm (remove)
To delete (remove) a file, use the rm command.
rm cake will remove the file named cake