Navigating Directories

Like MS-DOS, there is a nack to moving around the Linux command line and life gets easier once a few rules have been noted. Unlike DOS which shows the full path, Linux only shows the current directory at the command prompt, by default.

The pwd command (print working directory) will show the full path to the current
directory, starting from root ( / ).

Many Unix commands have DOS equivalents and are sometimes interchangeable. The DOS dir (directory listing) can be used in Linux, although the Unix ls (list) command will do a better job by listing directories and files in different colours.