Questions
What are the three types of files of the Unix System?
- Regular file, directories, device file
- Regular disk file, special file, device file
- Tape file, directories, special file
- All of the above
Which meta character is used to match zero or more occurences of the character immediately preceeding it?
- ?
- ^
- +
- *
Which special shell variable provides the number of arguments supplied to a script?
- $#
- $0
- $!
- $@
How can you replace a single character in vi input mode?
- cc
- cw
- s
- r
Which of the following commands is used to give complete online access to the Unix Manuals?
- Top
- Sort
- Man
- Grep
Which of the following is the awk built in functions?
- int() function
- log(n) function
- sqrt(n) function
- all of the above
By pressing which keys, we will generate a shell signal?
- Shift + ctrl + a
- Ctrl + Z
- Ctrl + c
- Zero
How can we invoke new process execution by which unix command?
- nohup
- execute()
- exec()
- kill
Which of the following processes of state represents changes from run to ready?
- Waiting for user response
- Waiting for disk read occurs
- Time slices expires
- all of the above
Which command is used to assign an inode number to file?
- Chgrp
- Chmod
- Mv
- Cp
Let us have a syntax grep ^saurabh myfile, what it displays or gives as output?
- It shows those lines that end with saurabh.
- Shows those lines that contains more than a single instance of saurabh.
- Shows those line that begin with saurabh.
- Shows those lines which do not contain saurabh.
Which is not a part of the inode for a file?
- File modification time
- File size
- Directory name to which file belongs
- File permissions
Which of the following is a multipurpose tool?
- grep
- sed
- editor
- awk
By which command one specifies receipt of a signal?
- Trap
- Ping
- Finger
- All of the above
Which of the following init runlevels is used for system HALT?
- 6
- 1
- 3
- 0
Which of the following statements is false with respect to tar command?
- It is used to create tape archives.
- It is used to add files.
- All users are permitted to use tar.
- It is used to extract files.
Let us have a code - x = 5, y = 5, what is a current syntax for the product of x and y (means x * y)?
- expr $x * $y
- expr $x * $y
- echo $x *$y
- echo $x * $y
Which command is used for file compression in unix?
- gzip
- gunzip
- zcat
- all of the above
Which command determines the disk space availability?
- du
- dir
- df
- none of the above
Which command is used for remote accessing the program?
- X-host
- Ping
- StartX
- FTP
Which of the following operators represents equality relational operator?
- =
- ==
- - eq
- None of the above
Which command is used to start X server manually?
- startX
- beginX
- touch
- mailx
How can we search order of a command?
- By PATH command
- By FIND command
- By HEAD command
- By Tail command
In which block is available free inode number found?
- Boot block
- Super block
- Inode block
- Data blocks
Which of the following keys lets one know the line number of current cursor position in vi editor?
- <ctrl> g
- <ctrl> j
- <ctrl> d
- <ctrl> k