You are on page 1of 1

COMMAND SYNTAX DESCRIPTION

* (asterisk) Wildcard character representing zero or more of any and all adjacent
characters in file or directory names.
. (period) Notation for "current working directory."
.. (2 periods) Notation for "directory immediately above current working directory"; used with
cd and ls commands.
~ (tilde) Notation for absolute path of user's home directory.
~login Absolute path of the home directory of the user specified by Login.
cat filename Concatenate (or display) the entire file specified to the screen.
cat filename1 filename2 > filename3 Combine two or more existing files into a new file.
cat filename >> existing_filename Append one or more files to the end of an existing file.
chmod [ugoa][+-][rwx] filename Changes permissions on file or directory;u=user, g=group, o=others, a=all; +
= add permission, -=remove permission; r=read permission, w=write
permission, x=execute permission
cd dirname Change to the specified directory; can take relative or absolute path.
cp [-i] filename1 filename2 Create a duplicate of the file in the current working directory. Options include i
(interactive, prompt for y or n before overwriting an existing file).
cp [-i] filename dirname Create a duplicate of the file with the same name in the directory specified.
Options include i (interactive, prompt for y or n before before overwriting an
existing file).
cp [-i] filename dirname/filename Create a duplicate of the file with a different name in the directory specified.
Options include i (interactive, prompt for y or n before overwriting an existing
file).
lpr [-p] printer filename Print file to a specified printer
ls [-al] [filename(s) or dirname] List the specified file(s),or all the files in the specified directory. Options
include a (list all, including dot files) and l (long format).
mkdir dirname(s) Make one or more new directories with the name(s) specified.
more filename Display the specified file one screen at a time.
mv [-i] old_filename new_filename Rename the specified file. Options include i (interactive, prompt for y or n
before overwriting an existing file).
mv [-i] old_dirname new_dirname Rename the specified directory. Options include -i (interactive, prompt for y or
n before overwriting an existing directory).
mv [-i] dirname1 dirname2 Move the first directory (and all files and subdirectories it contains) to the
second directory. Directoryname2 must already exist. Options include -i
(interactive, prompt for y or n before overwriting an existing directory).
mv [-i] filename dirname Move the specified file to the specified directory. Options include -i (interactive,
prompt for y or n before overwriting an existing file).
rm [-i] filename(s) Remove the specified file(s). Options include -i (interactive, prompt for y or n
before removing).
rmdir [-i] dirname(s) Remove the specified directory(s) which must be empty. Options include -i
(interactive, prompt for y or n before removing).
pico filename Invokes the easy-to-use editor pico to edit named file. To start from scratch,
just use pico
pwd Print the name of the current working directory to the screen.
quota -v Return information about your quota limits ad current usage.