Unix OS - 2

Online study material for Unix get Online Unix Notes and Test Papers, get Prepared for Unix OS, Linux, Unix Study , Linux Study

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is not the cursor movement commands?

  1. n
  2. a
  3. $
  4. j
Question 2 Multiple Choice (Single Answer)

Which command is used to locate all the .rpfile files in the system?

  1. ls profile
  2. find /-name .profile - print
  3. cd /.profile
  4. l - u .profile
Question 3 Multiple Choice (Single Answer)

Which command will be used with vi editor to append text at the end of line?

  1. A
  2. a
  3. i
  4. I
Question 4 Multiple Choice (Single Answer)

Which command is used to display the end of a file?

  1. head - r
  2. tail
  3. eof
  4. bof
Question 5 Multiple Choice (Single Answer)

If a file has read and write permissions for the owner, the octal representation of the permissions will be

  1. 7
  2. 6
  3. 5
  4. 3
Question 6 Multiple Choice (Single Answer)

Which command is used to terminate all processes in your own system, except the login shell?

  1. kill 1
  2. kill 0
  3. cancel all
  4. cancel 1
Question 7 Multiple Choice (Single Answer)

Which option will be used with ps command to show the entire command line of the process being run?

  1. -4
  2. -f
  3. -l
  4. 0
Question 8 Multiple Choice (Single Answer)

Which of the following file commands is used to identify the type of a file by context?

  1. ls
  2. Cat
  3. File
  4. More
Question 9 Multiple Choice (Single Answer)

The agency that sits between the user & the UNIX system is called the

  1. logic
  2. .profile
  3. shell
  4. .erxc
Question 10 Multiple Choice (Single Answer)

Which of the following commands is used to display the filenames in multiple columns?

  1. ls
  2. Is - l
  3. ls - x
  4. lc
Question 11 Multiple Choice (Single Answer)

Which of the following is not the vi input mode command?

  1. rch
  2. R
  3. S
  4. j
Question 12 Multiple Choice (Single Answer)

The chmod ugo + rw note command can be represented in octal notation as

  1. chmod 555 note
  2. chmod 666 note
  3. chmod 444 note
  4. chmod 333 note
Question 13 Multiple Choice (Single Answer)

Which of the following options will be used to display number of blocks used by a file?

  1. -c
  2. -i
  3. -d
  4. -s
Question 14 Multiple Choice (Single Answer)

Which symbol is used to separate more than one command in the same command line?

  1. $
  2. #
  3. :
  4. ;
Question 15 Multiple Choice (Single Answer)

Which operator will be used with chmod command to assign absolute permission?

  1. +
  2. -
  3. =
  4. %
Question 16 Multiple Choice (Single Answer)

The commonly used UNIX commands like date, ls, cat etc., are stored in

  1. /dev directory
  2. /bin & /usr/bin directory
  3. /tmp directory
  4. /unix directory
Question 17 Multiple Choice (Single Answer)

Which of the following wildcards is used to match a single character in a shell command?

  1. *
  2. ?
  3. [ijk]
  4. [!ijk]
Question 18 Multiple Choice (Single Answer)

Which column contains all the details of the permission of a file when you issue ls-l command?

  1. Second
  2. Fourth
  3. Third
  4. First
Question 19 Multiple Choice (Single Answer)

Which of the following signs is used to back up over typing errors in vi?

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

Which command can be used to get information about all users who are currently logged in the system?

  1. Which
  2. Who
  3. Who am i
  4. l /u
Question 21 Multiple Choice (Single Answer)

Which of the following commands is used to count the number of lines contained in a file?

  1. wc - l
  2. wc - c
  3. wc - w
  4. wc - f
Question 22 Multiple Choice (Single Answer)

Which of the following commands is used to summarize the disk usage?

  1. chkdsk
  2. fdisk
  3. du
  4. disk
Question 23 Multiple Choice (Single Answer)

Which symbol will be used with grep command to match the pattern pat at the beginning of a line?

  1. ^pat
  2. $pat
  3. pat$
  4. pat^
Question 24 Multiple Choice (Single Answer)

Which command is used to list out all the hidden files along with the other files?

  1. ls - l
  2. ls - x
  3. ls - F
  4. ls - a
Question 25 Multiple Choice (Single Answer)

While working with mail command, which command is used to save mail as a separate file?

  1. s
  2. r
  3. w
  4. d