- You should still have a window on your screen from the previous
exercise. Select that window by dragging the mouse pointer into the
window and then clicking with the left mouse button. The window
is now ready to accept input from you.
- Try a few simple commands which require no arguments or options:
date - show date and time
whoami - show your userid
who - show who is logged onto the system
w - show who is logged onto the system
pwd - print the working directory's name
clear - clear the screen
- Now try some commands which require arguments and/or options:
ls -a - list all files in current directory
ls -al - long list of current directory
cat .cshrc - display contents of .cshrc file
mkdir dir1 - make a directory called dir1
cd dir1 - change directory to dir1
cd .. - change to parent directory
rmdir dir1 - remove directory dir1
cp .login new.login - copy the .login file to new.login
wc new.login - count the lines, words and
characters in the new.login file
wc -l new.login - count just the lines
rm new.login - remove the new.login file
- Try using multiple commands on one line. Don't forget to include the
semi-colon between commands.
cp .login testfile ; cat testfile
- copy a file and then show its contents
ls -l testfile ; rm testfile ; ls -l testfile
- list (long) a file, remove it, and then try to
list it again
- Return to the tutorial to learn about the next section before proceeding.