Working with Directories



next up previous contents index
Next: Using Directories Up: Your Home Directory Previous: Your Home Directory

Working with Directories

Here are some commands for working with directories which you should try out on your terminal as you read about them:  


DIRECTORY COMMANDS
mkdir dirname
Create new directory dirname.
rmdir dirname
Remove empty directory dirname.
cd dirname
Change to directory dirname.
cd
Change to home directory.
cd ..
Change directory to one level above
cd .
Change to current directory (this does nothing).
ls dirname
List files and directories in dirname, default: ..
ls -CF
List distinguishing directories, programs, and files.
ls -l dirname (ll)
Long list of files in dirname.
pwd
Print working directory's name, i.e., where I am.



next up previous contents index
Next: Using Directories Up: Your Home Directory Previous: Your Home Directory