Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - CUSTOMIZATION Instrukcja Użytkownika Strona 233

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 300
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 232
16.2 Getting From Here to There: cd 221
[billy@localhost /]$
That single forward slash means youre at the root. When youre at the root, you cant go any higher
on your system (the same is true in DOS/Windows).
To get back to your login directory from the root directory by using the absolute path, just type:
cd /home/billy
Youre home.
Using the absolute path is just one way to move around. Another method of getting from one point
to another is by using the relative path (as in Figure 16.3).
Letsgobacktotheroot directory:
cd /
Now, letsmoveback to your login directory using relative pathnames:
cd home/billy
Notice that the / is missing? Thats because the root directory is the parent of the home directory,
which means that the home directory is one step down from the root directory. Since home is the
parent of the directory called billy, these two directories are separated with a /.
If youre in your login directory, you can move up one directory, to home, just by typing:
cd ..
The relative path describes the directory you want to cd to in terms which are relative to your current
directory.
When you typed cd ..,youweresayinggo up one directory. The next directory up, from your
login directory, was home.
Tip: When speaking of directories which hold other directories, you can refer to them
as parent directories.Inourcase,home is the parent directory of billy.
Using two dots (..) when you cd is the same as stating you want to go to the parent of your current
working directory. Try using a single dot. Type:
Przeglądanie stron 232
1 2 ... 228 229 230 231 232 233 234 235 236 237 238 ... 299 300

Komentarze do niniejszej Instrukcji

Brak uwag