November 1998
Beginner
368 pages
7h 58m
English
As you begin using UNIX and start moving around in directories and files, you're likely to get a bit lost—that is, forget which directory or subdirectory you're in. You can use the pwd command to get a reminder of where you are, as shown in Code Listing 1.5.
You can request just the directory name, or you can get fancy and request the directory's name and its contents, courtesy of ls.
To find out the name of the current directory:
pwd
To find out the name of the current directory and its contents: ...
Read now
Unlock full access