0

UNIX OS (UGC/NET)

Description: UNIX
Number of Questions: 15
Created by:
Tags: UNIX Unix/Linux and Windows
Attempted 0/15 Correct 0 Score 0

Which of the following options is used with mount command to mount all the file systems listed in /etc/fstab?

  1. -f

  2. -a

  3. -r

  4. -t fstype

  5. -u


Correct Option: B
Explanation:

This option is used with mount command to mount all the file systems listed in /etc/fstab.

Which of the following system processes is a real-time scheduler that runs as process 0 on SVR5 systems and can be used to set priority for real-time processes so that they can be given fast access to the kernel?

  1. swapper

  2. page daemon

  3. init

  4. sched

  5. fsck


Correct Option: D
Explanation:

This is a system process used as a real-time scheduler that runs as process 0 on SVR5 systems and can be used to set priority for real-time processes so that they can be given fast access to the kernel.

Which of the following options is used with useradd command in UNIX so that a new user will be created using home_dir as the value for the user's login directory?

  1. -c

  2. -e

  3. -d

  4. -f

  5. -g


Correct Option: C
Explanation:

This option is used with useradd command in UNIX so that a new user will be created using home_dir as the value for the users login directory.

Which of the following file system types is used to build a Linux file system on a device, usually a hard disk partition, and that returns exit code as 0 on success and 1 on failure?

  1. msdos

  2. bfs

  3. mkfs

  4. ufs

  5. s5


Correct Option: C
Explanation:

This type of file system is used to build a Linux file system on a device, usually a hard disk partition, and that returns exit code as 0 on success and 1 on failure.

Which of the following exit values used with userdel command indicates that the user is currently logged in?

  1. 2

  2. 12

  3. 8

  4. 1

  5. 6


Correct Option: C
Explanation:

This exit value used with userdel command indicates that the user is currently logged in.

Which of the following items stored in a UNIX file system provide applications with easy access to hardware devices and UNIX allows them to be used in much the same way as ordinary files?

  1. Ordinary files

  2. Devices

  3. Links

  4. Directories

  5. /tmp


Correct Option: B
Explanation:

These items stored in UNIX file system provide applications with easy access to hardware devices and UNIX allows them to be used in much the same way as ordinary files.

What would be the meaning of the following UNIX command?

$ find .- mtime - 2 -name *.cpp - print

  1. To find a list of directories starting from name

  2. To find just those files that have been modified in the last two days

  3. To find all the files of .cpp extension in name directory

  4. To find only two *.cpp files in the current directory

  5. To find the names of files in mtime directory


Correct Option: B
Explanation:

This is the correct option as mtime refers to modified time and this command will display the names of *.cpp files in the last two days.

Which of the following control characters in UNIX is used to signal the end of input?

  1. Start

  2. Stop

  3. eof

  4. Kill

  5. Man


Correct Option: C
Explanation:

This control character in UNIX is used to signal the end of input.

Which of the following commands is used to find out where an application program or system utility is stored on disk in UNIX?

  1. locate

  2. which

  3. grep

  4. find

  5. egrep


Correct Option: B
Explanation:

This command is used to find out where an application program or system utility is stored on disk in UNIX.

Which of the following octal digits represents the access permission for the user/owner, group and others to perform read, write and execute operations in UNIX?

  1. 0

  2. 1

  3. 2

  4. 3

  5. 7


Correct Option: E
Explanation:

This octal digit represents the access permission for the user/owner, group and others to perform read, write and execute operations in UNIX.

Which of the following text file processing commands is used in UNIX to perform basic text transformations on an input stream that may be a file or a pipeline?

  1. awk

  2. cpio

  3. sed

  4. man

  5. cat


Correct Option: C
Explanation:

This is a text file processing command used in UNIX to perform basic text transformations on an input stream that may be a file or pipeline.

Which of the following options is used with grep command in UNIX to print out the line number before printing the matching line?

  1. -c

  2. -v

  3. -n

  4. -l

  5. -x


Correct Option: C
Explanation:

This option is used with grep command in UNIX to print out the line number before printing the matching line.

Which of the following methods to perform interprocess communication in UNIX consist(s) of a resource that contains an integer value and allows processes to synchronise by testing and setting this value in a single atomic operation?

  1. Pipes

  2. Fifos

  3. Message queues

  4. Semaphores

  5. Shared memory


Correct Option: D
Explanation:

This method to perform interprocess communication in UNIX consists of a resource that contains an integer value and allows processes to synchronise by testing and setting this value in a single atomic operation.

Which of the following values in STAT option of ps command is used to show that the process is sleeping while the system is doing something else?

  1. R

  2. W

  3. S

  4. I

  5. X


Correct Option: C
Explanation:

This value in STAT option of ps command is used to show that the process is sleeping while the system is doing something else.

Which of the following remote file transfer commands is actually a Bourne shell script offering a simplified file copying service based on UNIX-UNIX Copy?

  1. uuname

  2. uuto

  3. lpr

  4. scp

  5. who


Correct Option: B
Explanation:

This remote file transfer command is actually a Bourne shell script offering a simplified file copying service based on UNIX-UNIX Copy.

- Hide questions