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
Questions
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?
- mkcd -a
- insf -e
- lssf -e
- cdfs -a
Which step is required before adding a new disk to a volume group?
- create a physical volume
- extend the logical volume
- create a filesystem
- extend the filesystem
What is the command for action "Change Keyboard Mapping"
- CHGKDBMAP
- CHGKBDMAP
- CHGKMAP
- CHGKBD
What is the command to work with Message Files
- WRKMSGQ
- WRKMSG
- WRKMSGF
- WRKMSGD
Which command can send break message to user profile and NOT the workstation?
- QEZSNDMG
- SNDBRKMSG
- SNDPGMMSG
- SNDMSG
What is the command to work with Libraries using Programming Development Manager.
- WRKOBJPDM
- WRKMBRPDM
- WRKLIPDM
- WRKLIBPDM
Which of the following will come under the types of files ?
- Regular Files
- Directory Files
- Mode Files
- Special Files
Job Control is one of the feature of the UNIX ?
- True
- False
Korn Shell is the super set of which Shell ?
- C shell
- Bourne Shell
- Bash Shell
- B Shell
Which one of the following is the heart of the UNIX OS ?
- Shell
- Kernel
- OS
- Pipes
Which one of the following is the interface between user and OS ?
- kernel
- OS
- Filters
- Shell
Which one of the following is to list all the files column wise ?
- -C
- -l
- -c
- -lc
Whish command is used to find the name of the UNIX System ?
- Pipes
- Uname
- Inode
- Filters
Which of the following is used to check out the print queue ?
- pq
- lqp
- lpr
- lpq
Which command is to search for the information in a file or files ?
- grep
- awk
- sed
- vi
What is the Octal representation of the write permission ?
- 1
- 4
- 2
- 0
Which command is used to find the default permission ?
- chmode
- Umask
- chmode -r
- chmode -l
While in command mode you press "a" : what happens?
- This is an invalid command
- The editor goes in to insert mode and start inserting text after the current cursor location
- The editor searches for charater "a" in the open file
- The editor gives a beep sound
You have made changes to a file and want to quit vi without saving these changes. what command will you use?
- :wq
- x
- q!
- w!
You want to repalce "lion" with "tiger" in your field at all location in the vi editor.You use
- /s/lion/tiger
- s/lion/tiger
- s/lion/tiger/g
- s/tiger/lion/g