Online Quizzes

Unix Commands

Test your UNIX command skills! Take the following Quiz then click Submit to view your results immediately. The results of your quiz are not recorded.

    Multiple Choice


    1. Which command is used to change your password?

    password
    pass
    passwd
    pwd

    2. Which command will display a calendar?

    cal
    dis cal
    view cal
    calendar

    3. Which command can be used to display the contents of a file on the screen?

    ls
    grep
    dog
    cat

    4. Which command allows you to determine if a host is connected to the Internet?

    ls-la
    cmd
    pwd
    ping

    5. Which command would you use to create a sub-directory in your home directory?

    mkdir
    dir
    cp
    rm

    True or False

    6. The wc command will report all misspelled words.

    True False

    7. To change access modes on files you can use the chmod command.

    True False

    8. To change the owner of the file you could use the chowned command.

    True False

    Fill in the Blank


    9. _____________ is the command that writes the first 10 lines of a file to the screen.

    pr
    split
    tail
    head

    10. The ________ command will display the absolute pathname for the directory that you are wokring in.

    dir
    whereami
    pwd
    ls