Unix/Linux and IBM OS Commands

Quiz covering various operating system commands including Unix/Linux vi editor, file permissions, grep, shell/kernel concepts, IBM i AS/400 PDM commands, and HP-UX volume management

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

If the device file for your CD-ROM is missing, (the "ioscan -fn" command shows the H/W path exists but there are no device files) what command could you run, without rebooting the system, to create the device files?

  1. mkcd -a
  2. insf -e
  3. lssf -e
  4. cdfs -a
Question 2 Multiple Choice (Single Answer)

Which step is required before adding a new disk to a volume group?

  1. create a physical volume
  2. extend the logical volume
  3. create a filesystem
  4. extend the filesystem
Question 3 Multiple Choice (Single Answer)

What is the command for action "Change Keyboard Mapping"

  1. CHGKDBMAP
  2. CHGKBDMAP
  3. CHGKMAP
  4. CHGKBD
Question 4 Multiple Choice (Single Answer)

What is the command to work with Message Files

  1. WRKMSGQ
  2. WRKMSG
  3. WRKMSGF
  4. WRKMSGD
Question 5 Multiple Choice (Single Answer)

Which command can send break message to user profile and NOT the workstation?

  1. QEZSNDMG
  2. SNDBRKMSG
  3. SNDPGMMSG
  4. SNDMSG
Question 6 Multiple Choice (Single Answer)

What is the command to work with Libraries using Programming Development Manager.

  1. WRKOBJPDM
  2. WRKMBRPDM
  3. WRKLIPDM
  4. WRKLIBPDM
Question 7 Multiple Choice (Multiple Answers)

Which of the following will come under the types of files ?

  1. Regular Files
  2. Directory Files
  3. Mode Files
  4. Special Files
Question 8 True/False

Job Control is one of the feature of the UNIX ?

  1. True
  2. False
Question 9 Multiple Choice (Single Answer)

Korn Shell is the super set of which Shell ?

  1. C shell
  2. Bourne Shell
  3. Bash Shell
  4. B Shell
Question 10 Multiple Choice (Single Answer)

Which one of the following is the heart of the UNIX OS ?

  1. Shell
  2. Kernel
  3. OS
  4. Pipes
Question 11 Multiple Choice (Single Answer)

Which one of the following is the interface between user and OS ?

  1. kernel
  2. OS
  3. Filters
  4. Shell
Question 12 Multiple Choice (Single Answer)

Which one of the following is to list all the files column wise ?

  1. -C
  2. -l
  3. -c
  4. -lc
Question 13 Multiple Choice (Single Answer)

Whish command is used to find the name of the UNIX System ?

  1. Pipes
  2. Uname
  3. Inode
  4. Filters
Question 14 Multiple Choice (Single Answer)

Which of the following is used to check out the print queue ?

  1. pq
  2. lqp
  3. lpr
  4. lpq
Question 15 Multiple Choice (Single Answer)

Which command is to search for the information in a file or files ?

  1. grep
  2. awk
  3. sed
  4. vi
Question 16 Multiple Choice (Single Answer)

What is the Octal representation of the write permission ?

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

Which command is used to find the default permission ?

  1. chmode
  2. Umask
  3. chmode -r
  4. chmode -l
Question 18 Multiple Choice (Single Answer)

While in command mode you press "a" : what happens?

  1. This is an invalid command
  2. The editor goes in to insert mode and start inserting text after the current cursor location
  3. The editor searches for charater "a" in the open file
  4. The editor gives a beep sound
Question 19 Multiple Choice (Single Answer)

You have made changes to a file and want to quit vi without saving these changes. what command will you use?

  1. :wq
  2. x
  3. q!
  4. w!
Question 20 Multiple Choice (Single Answer)

You want to repalce "lion" with "tiger" in your field at all location in the vi editor.You use

  1. /s/lion/tiger
  2. s/lion/tiger
  3. s/lion/tiger/g
  4. s/tiger/lion/g