File Handling
In order to make a copy of a file the command is simple:
cp file1 file2
This command makes a copy of file1 and gives it the name of file 2.
This must be done in order. The new file will appear in your current
working directory. You can then move or modify it however you wish.
To move a file to a different directory just use the move command followed by the pathname of the directory where you would like to move it to like so:
mv filename exampledirectory/another/
the move command also serves the purpose of renaming files. The
command
mv file1 file2
will rename file1 to file2
To remove a file use the remove command followed the name of the file
you would like to delete. For example:
rm filename
When working in unix you will quickly fill your window with commands
and results which can confuse you or just be in the way. To clear the
screen use the following command:
clear