Basic Unix Commands: Cat - List A File
Basic Unix Commands: Cat - List A File
Basic Unix Commands: Cat - List A File
You must first logon to a UNIX machine. The method(s) to do this vary, so check with the facility you are at
on how to logon.
Once logged on, these commands are essential to learn. More information about them (and other commands)
can be obtained by entering man command (short for manual). For example, to obtain a manual about the
command cat, you would type man cat.
cd - Change directory
USAGE: cd [ directory ]
EXAMPLES: cd
cd mysource
NOTE: The command cd with no arguments will take you to your home directory ( i.e.
the directory you start in when you first login to the system ).
The command cd .. will take you to the directory above the one you are in.
cp - Copy a file
USAGE: logout
NOTE: Where you are returned to when you logout is depending on the method used to login
to the unix system. If you try to logout and you get an error message
“there are stopped jobs”, then type a fg command to go back to that job, then
you can properly exit the session and logout.
USAGE: ls [ file1... ]
EXAMPLES: ls
ls *.exe (this lists only files that end with the extension .exe)
ls pkzip.* (this lists only files that begin with pkzip and has any extension)
mkdir - Create a new directory
USAGE: passwd
NOTE: As you type in the passwords, the characters are not displayed on the screen.
USAGE: pwd
NOTE: pwd tells you which directory you are in.
rm - Remove file(s)
USAGE: rm file...
EXAMPLE: rm myfirst.old
USAGE: finger
NOTE: If you use this command followed by a user’s login name, it will give some information
about that’s user’s account; directory route, last time he or she logged in, etc.
who - Identifies who is currently logged on the unix machine, but displays less information than
with the “finger” command.
USAGE: who
spell - It checks your documents for spelling errors using an online dictionary.
USAGE: pine
NOTE: This program allows you to organize your e-mail, plus has other unique features that
the Regular mailing system doesn’t provide. You can also pick up a user guide for
“pine” as well.