May 23, 2009

Linux \ Solaris Interview Question - 19

Question 451) Which command is used to change the system boot device?
a use disk2 as boot-device
b set boot-device disk2
c setenv boot-device disk2
d set boot-dev disk2
e setdev boot disk2

Ans: c

Question 452) When you use the command #reject printer1 ,
a printer1 will reject additional print requests on the printer
b printer1 will move or cancel any requests that are currently queued to the printer
c printer1 will be temporarily unavailable (equivalent to pressing "online/offline" on the printer itself
d printer1 will will accept print jobs

Ans: a,b

Question 453) When you use the command #disable printer1
a printer1 will reject additional print requests on the printe r
b printer1 will move or cancel any requests that are currently queued to the printer
c printer1 will be temporarily unavailable (equivalent to pres sing "online/offline" on the d printer itself
e printer1 will accept print jobs

Ans: c,e

Question 454) Which of the following command may be used to check the status of the print queues?
a lp -q
b lp -s printername
c lp -q printername
d lpstat -o
e lpstat -p printername

Ans: d,e

Question 455) In order to redefine available set of commands you can execute,which variable must you modify ?
a DISPLAY
b PATH
c HOME
d PS1

Ans: b

Question 456) Which of the following files may be use to control the usage of crontab?
a /etc/crontab/cron.allow
b /etc/crontab/cron.deny
c /etc/cron.d/cron.allow
d /etc/cron.d/cron.deny
e /etc/cron.access
f /etc/crontabACL

Ans: c,d


Question 457) Which daemon may execute commands repeatedly ?
a cron
b at
c cronat
d crontab

Ans: a

Question 458) Which of the following may be considered as serial devices?
a serial ports
b SCSI ports
c alphanumeric terminals
d modems
e serial printers

Ans: a,c,d,e

Question 459) What does R means: in the S column of the output of ps command?
a The process is running.
b The process is on the running queue
c This process is a regular process.
d This is a sleeping process.

Ans: a

Question 450) What are the serial interfaces?
a Small Computer System Interface
b Serial Device Peripheral Interface
c Data Terminal Equipment
d Data Communications equipment
e Serial Data Interface
f Serial Communication Equipment

Ans: c,f

Question 451) Which command does a full backup of all files in the /export/home file system to the /dev/rmt/1 remote tape device attached to the workstation "mars".
a ufsdump Of mars/dev/rmt/1 /export/home
b dd 0f mars/dev/rmt/1 /export/home
c cpio > i mars/dev/rmt/1 /export/home

Ans: a

Question 452) Pin 2 of the RS-232-C 25 pin connector for a Data Terminal Equipment is used to
a transmit signal
b receive signal

Ans: a

Question 453) Which of the following are true of null modem cable ?
a A null modem cable provides meAns: for two DTE devices to communicate with each other without a modem
b A null modem cable crosses pins 2 and 3
c A null modem cable crosses pins 7 and 8
d Only pins 2,3 and 7 are required for communications between two DTE devices

Ans: a,b,d

Question 454) The tip command
a may be used to connect a remote host using a modem
b uses full duplex connection over a parallel line
c will cause a file called .tiprc in the user's home directory to be executed
d may use the following environment variables REMOTE, PHONES, HOST, HOME, SHELL
e uses the following files /etc/phones, /etc/remote, /var/adm/aculog and ~/.tiprc

Ans: a,b,c,d,e

Question 455) Root user is
a user ID=0, group ID=0
b user ID=0, group ID=1
c user ID=1, group ID=0
d user ID=1, group ID=1

Ans: b

Question 456) Which Sun system will halt and poweroff when "init 5" is executed ?
a sun3
b sun4
c sun4c
d sun4m
e sun4d

Ans: d

Question 457) Which of the following module is used to perform standard terminal I/O processing?
a ldterm
b sacadm
c pmadm
d ttyadm
e nlsadmin

Ans: a

Question 458) Password is verified against which file ?
a /etc/shadow
b /etc/passwd

Ans: a

Question 459) The SAF (Service Access Facility)
a may be used for monitoring of the parallel ports
b uses the port monitor process to manage the USB port
c uses ttymon to manage serial ports
d manages network ports using the listen daemon

Ans: a,b,c,d

Question 460) Which of the following daemons is used for detecting incoming login requests and dispatching these requests appropriately, setting terminal modes and baud rates?
a listen
b logind
c ttymon
d ttyd
e seriald

Ans: a,b,c,d,e

Question 461) Which of the following command copy files to remote system ?
a rcp
b rsh
c ftp
d telnet

Ans: a

Question 462) Which option of the usermod command allows the use of duplicate user IDs?
a -o
b -i
c -u

Ans: a

Question 463) What does .login commonly have ?
a environment variables
b shell variables
Ans: a

Question 464) What file is created by ttymon and contains successful logins information ?
a /var/adm/logins
b /var/ttylogs
c /var/tty/logins
d /var/adm/utmp
e /var/logs/ttylog

Ans: d

Question 465) What command can be used to set the values of the positional parameters?
a setenv
b setparam
c setpos
d setpp
e set

Ans: e

Question 466) When is the system profile executed?
a After the .profile in the home directory of the user account
b Before the .profile in the home directory of the user account
c Instead of the .profile in the home directory of the user account

Ans: b

Question 467) The sh command is a useful one to debug shell scripts. Which option of the sh command may be used to print commands and their arguments as they are executed?
a -v
b -s
c -x
d -d
e -c

Ans: c

Question 468) What type of file is this?
drwxr_xr_x 1 tom users 512 Sep 1 0826 devices
a block
b Directory
c Symbolic link
d Device
e Regular

Ans: b

Question 469) How to terminate an application ?
a Ctrl-c
b kill command
c quit from window for any window applications
d suspend command

Ans: a,b,c

Question 470) What is the block size that df shows disk space in,by default?
a 256 bytes
b 512 bytes
c 1024 bytes
d 2048 bytes

Ans: b

Question 471) Which of the following command show the patches installed?
a pkginfo
b patchadd -p
c showrev -p
d patchinfo

Ans: b,c

Question 472) Which command, similar to tar in syntax, produces an archive which compresses each file before archiving it?
a tar
b Zcat
c cpio

Ans: b

Question 473) What value represents Sunday in the day of week field in crontab?
a 0
b 1
c 6
d 7

Ans: a

Question 474) Which process tool can you use to find the current working directory for a process?
a ps
b pwdx
c dir

Ans: b

Question 475) How do you find all the patches that have been applied to the package SUNWtest?
a showrev -p |grep SUNWtest
b pacthinfo SUNWtest
c showpacth -p SUNWtest

Ans: a

No comments:

Post a Comment