Unix/Linux Operating Systems Fundamentals

Test your knowledge of Unix/Linux commands, process management, file permissions, system calls, and shell fundamentals

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

BSD is an acronym for what?

  1. Berkeley Software Distribution
  2. Berkel Software Distro
  3. Berkeley Systems Distribution
  4. Bourne Systems Distribution
Question 2 Multiple Choice (Single Answer)

Which Shell variable indicates search path for commands?

  1. IFS
  2. PATH
  3. SHLVL
  4. TERM
Question 3 True/False

A local variable can be used by child processes of a shell.

  1. True
  2. False
Question 4 Multiple Choice (Single Answer)

What is the first process that comes into existence whenever system is booted?

  1. init
  2. shell
  3. kernel
  4. login
Question 5 Multiple Choice (Single Answer)

What is the process id and group id of the init process?

  1. 1,0
  2. 0,1
  3. 1,1
  4. 0,2
Question 6 Multiple Choice (Single Answer)

Which of these is not a valid mode in the VI editor in unix?

  1. command
  2. ex
  3. edit
  4. insert
Question 7 Multiple Choice (Single Answer)

Which is not a filter in unix?

  1. pg
  2. ksh
  3. awk
  4. grep
Question 8 Multiple Choice (Single Answer)

What is the command for listing all the background jobs?

  1. ps
  2. jobs
  3. processes
  4. kill
Question 9 Multiple Choice (Single Answer)

What is the command for killing the suspended job number three?

  1. kill $3
  2. kill <<3
  3. kill %3
  4. terminate #3
Question 10 Multiple Choice (Single Answer)

Which of the following does one need to log in to Unix?

  1. username
  2. password
  3. host name
  4. all of the above
Question 11 Multiple Choice (Single Answer)

Which command always puts you in your home directory?

  1. home
  2. cd
  3. cd . .
  4. pwd
Question 12 Multiple Choice (Single Answer)

What will the following command do? % chmod og+r *.jpg

  1. Change the permissions on all the .jpg file so that it is readable.
  2. It is not a valid command because the file name contains a *.
  3. Change the permissions on all image files
  4. Change permissions on the directory so that image files can be saved in it.
Question 13 Multiple Choice (Single Answer)

Predict the output of the following program code main() { fork(); printf("Hello World!"); }

  1. Hello World!Hello World!
  2. Hello World!
  3. World!Hello
  4. error
Question 14 Multiple Choice (Single Answer)

main(){ fork(); fork(); fork(); printf("Hello World!"); } How many times "Hello World!" will be printed?

  1. 2
  2. 4
  3. 6
  4. 8
Question 15 Multiple Choice (Single Answer)

Which system call is used to to bias the existing priority of a process?

  1. exec()
  2. nice()
  3. brk()
  4. fork()
Question 16 Multiple Choice (Single Answer)

A 'character special file' represents a device with characteristics similar to a ........ in unix [data transfer is by stream of bits in sequential order]

  1. keyboard
  2. terminal
  3. server
  4. host
Question 17 Multiple Choice (Single Answer)

When creating a directory, which of the following is true?

  1. You use the pico Unix command to create a directory
  2. The default permissions are: r w x - - - - - -
  3. You must be in your home directory
  4. The directory name must end in _html
Question 18 Multiple Choice (Single Answer)

What command allows you to log in to a remote host securely?

  1. ssl
  2. slt
  3. ssh
  4. sl-rem
Question 19 Multiple Choice (Multiple Answers)

What files are run when you log in successfully?

  1. .cshrc
  2. .c
  3. .log
  4. .login