UNIX Programming
Covers UNIX system calls, commands, file systems, process management, and memory management fundamentals.
Questions
Which of the following is a component that on one side manages and controls the hardware and on the other manages the applications?
- Operating system
- Process
- Kernel
- Bootstrapping
____________ command is used for creating a File system.
- ext2
- hsfs
- bfs
- mkfs
Which of the following determines the order in which file systems should be checked?
- dumpfreq
- passno
- mount-point
- none of these
Which of the following runs as process 0 on SVR5 system and can be used to set priority for real processes so that they can be given fast access to the kernel?
- sched
- swapper
- page daemon
- init
___________ command lists the value of the environment variable called VAR_NAME.
- env
- env $VAR_NAME
- setenv VAR_NAME new_value
- unsetenv VAR_NAME
Which of the following fields refers to the total number of pages in the process?
- TTY field
- COMD field
- SZ field
- PRI field
Which of the following process attributes is an unique number that defines the process within the kernel?
- PID
- PPID
- EUID
- EGID
______________ attribute is an User ID number of the user that owns this process.
- EUID
- UID
- GID
- EGID
A shared memory segment can be allocated, using ____________ system call.
- msgrcv()
- semget()
- shmget()
- none of these
Which state of the process means the process is waiting to become available?
- S state
- X state
- R state
- None of these
Which of the following is the basic way to create a new process?
- fork() system call
- pipe() system call
- msgrcv() system call
- semget() system call
Which system call causes the current process to be split into two processes - a parent and a child?
- pipe() system call
- fork() system call
- msgget() system call
- msgrcv() system call
The _______ control character is used to signal the end of input.
- eof
- kill
- eraser
- none of these
Which of the following UNIX commands is a powerful tool that gives complete online access to the UNIX manual?
- Man
- Exit
- Cat
- None of these
Which of the following control characters allows you to back up over typing mistakes?
- Eraser
- Kill
- Eof
- Stop and start
___________ command takes any character from standard input, and then echoes them to standard output.
- Exit
- Cat
- Man
- None of these
Which of the following UNIX file system types contains text, data or program information?
- Ordinary files
- Directories
- Devices
- Link
_________ are containers or folders that hold files and other directories.
- Link
- Directories
- Ordinary files
- None of these
Which of the following directories can be referred to by the . (full stop) character and refers to actual location in the file store hierarchy?
- Home directory
- Parent directory
- Current directory
- None of these
____________link to a file is indistinguishable from the file itself.
- Hard
- Soft
- Directory
- None of these
UNIX provides each user his own directory known as _____________. Within this, the users can store their own files and create directories.
- current directory
- home directory
- parent directory
- none of these
Which device transfers data on a byte-by-byte basis?
- Block-oriented
- Character-oriented
- Soft link
- None of these
______________ is the process of starting up a computer from a halted or powered-down condition.
- Hardware management
- Process management
- Bootstrapping
- None of the above
In UNIX system, which of the following contains the barebones UNIX-the root directory and all the tools and utilities that are just adequate to keep the system booted in single-user mode?
- Root file system
- Swap file system
- Bootstrapping
- None of the above
The ___________ daemon runs as process 0 on BSD systems. It manages the physical memory by moving the process from physical memory to swap space when more physical memory is needed.
- bfs
- init
- swapper
- none of the above