Debian GNU/Linux : Guide to Installation and Usage by John Goerzen;Ossama Othman
page 84 of 298 (28%)
page 84 of 298 (28%)
![]() | ![]() |
|
directory into, or it can be a new filename. cp works the same way.
As usual, you can type ls to see the result of mv. mv myprofile .. Just as . means ``the directory I'm in now,'' .. means ``parent of the current directory,'' in this case the practice directory you created earlier. Use ls to verify that that's where myprofile is now. cd .. Changes directories to the parent directory - in this case practice, where you just put myprofile. rm myprofile rm means ``remove,'' so this deletes myprofile. Be careful! Deleting a file on a GNU/Linux system is permanent - there is no undelete. If you rm it, it's gone, forever. Be careful! To repeat, deleting a file on a GNU/Linux system is permanent - there is no undelete. If you rm it, it's gone, forever. rmdir mysubdirectory rmdir is just like rm, only it's for directories. Notice that rmdir only works on empty directories. If the directory contains files, you must delete those files first, or alternatively you can use rm -r in place of rmdir. cd .. This moves out of the current directory, and into its parent directory. Now you can type the following: |
|