Tuesday, October 20, 2015

UNIX SAMPLE QUESTIONS


questionStatement
answerA
answerB
answerC
answerD
Which shell command can display the contents of each of the command line arguments one by one?
cat $*
cat '$*'
cat "$*"
all of the above
Arrange boot block, super block, I-list and data block in the order in which they appear in UNIX system:
boot block, super block, I-list and data block.
boot block, data block, super block and I-list.
boot block, data block, I-list and super block.
super block, boot block, data block and I-list.
How do you identify the type of file by context?
ls
cat
file
more
Identify the earliest and most widely used shell that came with the UNIX system:
C shell
Korn shell
Bourne shell
Smith shell
Which command sends the word count of the file infile to the newfile?
wc infile >newfile
wc infile >> newfile
wc infile - newfile
wc newfile > infile
Which command will be used with vi editor to replace single character under cursor with any number of characters?
s
S
dd
x
Select the command by which one can find all files owned by 'kumar' and larger than 2000 blocks:
grep / -user kumar - a + 2000 -print
find / -user kumar +2000 - print
find / (-user kumar -a - size + 2000 ) - print
both a and b
How can a system administrator remove files from the user file system which have neither been accessed or modified in the last one year?
find - mtime + 365 | rm
find / usr/* (- mtime + 365 - a - atime + 365 ) - exec rm{} ;
grep (/usr/*) - mtime +365 - exec rm;
find -name -mtime +365 | rm
Identify the statement which is not correct about the signals system call:
It takes up two arguments.
The first argument is a function call.
The second argument is a pointer to a function.
The first argument is an integer.

No comments:

Post a Comment