Unix command crib sheet

 

á    cd <dir> – Change directory

á    cd .. – change directory to one higher

á    cd ../../ -- change directory to two higher etcÉ

á    pwd – print working/current directory

á    ls <dir> – List directory contents of <dir>

o  ls – list current directory (no second argument)

á    cp A B – copy file A to B (A and B become identical)

á    mv A B – move file A to B (deletes A, B is a copy)

á    rm A – remove file A

á    emacs A – edit file A

á    javac A – java compile file A

á    java A – java run file A

á    more A – look at the contents of file A

á    xmgrace – running graphing package