January 14, 2009

Linux / Solaris Interview Question - 1

Question 1) What shells are provided by default Solaris installation?
a csh
b tcsh
c ksh
d sh
e bash

Ans: a,c,d

Question 2) Which of the following commands can be used to move one or more print requests from printer laser2 to printer laser1?
a lpmove laser2 laser1
b lpmove laser1 laser2
c lpmove laser2-35 laser1
d lpmove laser2 all laser1

Ans: a,c

Question 3) Which command are correct when you boot from CDROM ?
a boot cdrom
b b sd (0,30,1)
c ok boot cdrom
d b sd (0,6,2)

Ans: c

Question 4) Which of the following commands is the best way to shutdown a system?
a shutdown
b halt
c reboot
d Stop-A

Ans: a

Question 5) Which command(s) can raise the priority of a user process?
a kill -USR1
b nice
c priocntl
d raise

Ans: b,c

Question 6) /var/sadm/sulog does ?
a it records each time su command used
b it records user changed to other user.

Ans: a,b

Question 7) What is a minimum requirement to complete a successful login to a Solaris system?
a A login ID
b A default login shell
c A login (home directory

Ans: a

Question 8) Chgrp tech_file tech-doc
a tech_doc file updated
b group ownership of the tech_doc is changed

Ans a,b

Question 9) What command is used to remove a patch from a system?
a uninstall
b pkgrm -p
c rm -r

Ans: b

Question 10) Which directories you can include in your search path ?
a any directory
b only those owned by root, lp and you

Ans: a

Question 11) What command is used to show software package information?
a pkgadd
b pkgchk
c pkgparam
d pkginfo

Ans: d

Question 12) What is the top directory of the file system ?
a $home
b /
c parent directory
d ~ home

Ans: b

Question 13) Which of the following commands can be used to cancel one or more print requests?
a cancel laser1-36
b cancel "laser1-36 laser1-38 laser2 -12"
c cancel -u dla
d cancel -u dla laser1

Ans: a,b,c,d

Question 14) Which one add the backing up command into cron(in fact vi) ?
a crontab -e
59 23 * * 1-5 tar cvf /home/davis
wq
b crontab 59 23 * * 1-5 tar cvf /home/davis

Ans: a

Question 15) What command verifies the accuracy of a software package installation?
a pkgadd
b pkgchk
c pkgask
d pkginfo

Ans: d


Question 16) Which command displays shell variables for Borne and C shell ?
a env
b printenv
c set
d list

Ans: a

Question 17) What command schedules a command to run once at a given time?
a crontab
b priocntl
c at
d cron

Ans: d

Question 18) Where is the printer information directory or files ?
a /etc/printcap
b /dev/term/a
c /usr/share/lib/terminfo/e
d /usr/lib/printinfo/e

Ans: c

Question 19) What mount option is used to mount file systems that have files larger than 2GB?
a largefiles
b nolargefiles
c lf
d its enabled by default

Ans: d

Question 20) The fragment size of a UFS file system is
a 512 bytes
b 1024 bytes
c 2048 bytes
d 4096 bytes

Ans: b

Question 21) What file contains a list of file systems to be automatically mounted at boot up?
a /etc/fstab
b /etc/dfs/dfstab
c /etc/vfstab
d /etc/rc2.d/S74autofs

Ans: c

Question 22) Which of the following will increase the reliability of email transmission ?
a encoding
b decoding
c compressing
d uncompressing

Ans: c

Question 23) What is standard output ?
a tap
b terminal
c printer
d cdrom

Ans: b

Question 24) Which command can edit a file ?
a vi file
b vi -p file
c vi -r file
d vi

Ans: A,C


Question 25) To install WEB install you need
a Floppy drive
b 64mb Ram
c 1 GB HDD
d Power pc system

Ans: b

No comments:

Post a Comment