rm file1 file2 dir1/file1 deletes the specified files
rm *.bak deletes all '.bak' files in current dir
rm -i * query each file Y/N as you delete them
rm * .bak deletes all files in current directory
then tries to delete the non-existent
rm sec*tx deletes all files whose names start
with sec and end with tx.
The command cp file1 file2 copies contents of file1 into file2. Both file1 and file2 then contain duplicates of the same information. The original contents of file2 (if any) get blown away. If file2 had another name (file3), then file3 also now refers to the new contents.
The command mv file1 file2 severs the file name 'file2' from its original contents and connects it to the contents of the file called 'file1'. The original contents (shaded) can then be referred to by either file name. If the original 'file2' was linked to another file name 'file3' they can still be referred to by the linked name 'file3':
The command ln file1 file2 causes the file name 'file2' to disconnect from the data it originally represented and connect to the same data as the file name 'file1':
© 1998 Robert John Morton