A list of commands commonly used in Linux.
neditin any terminal window
pwd: prints the name of the directory you are currently in
ls: lists the contents of the current directory
cdfoo : change to the directory named "foo"
mkdirfoo : create a new directory named "foo"
rmdirfoo : remove the directory named "foo". NOTE: this permanently removes the directory, so use with care!
cdby itself returns you to your home directory
cd ..changes to the directory directly above the current one (the "parent" directory)
morefoo.txt : displays the contents of the file named "foo.txt"
rmfoo.txt : removes the file named "foo.txt". NOTE: this permanently removes the file, so use with care!
cpfoo.txt foo1.txt : copies the file "foo.txt" into the file "foo1.txt". Preserves the original file.
mvfoo.txt foo2.txt : moves the file "foo.txt" into the file "foo2.txt". Removes the original file.
manfoo : displays a help ("manual" page) for the command "foo", if one exists.
cs117: submits the file "foo.txt" via the homework submission program (
hsp) to the cs117 folder.
hsp -h: help for the
hsp -c cs117: checks what files you have submitted via
nedit &opens NEdit in the background.
neditfoo.txt opens the file "foo.txt" in an NEdit window.
javacFoo.java : compiles the program "Foo.java"
javaFoo : runs the Java program contained in the file "Foo.class"
Last updated by Amy Csizmar Dalal (email: adalal at carleton dot edu), Department of Mathematics and Computer Science, Carleton College, on Tue Sep 14 13:03:04 2004