MCS-203 Math Research Immersion
Fall 2003
A few useful commands
-
tcsh: type this if your xterm/terminal starts out with "bash-x.xxx$"
-
pwd: show current directory print working
directory
-
ls: show the contents of a directory. ls -a will also
show files whose name begins with a dot. ls -l shows lots of
miscellaneous info about each file. ls -t sorts the most
recently changed to the top.
-
cd directory: change directory. If directory is not
specified, goes to home directory.
-
mkdir name: create a directory
-
rmdir name: delete a directory. The directory must be empty.
-
cd: change directory back to main home directory
-
cp old new: creates a file named new containing the same thing
as old. If there was already a file named new, it is overwritten.
-
rm file: delete a file
-
mv old new: rename a file from old to new (also works for
moving things between directories). If there was already a file nmed
new, it gets overwritten.
-
-
Once you know what command you want, you can get more detailed syntax
information by typing "command --help" e.g. "cp --help"
If you want to page through information a screenful at a time, type
command | more e.g. "ls | more" or "cd --help | more"
A brief
unix tutorial ("print" doesn't work on our system)
another unix tutorial
Last modified: 1/8/04 14:01