UNIX Programming

Description: UNIX
Number of Questions: 15
Created by:
Tags: UNIX Programming
Attempted 0/15 Correct 0 Score 0

Which of the following is not a UNIX shell?

  1. csh

  2. bourne

  3. korn shell

  4. pdksh

  5. MAIL


Correct Option: E
Explanation:

This is not a type of shell. It determines the storage area of all incoming mail addresses to the user.

Which of the following attributes in the process is the group ID of the user that owns the process?

  1. PPID

  2. EUID

  3. GID

  4. EGID

  5. UID


Correct Option: C
Explanation:

This attribute is the group ID of the user that owns the process.

Which of the following is not a system call?

  1. Fork()

  2. msgrvc()

  3. msgget()

  4. msgsnd()

  5. All of the above


Correct Option: B
Explanation:

There is no such system call defined in UNIX.

Which of the following fields of process refers to the total number of pages in the process?

  1. PID field

  2. SZ field

  3. TTY field

  4. P flag

  5. None of these


Correct Option: B
Explanation:

This field of process refers to the total number of pages in the process.

In Unix directory structure, the top - level directory is designated by

  1. root

  2. /lib

  3. /bin

  4. /etc

  5. /dev


Correct Option: A
Explanation:

The top - level directory is known as the root.

Which of the following is a type of file in UNIX file system?

  1. Ordinary

  2. Directories

  3. Device

  4. Link

  5. All of the above


Correct Option: E
Explanation:

This is the correct answer because all of the above options are the types of file in UNIX file system.

Which of the following operators shows that the preceding item will be matched one or more times?

  1. +

  2. *

  3. ?

  4. {N}

  5. {N,}


Correct Option: A
Explanation:

This operator means the preceding item will be matched one or more times.

Which of the following UNIX commands can be used to find a file?

  1. grep

  2. find

  3. egrep

  4. cut

  5. sort


Correct Option: B
Explanation:

This command is used to find all the files and directories specified by  type, permission, or size.

Which command is used to get information about all the processes?

  1. mv

  2. ls

  3. ps

  4. pwd

  5. find


Correct Option: C
Explanation:

This command is used to get the information about all the processes.

Which special character is used to run a process in the background?

  1. &

  2. ?

  3. *

  4. |

  5. ->


Correct Option: A
Explanation:

This special character is used to run a process in background.

Which of the following permissions in UNIX is used to modify the contents of a file?

  1. read

  2. write

  3. execute

  4. find

  5. ordinary


Correct Option: B
Explanation:

Using this permission in UNIX, a user can modify the contents of a file.

Which of the following printer control commands checks the status of the specified printer queue?

  1. Ipr

  2. Ipq

  3. Iprm

  4. Iynx

  5. pwd


Correct Option: B
Explanation:

This command checks the status of the specified printer queue.

______________ operator means that the preceding item is matched N or more number of times.

  1. {N}

  2. {N,}

  3. *

  4. ?

  5. None of these


Correct Option: B
Explanation:

This operator means that the preceding item is matched N or more number of times.

___________ contains essential low - level system utilities.

  1. /lib

  2. root

  3. /bin

  4. /etc

  5. None of these


Correct Option: C
Explanation:

This contains essential low - level system utilities.

In which of the following permissions, a user can use the filename as a UNIX command?

  1. read

  2. msgget()

  3. msgsnd()

  4. execute

  5. write


Correct Option: D
Explanation:

Using this permission in UNIX, user can use the filename as a UNIX command.

- Hide questions