S5 version Table of Contents (frame/ no frame)
(17) Navigating Directories Previous Top Next

Navigating Directories

Commands to try

pwd
Print Working Directory. Shows you where you are in the file system - usually this information is configured to be part of the shell prompt too.
cd [directory]
Change Directory. With no argument, this changes the current directory back to your home directory. With a directory name, it tries to change directory to the named location, as long as it exists and you have permission to go there. The directory name can be an absolute or relative path (more on this later).
cd ~username
Shortcut to go to the home directory of username.
cd ..
Moves up one directory
ls
Lists the files in the current (working) directory.
ls path_name
E.g. ls /usr/local/bin Lists the files in the named directory.
ls -al
Shows a "long" listing of the files. Include "hidden" files because -a was given.
ls -FR
Recursively lists all sub-directories and displays executable files with an appended "*" and directories with an appended "/". Don't do this starting at the root directory!

Command history in the tcsh: try pressing the arrow keys to recall previous commands and edit them before re-executing.

Previous Top Next


slide19.src  last modified Jan 31, 2011 Introduction Table of Contents
(frame/no frame)
Printable
(single file)
© Dartmouth College