March 2, 2009

Linux \ Solaris Interview Question - 10


Question 226) Which commands are correct ?
a ls /usr/local/bin -l
b pwd cd
c cd ..
d rm -i *
Ans: c,d
Question 227) What does the man command do?
a Displays the help viewer.
b Displays all processes that are active
c Accesses the on-line reference pages.
Ans: c
Question 229) What does the head command do?
a Displays the header in a file
b Creates a header in a file
c Displays the first n lines of a file
Ans: c
Question 230) What does the tail command do?
a Displays the footnote in a file
b Displays the last n lines of a file
c Creates a footnote for a file
Ans: b
Question 240) Which command can delete /export/app/report directory in /export/app directory ?
a rm -r report
b rmdir report
c rm report
d rmdir /export/app/report
Ans: a
Question 241) Which command should be used to configure only those devices supported by the st drives?
a devfsadm -i
b devfsadm -i st
c devices
d dev
Ans: b
Question 242) What does the touch command do?
a Creates new, empty files.
b Finds out if a file exist.
c Creates a new file
Ans: a
Question 243) What is the content of file /etc/nodename ?
a the domain name
b the machine host name
c the network name that the machine is connected to.
d the remote machine name
Ans: b
Question 244) Your current working directory contain ./ ../ .tst dir1/ file1 file2 file3 file4. Which command copies the .tst file into the dir1 directory?
a cp .tst /
b cp .tst /../dir1
c cp .tst dir1/
Ans: c
Question 245) You enter the patchrm 108577-03 command, and it fails. Which of the following situations will cause the command to fail?
a You are not logged in as root
b Patch 108577-03 is not installed on the system
c Patch 108577-04 is installed on the system
d The patch was installed using patchadd -d
Ans: a,b,c,d
Question 246) What does the semicolon allow you to do on the command line?
a Enter multiple commands on a single command line
b Enter one command on multiple command lines.
c Acts as a new line character.
Ans: a
Question 247) What does the asterisk represent?
a 1 or more characters
b Zero to more characters.
c 2 or more characters.
Ans: b
Question 248) Sysadmin group can do
a They can remotely administer
b They can change printer configuration from command line
c They can add users from command line
Ans: a,b,c
Question 249) Which command produces this
root console Tue Oct 2 1024 - 1050 (0026) ?
a who
b last
c users
d whoami
Ans: b
Question 250) The option used with ls to list all hidden files
a -l
b -a
c -o
d -h
Ans: b

No comments:

Post a Comment