Unix Ts 001

4 Questions | Total Attempts: 1385

SettingsSettingsSettings
Please wait...
Unix Quizzes & Trivia

Unix Basic Questions


Questions and Answers
  • 1. 
    . The values for the login_name, login_directory, and login_shell variables are configured in which file?
    • A. 

      /etc/passwd

    • B. 

      /etc/profile

    • C. 

      /etc/default

    • D. 

      $HOME/.profile

  • 2. 
    When will the following command run if placed in a crontab? 0 0 1,15 * * /sbin/myprog
    • A. 

      Not enough data to determine the frequency

    • B. 

      Every hour on the 1st and 15th minute

    • C. 

      At midnight on the 1st and 15th of each month

    • D. 

      Every day, every hour on the 1st and 15th second

  • 3. 
    What is the generic syntax for all UNIX commands?
    • A. 

      Command name, followed by arguments, followed by options

    • B. 

      Command name followed by arguments

    • C. 

      Command name followed by options

    • D. 

      Command name, followed by options, followed by arguments

  • 4. 
    Which of these commands will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else?
    • A. 

      Chmod 046 textfile

    • B. 

      Chmod 640 textfile

    • C. 

      Chmod 310 textfile

    • D. 

      Chmod rw r nil textfile