Unix Operating System

Unix commands , operating system

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What are the three types of files of the Unix System?

  1. Regular file, directories, device file
  2. Regular disk file, special file, device file
  3. Tape file, directories, special file
  4. All of the above
Question 2 Multiple Choice (Single Answer)

Which meta character is used to match zero or more occurences of the character immediately preceeding it?

  1. ?
  2. ^
  3. +
  4. *
Question 3 Multiple Choice (Single Answer)

Which special shell variable provides the number of arguments supplied to a script?

  1. $#
  2. $0
  3. $!
  4. $@
Question 4 Multiple Choice (Single Answer)

How can you replace a single character in vi input mode?

  1. cc
  2. cw
  3. s
  4. r
Question 5 Multiple Choice (Single Answer)

Which of the following commands is used to give complete online access to the Unix Manuals?

  1. Top
  2. Sort
  3. Man
  4. Grep
Question 6 Multiple Choice (Single Answer)

Which of the following is the awk built in functions?

  1. int() function
  2. log(n) function
  3. sqrt(n) function
  4. all of the above
Question 7 Multiple Choice (Single Answer)

By pressing which keys, we will generate a shell signal?

  1. Shift + ctrl + a
  2. Ctrl + Z
  3. Ctrl + c
  4. Zero
Question 8 Multiple Choice (Single Answer)

How can we invoke new process execution by which unix command?

  1. nohup
  2. execute()
  3. exec()
  4. kill
Question 9 Multiple Choice (Single Answer)

Which of the following processes of state represents changes from run to ready?

  1. Waiting for user response
  2. Waiting for disk read occurs
  3. Time slices expires
  4. all of the above
Question 10 Multiple Choice (Single Answer)

Which command is used to assign an inode number to file?

  1. Chgrp
  2. Chmod
  3. Mv
  4. Cp
Question 11 Multiple Choice (Single Answer)

Let us have a syntax grep ^saurabh myfile, what it displays or gives as output?

  1. It shows those lines that end with saurabh.
  2. Shows those lines that contains more than a single instance of saurabh.
  3. Shows those line that begin with saurabh.
  4. Shows those lines which do not contain saurabh.
Question 12 Multiple Choice (Single Answer)

Which is not a part of the inode for a file?

  1. File modification time
  2. File size
  3. Directory name to which file belongs
  4. File permissions
Question 13 Multiple Choice (Single Answer)

Which of the following is a multipurpose tool?

  1. grep
  2. sed
  3. editor
  4. awk
Question 14 Multiple Choice (Single Answer)

By which command one specifies receipt of a signal?

  1. Trap
  2. Ping
  3. Finger
  4. All of the above
Question 15 Multiple Choice (Single Answer)

Which of the following init runlevels is used for system HALT?

  1. 6
  2. 1
  3. 3
  4. 0
Question 16 Multiple Choice (Single Answer)

Which of the following statements is false with respect to tar command?

  1. It is used to create tape archives.
  2. It is used to add files.
  3. All users are permitted to use tar.
  4. It is used to extract files.
Question 17 Multiple Choice (Single Answer)

Let us have a code - x = 5, y = 5, what is a current syntax for the product of x and y (means x * y)?

  1. expr $x * $y
  2. expr $x * $y
  3. echo $x *$y
  4. echo $x * $y
Question 18 Multiple Choice (Single Answer)

Which command is used for file compression in unix?

  1. gzip
  2. gunzip
  3. zcat
  4. all of the above
Question 19 Multiple Choice (Single Answer)

Which command determines the disk space availability?

  1. du
  2. dir
  3. df
  4. none of the above
Question 20 Multiple Choice (Single Answer)

Which command is used for remote accessing the program?

  1. X-host
  2. Ping
  3. StartX
  4. FTP
Question 21 Multiple Choice (Single Answer)

Which of the following operators represents equality relational operator?

  1. =
  2. ==
  3. - eq
  4. None of the above
Question 22 Multiple Choice (Single Answer)

Which command is used to start X server manually?

  1. startX
  2. beginX
  3. touch
  4. mailx
Question 23 Multiple Choice (Single Answer)

How can we search order of a command?

  1. By PATH command
  2. By FIND command
  3. By HEAD command
  4. By Tail command
Question 24 Multiple Choice (Single Answer)

In which block is available free inode number found?

  1. Boot block
  2. Super block
  3. Inode block
  4. Data blocks
Question 25 Multiple Choice (Single Answer)

Which of the following keys lets one know the line number of current cursor position in vi editor?

  1. <ctrl> g
  2. <ctrl> j
  3. <ctrl> d
  4. <ctrl> k