Directory commands
- ls - list the files in the current directory.
- ls directory - list the files in the named directory
- ls -l directory - list information about the files in the
named directory
- pwd - "pwd" stands for "present working directory." This command gives you
the path for the directory you are currently in.
- mkdir name - make a directory with the name name
- rmdir name - remove the directory with name name.
This only works if the directory is empty.
- rm name - remove the file with the name name.
- rm -rf name - remove the file or directory with name
name. If name is a directory, everything in it is also
removed. Use this command with extreme caution.
- cd path - change directory to the directory specified using
path.
- mv from to - move the file or directory from
to to (both from and to can be paths).
- cp from to - copy the file or directory from
to to.
- less name - look at the file called name.
Software Tools