UNIX Programming
Covers UNIX shells, processes, system calls, file system, commands, permissions, and regular expressions.
Questions
Which of the following is not a UNIX shell?
- csh
- bourne
- korn shell
- pdksh
- MAIL
Which of the following attributes in the process is the group ID of the user that owns the process?
- PPID
- EUID
- GID
- EGID
- UID
Which of the following is not a system call?
- Fork()
- msgrvc()
- msgget()
- msgsnd()
- All of the above
Which of the following fields of process refers to the total number of pages in the process?
- PID field
- SZ field
- TTY field
- P flag
- None of these
In Unix directory structure, the top - level directory is designated by
- root
- /lib
- /bin
- /etc
- /dev
Which of the following is a type of file in UNIX file system?
- Ordinary
- Directories
- Device
- Link
- All of the above
Which of the following operators shows that the preceding item will be matched one or more times?
- +
- *
- ?
- {N}
- {N,}
Which of the following UNIX commands can be used to find a file?
- grep
- find
- egrep
- cut
- sort
Which command is used to get information about all the processes?
- mv
- ls
- ps
- pwd
- find
Which special character is used to run a process in the background?
- &
- ?
- *
- |
- ->
Which of the following permissions in UNIX is used to modify the contents of a file?
- read
- write
- execute
- find
- ordinary
Which of the following printer control commands checks the status of the specified printer queue?
- Ipr
- Ipq
- Iprm
- Iynx
- pwd
______________ operator means that the preceding item is matched N or more number of times.
- {N}
- {N,}
- *
- ?
- None of these
___________ contains essential low - level system utilities.
- /lib
- root
- /bin
- /etc
- None of these
In which of the following permissions, a user can use the filename as a UNIX command?
- read
- msgget()
- msgsnd()
- execute
- write