January 20, 2009

Linux / Solaris Interview Question - 2

Question 26) what is the command to display the runlevel
a who
b who -r
c who -R

Ans: b


Question 27) Which daemon check the crontab during the initialization ?
a cron.d
b crontabd
c cron
d crond

Ans: c

Question 28) How to find users logged into local area network
a who
b finger
c last

Ans a


Question 29) Which file will show physical device name to its instance name
a /etc/hosts
b /etc/path_to_inst
c /etc

Ans: b

Question 30) What does ps do without option ?
a all jobs
b all process
c all jobs belong to the user
d all process belong to the user

Ans: c

Question 31) The shutdown command to stop at OK prompt
a init6
b init 0
c init s
d init 1

Ans b

Question 32) What lp -d X Y mean ?
a show default printer
b show the queue of printer X
c print file Y in printer X
d remove print request X and Y

Ans: c

Question 33) How is logging failed login attempts to /var/adm/loginlog enabled?
a Add "FAIL=/var/adm/loginlog" to the /etc/default/login file
b Execute the logfail /var/adm/loginlog command
c Create the /var/adm/loginlog file
d Execute the login -fail /var/adm/loginlog command

Ans: c

Question 34) What type of file is this?
drwxr_xr_x 1 tom users 512 Sep 1 08:26 devices
a Door
b Directory
c Symbolic link
d Device (block)
e Regular

Ans b

Question 35) Default shell of solaris
a c,korn,bourne
b c,sun,unix
c korn,unix, bourne
d sun,os/2,bsd

Ans a

Question 36) How to find all files in the system belong to user X ?
a find /-owner X -print
b find /-user X -print
c find /-name user X -print
d find /-name X -print

Ans: b

Question 37) Who can use chmod 2750 filename command ?
a superuser
b group manager
c anyone in the group
d the file owner

Ans: d


Question 38) Sources from where we can get patches
a ftp to sun
b telnet to sun
c www
d media

Ans: c,d

Question 39) What is the daemon that runs crontab
a cron
b crontabd
c crond

Ans: c

Question 40) You should change which file in the remote machine if you want to login and do not
need to input password ?
a /etc/hosts.equiv
b $HOME/.rhosts
c /home/.rhosts
d /.rhosts

Ans: b

Question 41) Default shells of solaris is
a bourne
b c shell
c korn

Ans: a

Question 42) Which of the followings will find a file whose size is larger than 1 kilobytes ?
a find /export/home -size +2
b find /export/home -size +1024
c find /export/home -size +1

Ans: a

Question 43) What is a host
a Host provides services to the othersystems.
b It is an entity to take service from other systems
c Host is a unique name

Ans: c

Question 44) What is the command used to see ur userid groupid group and name
a who
b id
c last
d logins

Ans:d

Question 45) When you install a machine, which partitions are default included ?
a /opt
b /usr
c /var
d /

Ans: B,D

Question 46) What is the output of the command
lpadmin -p test -c bldg10
lpadmin -p test -c bldg11
accept bldg11

a 2 classes bldg10 and bldg10 is created
b only class bldg11 accepts jobs
c only class bldg10 accepts jobs

Ans: b

Question 47) Which of the following put the print request to the highest priority ?
a lp -q 0 filename
b lp -q top filename
c lp -q immediate filename
d lp -q high filename

Ans: a

Question 48) To identify user name, UID, group name and GID
a who
b last
c id
d finger

Ans c

Question 49) How to assign priority to a file topurgent
a lp -d printername -q 1 topurgent
b lp -p printername -q 0 topurgent
c lp -d printername -q 0 topurgent

Ans: c

Question 50) Which sub-command of ftp is used to transfer files without needing confirmation for  each file?
a hash
b prompt off
c no conf
d ftp -i

Ans b,d

No comments:

Post a Comment