using unix improved!

basic unix

With xfce, a lot can be done without using the command line. Still, it's good to know at least these basic commands. Open up an xterm and try them out!

ls               : list contents of current directory
ls -al           : list all files using long format
mkdir cs21       : make a new directory called cs21
ls -l            : list files using long format
cd cs21          : move into cs21 dir
ls -l            : list files using long format
cd ..            : move up one dir
pwd              : print working dir (where you are)
less .bashrc     : view contents of .bashrc file (q to quit viewer)
cp .bashrc test  : copy .bashrc file to new file called test
rm test          : remove the file called test
cd               : move back to your home dir (/home/username)

What does this command do?

ls -l /scratch/usingunix/unix_commands

Can you view what's in the file /scratch/usingunix/unix_commands? Can you copy that file to your home directory?

Here are some more links to unix help: