Unix OS - 1
Test your knowledge of Unix operating system fundamentals including file systems, process management, commands, system calls, and administration tasks.
Questions
UNIX was developed by
- Bell Labs
- Berkley Software Group
- California University
- American Defence Academy
Which of the following features of UNIX may be used for inter process communication?
- Signals
- Pipes
- Semaphore
- Message queues
The default permission bits of a file, when it is created for the first time, is controlled by
- chmod value
- fmask value
- umask value
- none of the above
The file that stores an integer as a sequence of characters is a
- text file
- data file
- binary file
- core
In which of the following directories init resides?
- root
- bin
- etc
- usr
The PID of kernel process is
- undefined
- 0
- 1
- 3
The first thing that is searched when a command references a file is its
- I - node
- Inode number
- Permission string
- None of the above
Which of the following calls never returns an error?
- getpid
- fork
- ioctl
- open
The technique that allows only one user to work with a file at a particular time is called
- semaphore
- critical region
- locking
- dedicated mode
Which of the following is used to write disk block images from memory to disk?
- clri
- sync
- mkfs
- stty
Which of the following processes has the PID 1?
- Kernel
- UNIX
- Init
- Shell
Unix was first installed in
- IBM - 360
- PDP/11
- PDP/7
- CRAY
A command which transcribes standard input to the standard output & also makes a copy of the same in file, is
- tee
- tr
- sort
- grep
Which of the following system calls transforms an executable binary file into a process?
- fork
- exec
- ioctl
- longjmp
The command that can be used to restrict incoming message to a user is
- mesg
- grep
- halt
- sleep
Which of the following system calls does not return control to the calling point on termination?
- fork
- exec
- ioctl
- longjmp
PID is used by the system to identify
- a process
- the file name
- the i-node
- all of the above
Which of the following commands is used for an automatic reminder service?
- write
- mesg
- calendar
- mail
In Bourne Shell, which file sets the UNIX environment for the user when he logs into his Home directory?
- exrc
- profile
- lastlogin
- mbox
The UNIX file system stores a data in physical blocks of
- 1024 bytes
- 2048 bytes
- 512 bytes
- 256 bytes
Which of the following commands is used to update 'access & modification times' of a file?
- grep
- wc
- touch
- cat
Which command is used to link files?
- lk
- ln
- cp
- tar
The seventh field of /etc/password is
- password
- login
- shell
- home
Which of the following is not a filter?
- cat
- grep
- wc
- sort
Which of the following files contains information related to password aging?
- shadow
- password
- profile
- all the the above