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
cp .bashrc test  : copy .bashrc file to new file called test
rm test          : copy .bashrc file to new file called test
cd               : move back to your home dir (/home/username)

What does this command do?

ls -l /scratch/usingunix

Can you view what's in the two files in /scratch/usingunix? Can you copy those files to your home directory?

Here are some more links to unix help: