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
Questions
Which of the following is not the cursor movement commands?
- n
- a
- $
- j
Which command is used to locate all the .rpfile files in the system?
- ls profile
- find /-name .profile - print
- cd /.profile
- l - u .profile
Which command will be used with vi editor to append text at the end of line?
- A
- a
- i
- I
Which command is used to display the end of a file?
- head - r
- tail
- eof
- bof
If a file has read and write permissions for the owner, the octal representation of the permissions will be
- 7
- 6
- 5
- 3
Which command is used to terminate all processes in your own system, except the login shell?
- kill 1
- kill 0
- cancel all
- cancel 1
Which option will be used with ps command to show the entire command line of the process being run?
- -4
- -f
- -l
- 0
Which of the following file commands is used to identify the type of a file by context?
- ls
- Cat
- File
- More
The agency that sits between the user & the UNIX system is called the
- logic
- .profile
- shell
- .erxc
Which of the following commands is used to display the filenames in multiple columns?
- ls
- Is - l
- ls - x
- lc
Which of the following is not the vi input mode command?
- rch
- R
- S
- j
The chmod ugo + rw note command can be represented in octal notation as
- chmod 555 note
- chmod 666 note
- chmod 444 note
- chmod 333 note
Which of the following options will be used to display number of blocks used by a file?
- -c
- -i
- -d
- -s
Which symbol is used to separate more than one command in the same command line?
- $
- #
- :
- ;
Which operator will be used with chmod command to assign absolute permission?
- +
- -
- =
- %
The commonly used UNIX commands like date, ls, cat etc., are stored in
- /dev directory
- /bin & /usr/bin directory
- /tmp directory
- /unix directory
Which of the following wildcards is used to match a single character in a shell command?
- *
- ?
- [ijk]
- [!ijk]
Which column contains all the details of the permission of a file when you issue ls-l command?
- Second
- Fourth
- Third
- First
Which of the following signs is used to back up over typing errors in vi?
- @
- #
- $
- !
Which command can be used to get information about all users who are currently logged in the system?
- Which
- Who
- Who am i
- l /u
Which of the following commands is used to count the number of lines contained in a file?
- wc - l
- wc - c
- wc - w
- wc - f
Which of the following commands is used to summarize the disk usage?
- chkdsk
- fdisk
- du
- disk
Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
- ^pat
- $pat
- pat$
- pat^
Which command is used to list out all the hidden files along with the other files?
- ls - l
- ls - x
- ls - F
- ls - a
While working with mail command, which command is used to save mail as a separate file?
- s
- r
- w
- d