Unix Commands

basics of unix , shell scripts , commands

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

How can we investigate or see the process of the Unix System?

  1. By ps command
  2. By ls command
  3. By du command
  4. None of the above
Question 2 Multiple Choice (Single Answer)

By which command can you change any system's run level?

  1. Init
  2. Halt
  3. Poweroff
  4. none of the above
Question 3 Multiple Choice (Single Answer)

By which command can we show hidden files in unix?

  1. ls -i
  2. ls -d
  3. ls -a
  4. None of the above
Question 4 Multiple Choice (Single Answer)

How can we make a xhost setting will enable for others by which commands?

  1. $ DISPLAY
  2. $ xterm
  3. $ xhost
  4. $ xhost +
Question 5 Multiple Choice (Single Answer)

Which of the following commands displays user information?

  1. more
  2. history
  3. finger
  4. none of the above
Question 6 Multiple Choice (Single Answer)

By which command can we check and repair a file system?

  1. Format
  2. Mount
  3. Fsck
  4. None of the above
Question 7 Multiple Choice (Single Answer)

Which of the following scripts is used to store the commands that are executed by the shells on the logs into the system?

  1. The .profile file
  2. The .login file
  3. The .cshrc file
  4. None of the above
Question 8 Multiple Choice (Single Answer)

Which command do you use to logout from X terminal?

  1. logout(CR)
  2. XC
  3. exit
  4. none of the above
Question 9 Multiple Choice (Single Answer)

By which command can we remove the job from printer spooling queue?

  1. lprm
  2. lpr
  3. lpq
  4. none of the above
Question 10 Multiple Choice (Single Answer)

By which command can you get the information about the disks?

  1. dkinfo
  2. look
  3. dvdinfo
  4. none of the above
Question 11 Multiple Choice (Single Answer)

From which command can you search unix manual for a particular keyword?

  1. man -k keyword
  2. man mkdir
  3. man man
  4. all of the above
Question 12 Multiple Choice (Single Answer)

Which of the following statements is true?

  1. Tar command is used for back up
  2. The 'expr 4*5' will return 20.
  3. The mailx command informs user automatically about the arrival of a new mail
  4. All of the above
Question 13 Multiple Choice (Single Answer)

By which command can you display the files last sorted?

  1. ls -u
  2. ls -i
  3. ls -r
  4. ls -c
Question 14 Multiple Choice (Single Answer)

Which of the following system variables is used to change the prompt name?

  1. PS 1
  2. fg
  3. PS 2
  4. Both (1) and (3)
Question 15 Multiple Choice (Single Answer)

By which command can you erase the entire command line?

  1. ctrl -c
  2. ctrl -h
  3. ctrl -w
  4. ctrl-u
Question 16 Multiple Choice (Single Answer)

You can allow to continue even if you logout from the teminal by _____________ command.

  1. isspell
  2. head
  3. nohup
  4. none of the above
Question 17 Multiple Choice (Single Answer)

By which command can you take full back up?

  1. bkup
  2. for
  3. bg
  4. fg
Question 18 Multiple Choice (Single Answer)

Through which command can you reduce the priority of the jobs?

  1. nice
  2. more
  3. tail
  4. none of the above
Question 19 Multiple Choice (Single Answer)

To display a list of free blocks and number of files on a file system basis, we use _____________ command.

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

Which of the following is not a special shell variables?

  1. PATH
  2. HOME
  3. LOGNAME
  4. All of the above
  5. MAIL
Question 21 Multiple Choice (Single Answer)

Which of the following statements is false?

  1. The sed editor is an UNIX editor.
  2. The * metacharacter stands for any single character.
  3. The xterm does not offer any specific menu option for copying or moving the text from one xterm window to another.
  4. All of the above are true
Question 22 Multiple Choice (Single Answer)

Which of the following is not a unix files category?

  1. Ordinary files
  2. Directory files
  3. Device files
  4. All of the above
Question 23 Multiple Choice (Single Answer)

Which of the following is/are in built function of AWK in unix?

  1. Int(X)
  2. Length
  3. Length(X)
  4. All of the above
Question 24 Multiple Choice (Single Answer)

Unix uses 'pipe' system call

  1. to create a duplicate of a file
  2. to create a unnamed pipe
  3. to create a named pipe
  4. none of the above
Question 25 Multiple Choice (Single Answer)

Which of the following is a default shell in Unix Operating system?

  1. ksh
  2. bash
  3. csh
  4. none of the above