Debian GNU/Linux : Guide to Installation and Usage by John Goerzen;Ossama Othman
page 82 of 298 (27%)
page 82 of 298 (27%)
![]() | ![]() |
|
and it means the same thing.
A final handy tip: The tilde ~ is equivalent to your home directory. So typing cd ~ is the same as typing cd with no arguments. Also, you can type things like cd ~/practice/mysubdirectory to change to the directory /home/yourname/practice/mysubdirectory. In a similar way, ~myuser is equivalent to the home directory of the user ``myuser,'' which is probably something like /home/myuser; so ~myuser/docs/debian.ps is equivalent to /home/myuser/doc/debian.ps. Here are some more file commands to try out, now that you know about relative filenames. cd to your home directory before you begin. mkdir practice In your home directory, make a directory called practice. You'll use this directory to try out some other commands. You might type ls to verify that your new directory exists. cd practice Changes the directory to practice. mkdir mysubdirectory Creates a subdirectory of practice. cp /etc/profile . cp is short for ``copy.'' /etc/profile is just a random file on your system, don't worry about what it is for now. We've copied it to . (recall that . just means ``the directory I'm in now,'' or the current working directory). So this creates a copy of /etc/profile and puts it in your practice directory. Try typing ls to verify that there's indeed a file |
|