IT 244: Introduction to Linux/Unix
Answers to Class 4 Ungraded Quiz

  1. Name the three whitespace characters.
    Space, Tab and newline (Enter or Return)
  2. What would you do if you needed to use one of the characters that have special meaning to Unix on the command line in a filename?
    put a backslash in front of it or quote it
  3. What would you type on the command line if you wanted to go to the directory /home.
    cd  /home
  4. What would you type at the command line to see what directory you are currently in?
    pwd
  5. What would you type at the command line to see all the files in the directory named /home/ghoffman?
    ls  -a  /home/ghoffman
  6. What would you type at the command line to print to the screen the contents of the file named memo.txt?
    cat memo.txt
  7. What would you type at the command line to delete the file named memo.txt?
    rm  memo.txt
  8. What would you type at the command line to create a directory named work?
    mkdir work
  9. What would you type at the command line to copy the file named memo.txt to memo.bak?
    cp  memo.txt  memo.bak
  10. What would you type at the command line to move the file named memo.txt into the directory named work?
    mv  memo.txt  work