Unix/Linux Operating Systems Fundamentals
Test your knowledge of Unix/Linux commands, process management, file permissions, system calls, and shell fundamentals
Questions
BSD is an acronym for what?
- Berkeley Software Distribution
- Berkel Software Distro
- Berkeley Systems Distribution
- Bourne Systems Distribution
Which Shell variable indicates search path for commands?
- IFS
- PATH
- SHLVL
- TERM
A local variable can be used by child processes of a shell.
- True
- False
What is the first process that comes into existence whenever system is booted?
- init
- shell
- kernel
- login
What is the process id and group id of the init process?
- 1,0
- 0,1
- 1,1
- 0,2
Which of these is not a valid mode in the VI editor in unix?
- command
- ex
- edit
- insert
Which is not a filter in unix?
- pg
- ksh
- awk
- grep
What is the command for listing all the background jobs?
- ps
- jobs
- processes
- kill
What is the command for killing the suspended job number three?
- kill $3
- kill <<3
- kill %3
- terminate #3
Which of the following does one need to log in to Unix?
- username
- password
- host name
- all of the above
Which command always puts you in your home directory?
- home
- cd
- cd . .
- pwd
What will the following command do? % chmod og+r *.jpg
- Change the permissions on all the .jpg file so that it is readable.
- It is not a valid command because the file name contains a *.
- Change the permissions on all image files
- Change permissions on the directory so that image files can be saved in it.
Predict the output of the following program code main() { fork(); printf("Hello World!"); }
- Hello World!Hello World!
- Hello World!
- World!Hello
- error
main(){ fork(); fork(); fork(); printf("Hello World!"); } How many times "Hello World!" will be printed?
- 2
- 4
- 6
- 8
Which system call is used to to bias the existing priority of a process?
- exec()
- nice()
- brk()
- fork()
A 'character special file' represents a device with characteristics similar to a ........ in unix [data transfer is by stream of bits in sequential order]
- keyboard
- terminal
- server
- host
When creating a directory, which of the following is true?
- You use the pico Unix command to create a directory
- The default permissions are: r w x - - - - - -
- You must be in your home directory
- The directory name must end in _html
What command allows you to log in to a remote host securely?
- ssl
- slt
- ssh
- sl-rem
What files are run when you log in successfully?
- .cshrc
- .c
- .log
- .login