![]() |
![]() |
Newbie's Linux Manual |
Command Tutorial #3: cp & mv & rm |
by Laurence Hunter |
[ Home ] [ Contents ] [ Download*] [ Previous ] [ Next ] |
* In Linux enter: unzip nlm.zip |
cp - copy |
Examples cp -r a b cp a.txt backup cp a.txt backup/a_bk.txt cp -i a.txt backup/a_bk.txt cp a b c d |
Note |
When copying more than one file you can't rename it at the same time. |
mv - move |
mv is a clever little command that will either move a file (mv file directory), or rename it (mv oldfilename newfilename). mv a b c work/reports mv -i a b c work/reports mv a.txt b.txt |
rm - remove |
rm a b c rm -i a b c rm -r work/reports |
[ Home ] [ Contents ] [ Download*] [ Previous ] [ Next ] |
* In Linux enter: unzip nlm.zip |
The Newbie's Linux Manual is reproduced on LinuxMall.com by permission. The Newbie's Linux Manual is written and maintained by Laurence Hunter. You can find much more of Laurence's work at his site: www.Linuxdot.org |
© 1999 Linuxdot.org | Manual's Copyright Terms