Showing posts with label Solaris Interview Question. Show all posts
Showing posts with label Solaris Interview Question. Show all posts

June 6, 2009

Linux \ Solaris Interview Question - 21

Question 501) Which option of patchadd command does not backup the files to be patched?
a -u
b -f
c -v

Ans: a

Question 502) What permissions are needed to change to a directory and list its contents ?
a r--
b rw-
c r-x

Ans: c

Question 503) Which commands will create a file ?
a touch filename
b cat filename
c ls filename
d cat blah filename

Ans: a,d

Question 504) You go to a users desk and find that the technician has su'd to root and left the station still logged in. You have 5 junior admins under you. What command can you use to determine who the culprit is
a who am i
b who
c last
d finger

Ans: a

Question 505) The cron daemon
a schedules jobs to run
b executes jobs to run

Ans: b

Question 506) You want to print a file with the highest priority, how do you do this ?
a lp -q 0 filename
b lp -q high filename
c lp -q immediate filename
d lp -q

Ans: a

Question 507) What is denoted by the following permissions on the file taxes1999? -r-sr-xr-x
a the file is not executable by anyone but root
b world readable-writable by all users
c file has been locked to all users
d The current owner and root of the file can execute it.
e None of the above

Ans: d

Question 508) Who can remove print job ?
a root
b file owner
c job owner

Ans: a,b

Question 509) Which of the following executes a task at 700pm once?
a at 700pm task
b at 1900 at task
c at 700pm at task at ctrl-d
d at 1900 at ctrl-d task

Ans: c

Question 510) What is the purpose of the PROM? Choose all that apply.
a Boot the operating system
b Test the hardware
c Initialize daemons
d Share resources via NFS
e None of the above

Ans: a,b

Question 511) In Bourne shell, how to assign value to variable EDITOR ?
a EDITOR=/bin/vi
b set EDITOR /bin/vi

Ans: a

Question 512) You wish to run extensive diagnostics on your sun box during bootup, what should you do?
a Nothing, it will run an extensive POST by default.
b Press and hold the stop key while powering on the system.
c Press and hold the stop key as well as the S key
d Press and hold the stop key while pressing the M key.
e None of the above

Ans: e

Question 513) What do you choose to use the new disk from the format menu?
a new
b disk
c select
d

Ans: b

Question 514) If you have an umask of 022, and you create a new empty file, which permissions will it have?
a 644
b 755
c 666
d 123

Ans a

Question 515) If you type the word Mississipi3 for the passwd command
a It is correct
b It is and invalid password
c The passwd command shows you an error message
d The passwd command displays a warning message

Ans: b

Linux \ Solaris Interview Question - 20

Question 476) If you are on a VT220 terminal and there is no stop key on the keyboard, which of the following is true
a A break signal cannot be sent to the machine from the terminal.
b A break signal can be sent by pressing CTRL, ALT and Del together.
c Check the VT220 terminal manual to find out he key to generate the break signal.
d Power down the VT220 terminal to send the break signal.

Ans: c

Question 478) Your current working directory is the /export/home_a/user/ directory. Which 2 commands strings put you into the /export/home_b/user 20 directory?
a cd ../../home_b/user 20
b cd /export/home_b/user 20

Ans a,b

Question 479) What are the 3 default Solaris 8 shells?
a c,bourne,korn
b bash,korn,bourne
c sun,korn,bourne

Ans: a

Question 480) What affect does setting ignoreeof environment variable have ?
a Shell will ignore Control-D, so you cat not log out with it
b can not end letter using mail command since Control-D will be ignored

Ans: a

Question 481) How many shells are available in solaris 8 operating environment?
a 3
b 4
c 8
d 6

Ans: d

Question 482) In order to monitor system message on the console,uncomment CONSOLE=/dev/console in which file ?
a /etc/default/su
b /etc/default/login
c /etc/default/init
d /etc/default/passwd

Ans: a

Question 483) Which of the following command shows the processes associated with the local terminal?
a ps -e
b ps -ef
c ps -a
d ps

Ans: c

Question 484) How will u change all the occurences of "Solaris" into "Solaris Operating Enviroment" in a file?
a %s/Solaris/Solaris Opearating Environment/g
b %r/Solaris/Solaris Opearating Environment/g
c %c/Solaris/Solaris Opearating Environment/g

Ans: a

Question 485) Which directory does "cd .." change to ?
a parent directory
b child directory
c home directory
d root directory

Ans: a

Question 486) What are the ways to quit vi?
a wq
b w
c q
d ZZ
e quit

Ans: a,b,d

Question 487) What is the correct sequence of file type ?
a owner other group
b other group owner
c owner group other
d group other owner

Ans: c

Question 488) Siva has taken a position with a competing firm. How would you go about locking his account so that he can no longer gain access to the system? Choose all that apply.
a use the admintool to delete his account.
b i userdel ram12
c i passwd -l ram12
d using the admintool remove him from the accounting group
e None of the above

Ans: c

Question 489) In relative path, which is the default in the directory hierarchy ?
a look down the directory
b look up the directory

Ans: a

Question 490) From the command line, how would you delete users directory and login at the same time?
a userdel -d siva
b userdel -r siva
c userdel -l siva
d userdel -o siva

Ans: b

Question 491) How to display disk usage in terms of kilobyte ?

a df -k
b du -k
c df
d du

Ans: a

Question 492) If you have drwxrwsrwx, how to disable de setgid bit?
a chmod 0777
b chmod g-s
c chmod 2755
d chmod 2777

Ans: b

Question 493) The right way to use these two commands chown, chgrp
a chown new_owner filename
b chown filename new_owner
c chgrp new_group filename
d chgrp filename new_group

Ans: a,c

Question 494) What is the command displaying a trailer character in order to recognize what is the file type?
a ls -A
b ls -F
c ls -d
d ls -l

Ans: d

Question 495) What does r-x mean ?
dr-xr-xr-x
-r-xr-xr-x
a writable, executable
b readable, searchable
c readable, executable
d read only

Ans: b,c

Question 496) You suspect that someone has been trying to login to the network. What would you have to do set up the system to record failed login attempts?
a Nothing, account logging is on by default in ver 8\par
b Uncomment the line initializing logging in the startup script
c Enable the logging daemon
d Create a file called loginlog in /var/adm/
e None of the above

Ans: d

Question 497Which of the following is the first phase in the Solaris boot process?
a init
b Boot PROM or BIOS
c Boot programs
d Kernel initialization

Ans: b

Question 498) What is illegal character in host name ?
a letter
b number
c slash (/)
d underscore (_)

Ans: c

Question 499) Where does the command who look for information about users currently on the system?
a /var/adm/who
b /var/adm/utmpx
c /var/sadm/ucmp
c /var/sadm/all

Ans: b

Question 500) What does t mean in -rwx-----t ?
a readable
b searchable
c setgid
d sticky bit

Ans: d

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

April 16, 2009

Linux \ Solaris Interview Question - 18

Question 426) What is the command to send a print request to printer printer1 to print file1 without banner?
a lp file1
b lp -n printer1 file1
c lp -d printer1 -o nobanner file1
d lp -p printer1 -o nobanner file1
e lp -p printer1 -b file1

Ans: a,b,c,d,e

Question 427) Which command list hidden files ?
a ls -l
b ls -a
c ls -h
d ls -IF

Ans: b

Question 428) To execute the reducelog command at 11 P.M. every Sunday evening, which entry should be placed in a crontab file?
a 11 00 * * 0 reducelog
b 0 23 * * 0 reducelog
c * * 23 0 0 reducelog
d reducelog 11 00 * * 0

Ans: b

Question 429) What is the command to display all status information output and the acceptance and idle or busy status of all printers?
a lp -a
b lp -d
c lp -o
d lp -p
e lp -s
f lp -t

Ans: f


Question 430) Which environment variable is used to set default printer?
a PRINT
b DEFAULTPRINTER
c LPDEST
d DEFAULT

Ans: c

Question 431) What is the command to display the idle or busy status and availability of all printers?
a lp -a
b lp -d
c lp -o
d lp -p
e lp -s
f lp -t

Ans: d

Question 432) What is the result of using the following command?
# mkdir -p dir1/dir2/dir3
a it creates 3 directories, named dir1, dir1/dir2, and dir1/dir2/dir3 respectively.
b it is not a valid command
c it creates directories names dir1,dir2,dir3 respectively

Ans: a

Question 433) What are the commands to cancel a specific printer request waiting in the queue or the print request currently printing?
a lp -k
b lp -k
c lp -k
d cancel -u
e cancel

Ans: d,e

Question 434) What is the terminology used to describe a named group of printers created with the lpadmin command?
a cluster
b group
c class
d circle
e school

Ans: c

Question 444) Which error message this command will generate
cd /usr/bin ~letters
a Too many arguments.
b No such directory.

Ans: a

Question 445) Which of the following commands are valid to create a class of printers and enable them to queue jobs?
a#lpadmin -p printer1 -c class1
#lpadmin -p printer2 -c class1
#accept class1
b#lpadmin -p printer1 -c class1
#lpadmin -p printer2 -c class1
#enable class1
c#lpadmin -d printer1 -g class1
#lpadmin -d printer2 -g class1
#enable class1
d#lpadmin -d printer1 -g class1
#lpadmin -d printer2 -g class1
#accept class1

Ans: a

Question 447) What does the command "df -k" do ?
a It shows the size of each file partition in byte
b It shows the size of each file partition in megabyte
c It shows the size of folders and files in your home directory in kilobyte
d It shows the amount of disk usage in percentage

Ans: d

Question 448) What is the command that will movee a specified print job to the top of the queue?
a lp -q print-request -H top
b lp -u userid -H first
c lp -i print-request -H immediate
d lp -p print-request -H first

Ans: c

Question 449) Which of the following command will set the priority to n while printing a file?
a lp -d printer -P n file
b lp -p printer -b n file
c lp -d printer -q n file
d lp -p printer -P n file
e lp -d printer -p n file

Ans: c

Question 450) The stick bit has NO effect to which of the following ?
a file owner
b any member of the group
c anybody access the directory

Ans: a

April 14, 2009

Linux \ Soalris Interview Question -17

Question 400) You want to print three copies of a file, how do you do this ?
a lp -3 file
b lp -n 3 file
c lp.....

Ans: b

Question 401) The new password must differ from the old one for atleast __ charters
a 2
b 3
c 4
d 8

Ans: b

Question 402) What does a physical device name consist of?
a Slashes
b Instance numbers
c Node names
d SCSI controller numbers

Ans: a,c

Question 403) In Bourne shell, how to export variable ?
a export variable
b export $variable
c setenv variable
d set variable

Ans: a

Question 404) The command that may be used to identify the users who are logged in on other systems on the network is
a rusers
b rcp
c telnet
d rup

Ans: a

Question 405) Which of the following are the valid software configuration cluster?
a Core
b End User
c Enterprise
d Developer

Ans: a,b,d

Question 406) Which of the following commands will modify the /etc/dumpdates
a ufsdump 0c /dev/rdsk/c1t0d0s2
b ufsdump 0cf /dev/rmt/0 /dev/rdsk/c1t0d0s2
c ufsdump 0cf /dev/rmt/0n /dev/rdsk/c1t0d0s2
d ufsdump 0ucf /dev/rmt/0 /dev/rdsk/c1t0d0s2

Ans: d

Question 407) If you have multiple dump files in a magnetic tape and you want to be sure that the tape drive will skip to the end of the recorded media before you dump more files into the media, choose one of the following commands
a mt eom
b ufsdump 0ucf /dev/rmt/0n /dev/rdsk/c1t0d0s1
c mt retension
d mt forward
e mt fsf 10
f mt last

Ans: a

Question 408) Which command removes print jobs ?
a cancel
b enable
c stop

Ans: a

Question 409) NFS servers can share peripherals like modems and printers. The above statement is
a true
b false

Ans: b

Question 410) In Bourne shell, set 1234=4567, which one is variable
a 1234
b 4567
c set
d set and 1234

Ans: a

Question 411) Which is the configuration file for nfs server?
a /etc/nfstab
b /etc/nfs/nfstab
c /etc/dfs/dfstab
d /etc/sharetab
e /etc/vfstab
f /etc/mnttab

Question 412) What is the command that is used to find out the nfs resources shared by a server?
a nfshares
b nfsshares
c shares
d dfshares
e netshares

Ans: d

Question 413) Which 2 commands should be used to acquire online information about the /etc/vfstab file?
a man -s4 vfstab
b man vfstab(5)

Ans: a,b

Question 414) Which PROM command boots the system using a different file system?
a boot -a
b boot -d
c boot -f
d reboot

Ans: a

Question 415) Which of the following is the spooling directory for pending print requests?
a /var/spool/lp
b /var/lp/spool
c /etc/spool
d /etc/lp/spool
e /tmp/lp/spool

Ans: a

Question 416) What are the functions of Print Filters ?
a to identify the terminfo database entry containing the control sequences to initialize the printer
b to print forms and forms with text and graphics instead of blank paper
c to initialize a printer before sending a print job to the printer
d to convert the content of requests to the type of content accepted by the destination printer
e to track the status of every job to enable users to remove jobs and system administrators to manage print jobs

Ans: d

Question 417) Environment variables are known in all ___ created after the variable defined
a sub-shells
b aliases
c processes
d jobs

Ans: a

Question 418) Where is the ASCII definition database which describes the capabilities of terminals and printers ?
a /etc/termcap
b /usr/share/lib/terminfo
c /etc/terminfo
d /usr/lib/termcap

Ans: b

Question 419) Which directory contains the database entries that dictate the control sequences to initialize the printer?
a /usr/lib/lp/
b /etc/lp/
c /usr/share/lib/terminfo
d /etc/lp/terminfo

Ans: c

Question 420) Which command is used to build a new file system on the raw special device at c0t3d0s5?
a newfs /dev/rdsk/c0t3d0s5
b newfs /devices/rdsk/c0t3d0s5

Ans a

Question 421) Which of the following evaluate the command literally ?
a back quote (` `)
b double quote (" ")
c single quote (' ')
d parentheses (( ) )

Ans: a

Question 422) Which of the following user environment variables may be used to specify the default printer?
a LPRCONF
b PRINTERS
c PRINTER
d LPDEST
e LPDEFAULT

Ans: c,d

Question 423) Which command in PROM mode can display the default Boot device that system boot from ?
a banner
b probe-scsi
c devaliase
d printenv

Ans: d

Question 424) Which of the following command cannot be used to manipulate print requests?
a continue
b cancel
c enable
d disable
e accept
f reject

Ans: a

Question 425) Which of the following commands may be used to move a print request from one queue to the other?
a lp -c
b lp -x
c lpadmin
d lpmove

Ans: d

April 11, 2009

Linux \ Solaris Interview Question - 16

Question 376) Which is the directory that stores all the default hidden initialization file in the users' home directories when they were first created
a /etc/default/login
b /etc/default/
c /etc/skel/
d /etc/profile/
e /etc/home/
f /etc/.login/

Ans: c

Question 377) What is the difference between at and crontab ?
a crontab jobs scheduled to run once, at jobs scheduled to run many times
b crontab is the scheduler, at executes the commands
c at is the scheduler, crontab executes the commands
d crontab jobs are scheduled to run many times, at jobs are scheduled to run once

Ans: d

Question 378) Which command should be used to extract the file install.log from the backp.tar file which is in tar format?
a tar cvf backup.tar install.log
b tar xvf backup.tar install.log
c tar evf backup.tar install.log

Ans: b

Question 379) Which of the following situations will allow a user account to execute admintool?
a The account is a member of the sysadmin group.
b The account is root.
c The account is logged in at the console
d The account is a member of the sys group.
e The account is a member of the adm group.

Ans: a,b

Question 380) How to use rcp ?
a rcp file remote_host /tmp
b rcp
c rcp remote_host file /tmp
d rcp file remote_host/tmp

Ans: d

Question 381) Which of the following are valid fields in /etc/passwd?
a encrypted password
b user ID
c loginID
d primary groupID
e default shell
f secondary groupID
g password aging

Ans: b,c,d,e

Question 382) Why environment variables are defined in .login ?
a Since environment are inherited from .login
b Since .login is executed when each shell is started

Ans: a

Question 383) What is the file that defines the default fields of /etc/shadow eg. the period of which a user must change his/her password and the minimum period that the user must change his/her password This file also specifies the minimum password length?
a /etc/default/passwd
b /etc/default/shadow
c /etc/default/useradd
d /etc/default/login
e /etc/default/skel

Ans: a

Question 384) What are the initialization files if a user uses C shell
a /etc/profile
b /etc/profile
c /etc/login
d /etc/skel/local.cshrc

Ans: c

Question 385) Which of the following are serial devices?
a CPU
b memory
c terminal
d printer

Ans: c,d

Question 386) What is the impact of DTSOURCEPROFILE=true in the .dtprofile of a user account that uses the C shell as the login shell?
a None-only accounts that use the Bourne and Korn shells as login shells are affected
b The .profile file in the home directory of the user account is sourced
c The .login file in the home directory of the user account is sourced
d The .cshrc file in the home directory of the user account is sourced

Ans: c

Question 387) Which of the following command gives read and write permission to the owner of a new file, read permission to group, and no permissions to others or gives all permissions to the owner of a new directory, read and execute permissions to group, and no permissions to others
a umask 022
b umask 027
c umask 755
d umask 644
e umask 750

Ans: b

Question 388) Determine the option of the setfacl command that is used to replace the entire ACL with the new ACL
a -m
b -s
c -d
d -r
e -c

Ans: b

Question 389) What is the usage of an inode?
a stores the file type
b stores the file size
c stores the content of the file or directory
d None of above

Ans: a , b

Question 390) Which slice of a hardisk in unix file system represents the entire disk by definition
a 0
b 1
c 2
d 3
e 4

Ans: c

Question 391) The command used to mount an ISO format CDROM
a mount
b mount -F ISO -r /dev
c mount -f ISO CDROM
d mount -F ISO CDROM -r /dev

Ans: b

Question 392) Which of the following command report on all mounted file systems and include the number of files
a quot -af
b quot -mn
c quot -an
d quot -mf

Ans: a

Question 393) What is the access mode of a file created with the umask set to 123?
a 321
b #NAME?
c 345
d rw-r--r--

Ans: d

Question 394) Which of the following directory contains executable commands, system administration utilities,and library routines
a /root
b /sbin
c /usr
d /lib
e /opt
f /bin

Ans: c

Question 395) Which Solaris utility is used to partition a hardisk ?
a fdisk
b format
c newfs
d makefs
e fsck

Ans: b

Question 396) Which command show all mounted file systems ?
a mount
b mountall
c umount
d umountall

Ans: a

Question 397) What is the main advantage of using a striped virtual file system compared to concatenated virtual file system?
a We can create a volume that is larger than one disk
b We can use more than one slice in a single file system
c We can increase the size of a file system while it is in use
d We can increase the file system Input/Output performance
e We can have special data compression algorithms that increase the storage capacity

Ans: d

Question 398) A user logs into a system running Solaris 8 OE using the telnet command The user has been assigned a Korn Shell (Ksh) and home /home/user1 directory. The following files are executed on login by user1.
a /home/user1/.kshrc
b /etc/profile
c /home/user1/.profile
In which order are they executed?

Ans: b,c,a

Question 399) Which of the following commands may be used to perform remote backup with crontab ?
a rlogin
b rsh
c ssh
d ksh
e telnet

Ans: b

Question 400) You want to print three copies of a file, how do you do this ?
a lp -3 file
b lp -n 3 file
c lp.....

Ans: b

April 9, 2009

Linux \ Solaris Interview Question -15

Question 351) Siva wants to backup his home directory Monday-Friday,
which cron job will do this ?
a 0 4 * * 2-6 tar cf /dev/rmt/0 /home/homer
b 0 4 * * 1-5 tar cf /dev/rmt/0 /home/homer
c 0 4 * 1-5 * tar cf /dev/rmt/0 /home/homer
d 0 4 * 1-30 * tar cf /dev/rmt/0 /home/homer

Ans: b


Question 352) Write down the commands at OK prompt to (a find out whether the system will automatically boot to CDE/OpenWindow upon reboot
a ok printenv auto-boot?
b ok env auto-boot?
c ok test auto-boot?

Ans: a

Question 353) Set the corresponding environment variable such that the system will not automatically boot up into the login manager
a ok setenv auto-boot? false
b ok env auto-boot? false
c ok set auto-boot? false

Ans: a

Question 354) Make the previous change persists
a ok default
b ok reset
c ok orginall-conf

Ans: b

Question 355) Which commands in vi place you in insert mode from command mode?
a i
b a
c A
d cw
e D
f G

Ans: a,b,c,d


Question 356) Write down the command to boot a SPARC machine into Single user mode with a CDROM
a ok boot cdrom -s
b ok boot cdrom -i
c ok boot cdrom

Ans: a

Question 357) Softwares distributed as packages on a Solaris 2.x system should contain
a the readmetxt file
b files describing that particular package
c the actual files to be installed
d scripts that should be run before and after installation
e scripts that should be run during removal

Ans: b,c,d,e

Question 358) Which of the following commands will display all packages
a pkginfo
b shpkg
c showpkg
d sh package

Ans: a

Question 359) What does /dev/dsk/c0t3d0s6 identify?
a The logical raw device addressed as Controller 0 Target 3 Disk 0 Partition 6
b The logical block device addressed as Controller 0 Target 3 Disk 0 Partition 6
c The physical raw device addressed as Controller 0 Target 3 Disk 0 Partition 6
d The physical block device addressed as Controller 0 Target 3 Disk 0 Partition 6

Ans: b

Question 360) cp a b report, What does report mean?
a a file
b an option
c a directory
d a user name

Ans: c

Question 361) Which of the following commands are wrong
a pkgrm -d package_name
b pkgrm package_name
c pkgrm -d package_path package_name
d pkgadd -d package_path package_name
e pkgchk -d package path

Ans: a,c,e

Question 362) What is the file (giving its full path) that is modified by pkgadd and pkgrm and contains the listing of all packages installed on a system?
a /var/sadm/spool/contents
b /var/sadm/install/contents
c /var/adm/spool

Ans: b


Question 363) The package command information could be obtained from
a package_path/package_name/pkgmap
b package_path/package_name/pkgcom
c package_path/package_name/info
d package_path/package_name/commands
e package_path/package_name/script
f package_path/package_name/pkgscript

Ans: a


Question 364) What is the correct format of crontab file ?
a time, date, command
b time, owner, command

Ans: a

Question 365) What is the spooling directory used when the following command is issued
# pkgadd -d package_path -s spool package_name
a /var/spool/pkg
b /var/sadm
c /var/spool/dir

Ans: a

Question 366) Packages can be removed from the spooling directory with which command below
a pkgadd -r spooling_path package_name
b pkgrm -s spooling_path package_name
c pkgrm -s package_name
d pkgrm -r package_name

Ans: b

Question 367) When does this job remove all core files ?
0 2 3 * 1 find /-name core -exec rm { }
a runs Monday at 200 am
b runs Sunday at 200am
c runs Monday at two minutes after midnight
d runs Sunday at two minutes after midnight

Ans: a

Question 368) Which of the following directories store the historical information about the patches installed in a system
a /etc/sadm/patches
b /opt/patch/log
c /var/sadm/patch
d /var/sadm/install
e /etc/install/patch

Ans: c

Question 367) Under which dir you can find the path_to_instance file
a /usr
b /root
c /etc
d /var

Ans: c

Question 368) Which is initialization file for Bourne shell
a .profile
b profile
c login

Ans: b

Question 369) When you log into C-shell which file is read
a .login
b local.login
c profile

Ans: c

Question 370) Which of the following commands can be used to display tha patches information
a patchadd -d
b patchadd -p
c patchadd -i
d patchrm -i
e patchinfo
f showrev -p

Ans: b,f

Question 371) Consider the following
# cp /etc/rc2.d/S22mylp /etc/rc2.d/.S22mylp.orig
a There is a problem, because init will execute both run control files at startup.
b There is a problem, because init will get confused and fail to run at startup.
c This is not a problem, because S22mylp and .S22mylp.orig will cancel each other out when init executes both files at startup.
d This is not a problem, because .S22mylp.orig will not be executed by init at all at startup.

Ans: d

Question 372) What if the /var/sadm/patch directory is tempered
a the patches added to a system may not function properly
b the system will crash more frequently
c the patches cannot be uninstalled
d it will not affect the system at all

Ans: c

Question 373) Which of the following cannot be configured through admintool
a users
b groups
c hosts
d printers
e parallel ports
f serial ports
g software

Ans: e

Question 374) Which is the preferred method to temporarily prevent a user account from being used?
a Delete the user account and all files in the home directory of the user account
b Lock the account using admintool
c Modify the user account .profile to change the user environment
d Use admintool to change the UID and GID associated with the user account

Ans: b

Question 375) A patch obtained from Sun Microsystems can be installed using which of the following commands?
a pkgadd -patch 107588-01
b patchadd 107588-01
c patchadd /var/spool/patch/107588-01
d patch SUNWaccu 107588-01

Ans: b,d

April 7, 2009

Linux \ Solaris Interview Question – 14


Question 326) What is the name of the print service scheduler?
a prtsched
b printsched
c lpsched

Ans: c

Question 327) In which order Bourne shell execute during login ?
a /etc/default/profile, $HOME/.profile
b $HOME/.profile, $HOME/.login
c /etc/profile, $HOME/.profile
d /etc/profile, $HOME/.login

Ans: c

Question 328) The Solaris supports what type of printing environment?
a homogenous
b heterogeneous
c hetero

Ans: b

Question 329) Which of the following files are used to control access to the at command?
a /usr/lib/cron/at.allow
b /etc/cron/at.allow
c /var/spool/cron/atjobs/at.allow
d /var/spool/cron/atjobs/at.deny

Ans: a

Question 330) Which command shows the users that have logged off the system?
a who
b last
c whodo
d id

Ans: b

Question 331) What is the lp command used for?
a to print ASCII or text files .
b to set up a line printer.
c to switch default printers.

Ans: a

Question 332) Which of the following types of file systems can be checked using the fsck command?
a S5
b UFS
c TMPFS
d HSFS

Ans: a,b,d

Question 333) lpstat -d meAns:
a delete a printing request
b show default printer
c print a file
d show printing requests on destination printer

Ans: b

Question 334) What's the meaning of the command chmod 4750 filename ?
a set UID
b set GID
c set stick bit
d unset UID

Ans: a

Question 335) What command is used to diplay the print queue?
a lpstat
b lpqueue
c lprint

Ans: a

Question 336) What command to boot from cdrom
a boot cdrom from prompt
b boot cdrom from o.k prompt

Ans: b

Question 337) What command is used to cancel a specific printer request waiting in the queue?
a cancel
b stop
c halt

Ans: a

Question 338) After reading and quitting from mail, the mail file is saved in
a mbox
b inbox
c .mailx

Ans: a

Question 339) A (blank) is a named group of printers created with the lpadmin command?
a group
b set
c class

Ans: c

Question 340) A user logs into a system running the Solaris 8 Operating Environment using the telnet command The user has been assigned a bourne shell (sh) and home /home/user/ directory. All of the following files exist with appropriate ownership and permissions. Which 2 files
are used to initialize this user's session?
a /etc/profile
b /home/user/.profile

Ans a,b

Question 341) What is the lpmove command used for?
a To move selected print request from one printer to another.
b To move printers from one queue to another.
c To form feed the line printer.

Ans: a

Question 342) Which command enables you to list, but not retrieve the contents of a tape archive copied to the default tape device /dev/rmt/0?
a tar tf /dev/rmt/0
b tar cf /dev/rmt/0
c tar xf /dev/rmt/0

Question 343) What command searches the specified directory hierarchy for files that match the search criteria?
a where
b find
c search

Ans: b

Question 344) Which command shows the last reboot time?
a boot -t
b who -r (I think This is Correct)
c uptime
d who -b

Question 345) What does the ps command do?
a list post script printers.
b list the processes currently running on the system.
c list all available printers.

Ans: b

Question 346) What is the task of the at command?
a execute a command or script at a specific workstation.
b execute a command or script at the server.
c execute a command or script at a specified time

Ans: c

Question 347) What command copies files between hosts ?
a rcp
b rsh
c ftp
d telnet

Ans: a,c

Question 348) Enables more than one process or application to be used at a time
A Multiuser
B Multitasking
C Distributed Processing.
D Timesharing

Ans: b

Question 349) The option used to duplicate user id
a -d
b -i
c -u
d -o
e -id

Ans: d

Question 350) What command can display default boot device?
a devaliase
b printenv
c probe-scsi
d default

Ans: b

April 6, 2009

Linux \ Solaris Interview Question – 13

Question 301) The reason why Solaris is distributive is that
a use of resources across network
b distribution of computers on network
c more than on person can access one file at the same time

Ans: a

Question 302) Which 2 commands or utilities can be used to display a list of active process?
a prstat
b sdtprocess
c ps -al
d proc

Ans: a,b

Question 303) What should I modify if I would like to change the password aging period?
a /etc/shadow
b /etc/password
c /etc/default/passwd
d /etc/inetinit

Ans: c

Question 304) What command allows you to log into remote systems, including non-UNIX systems?
a rlogin
b telnet
c remote

Ans:b

Question 305) What is minimum file system required other than /root
a /etc
b /export/home
c /usr
d /user

Ans: c

Question 306) What is the ftp command used for?
a send files to a remote system
b get files from a remote system.
c transfer files using ASCII, binary, DOS, or UNIX format
d All the above

Ans: d

Question 307) The /etc/cron.d/cron.deny file exists, but not the /etc/cron.d/cron.allow file Which of the following statements is true regarding access to the cron capability?
a Without a cron.allow file, no one, including root, is allowed to create,edit, or delete crontab files.
b Without a cron.allow file, only root is allowed to create, edit, or delete crontab files.
c Any user account not listed in the cron.deny file can create, edit, or delete crontab files.
d Any user account listed in the cron.deny file cannot create, edit, or delete crontab files.

Ans: c,d

Question 308) Questionuick install installs which cluster of packages ?
a core
b entire OS
c developer's package
d end-users' package

Ans: c

Question 309) What #rsh machinename does ?
a create a remote shell on local machine
b log user into a remote shell
c log user into the remote machine
d run a command on the remote machine, then exit

Ans: c

Question 310) What command identifies who is logged in on the network?
a rusers
b whoami
c rlog

Ans: a

Question 311) You are aware of a scheduled power outage Which 3 commands protect your computer against power outage?
a shutdown -i 0 -g 300 -y
b shutdown -i 1 -g 300 -y
c shutdown -i 5 -g 300 -y

Ans a,b,c

Question 312) The entry "SULOG=/var/adm/sulog" to enable logging of su usage is added to which of the following files?
a /dev/console
b /etc/passwd
c /etc/default/login
d /etc/default/su
e /var/adm/loginlog

Ans: d

Question 313) What is the ping command used for?
a to determine if the named host is up and running
b to determine if the pong is working.
c to determine if a user is logged into a specific workstation.

Ans: a

Question 314) the command used to check the accuracy of package installation
a pkginfo
b shpkg
c testpkg
d showrev -p

Ans: a

Question 315) What command displays the status of various network-related data structures?
a status
b netstat
c rstat

Ans: b

Question 316) What is the task of the compress command?
a Used to combine two files into one
b Used to compress files.
c Used to combine two or more files into one

Ans: b

Question 317) What is the result of the following command?
setfacl -s urw-,gr--,or--file1
a Access mode 644 is added to the existing ACLs for file1.
b Access mode 644 is deleted from the existing ACLs for file1.
c Access mode 644 replaces the existing ACLs for file1.
d Access mode 622 is added to the existing ACLs for file1.
e Access mode 622 replaces the existing ACLs for file1.

Ans: c

Question 318) What can verify the accuracy and integrity of a software package?
a pkgchk
b pkgchk -l
c pkginfo -l
d pkginfo -v

Ans: a

Question 319) What is the uuencode command used for?
a Create an ACSII-encoded representation of the binary file
b Create a file with a password protection.
c Create a directory with password protection.

Ans: a

Question 320) Which file contains the characteristics definition of printers stored?
a /usr/share/lib/terminfo
b /usr/share/lib/termcap
c /usr/share/lib/printer
d /etc/default/printer

Ans: a


Question 321) Which commands can be used to install a package from CD-ROM?
a admintool with Source Media set to CD with Volume Management
b pkgadd -d /cdrom/cdrom0
c admintool with Source Media set to CD without Volume Management
d pkgadd -s /cdrom/cdrom0

Ans: a,b,c

Question 322) What command is used to send mail from the command line?
a mailx
b sendmail
c xmail

Ans: a

Question 323) Shell is
a interpreter and trAns:lator
b carry out user requests.
c act as a programming language only

Ans: a

Question 324) What database consists of a series of files that describe control sequnces?
a termcon
b terminfo
c datainfo

Ans: b

Question 325) Every printer definition must contain two things. What are they?
a printer type , printer name
b printer type , location
c content type , printer type

Ans: c

April 3, 2009

Linux \ Solaris Interview Question - 12

Question 276) What information is provided by the df command?
a Logical raw device of the file system partition
b Logical block device of the file system partition
c Free blocks
d Number of files that can be created

Ans: b,c,d

Question 277) What is setuid?
a Changes a users Id
b Treats anyone with permission to run a program as if they are the program owner.
c Lets anyone run a particular program.

Ans: b

Question 278) What is the command to display who is currently logged into the system?
a who
b whoami
c whoishere

Ans: a

Question 279) What does the last command display?
a login and logout information
b The last n commands executed
c The last n lines of a file

Ans: a

Question 280) What type are CDROM file ?
a pipe
b symbolic link
c character
d block

Ans: c

Question 281) What is the format of the password file??
a usernamecommentUIDGIDhome-dirlogin_shell
b usernamexUIDGIDcommenthome-dirlogin_shell
c usernamexGIDUIDhome-dirlogin_shell

Ans: b

Question 282) Which file has login ID and other user information ?
a /etc/passwd
b /etc/hosts
c /etc/group

Ans: a

Question 283) Which 4 vi commands switch from command mode to edit mode?
a a
b i
c A
d cw

Ans: a,b,c,d

Question 284) Which are valid printer port ?
a /dev/term/a
b /dev/term/b
c /dev/term/ttya
d /dev/dsk/c0t0d0s3

Ans: a,b

Question 285) What command is used to become a different user?
a change
b du
c su

Ans: c

Question 286) You are working from a text-based terminal. Which command should you use to change a user's primary group?
a chgrp
b groupmod
c chown

Ans: b

Question 287) What command is used to display your user ID, user name, group ID, and group name?
a id
b gid
c showname

Ans: a

Question 288) Which statement is true about the file /etc/hosts ?
a It gives the hosts' name and their IP addresses.
b Any user can modify it.
c It is created automatically when adding a new user.
d It is created automatically when installing system.

Ans: a,d

Question 289) What does the -(dash) option provide with the su command?
a allows the user to adopt the environment of the new user.
b allows the user to log in as another user.
c allows the user to log in as super user.

Ans: a

Question 290) When a user account is created, the .profile is copied from which file?
a /etc/skel/default.profile
b /etc/profile
c /etc/skel/local.profile
d /.profile

Ans: c

Question 291) What command is used to display the Administration Tool?
a admintool
b admin
c tool

Ans: a

Question 292) What command is used to create a users' group?
a addgroup
b groupadd
c grpadd

Ans: b

Question 293) What command is used to add a user and create a users' home directory?
a useradd
b adduser
c addgroup

Ans: a

Question 294) What command allows a login session on a remote system?
a login
b rlogin
c enter

Ans: b

Question 295) What command is used to execute a program on a remote system?
a rsh
b rcp
c rexecute

Ans: a

Question 296) How to identify default boot information
a banner
b printenv
c devalias

Ans: a

Question 297) How many lines head/tail will display by default ?
a 10 lines
b 5 lines
c 25 lines

Ans: a

Question 298) What command allows you to copy files or directories to and from another machine?
a rsh
b rcopy
c rcp

Ans: c

Question 299) What is the host.equiv file used for?
a to identify remote machines as trusted hosts.
b to identify remote machines.
c to identify remote hosts with the same OS.

Ans: a

Question 300) When the mount command is entered without any command line arguments, what happens?
a All file systems in /etc/vfstab are mounted
b All mounted file systems are displayed
c All file systems in /etc/vfstab are displayed
d All file systems listed in /etc/mnttab are displayed

Ans: b,d

March 30, 2009

Linux \ Solaris Interview Question - 11


Question 251) # lpmove stock sparc meAns:
a move all print requests from stock to sparc
b move all root printing requests from stock to sparc
c move printing request stock to printer sparc
Ans: a
Question 252) Which of the following commands will show the current run level?
a) boot -l
b) who -b
c) uptime
d) who -r
Ans: d
Question 253) What does the Pipe (|) do?
a Takes the output of a command and logs it.
b Take the output of one command and displays it to the screen.
c Takes the output of one command and passes it as the input into a following command
Ans: c
Question 254) What are the 3 modes of operation in vi?
a Command mode, Insert mode, Entry mode
b Entry mode, Command mode, Replace mode
c Command mode, Entry mode, Last-line mode
Ans: c
Question 255) How do you create a new file using vi?
a new filename
b vi filename
c touch
Ans: b
Question 256) Which statement is true about IP address ?
a It consists of digital number separated by dot.
b It consists of letters, slash, dash, not digital numbers.
c It is used for searching network resources.
d It is used for searching network machines.
Ans: a,d
Question 257) What is the primary job of the shell?
a A command interpreter.
b The core of the operating system.
c Interpreter between applications and the OS.
Ans: a
Question 258) Which of the following shows the access mode of a file that has the setgid enabled?
a srwxrwxrwx
b -rwsrwxrwx
c -rwxrwsrwx
d -rwxrwxrws
e -rwxrwxrwt
Ans: c
Question 259) How to get date information into day variable in Bourne shell ?
a day=`date`
b day='date'
c day="date"
Ans: a
Question 260) What are environmental variables?
a Variables exported to all shells.
b Any variable
c Variable available to the current shell.
Ans: a
Question 261) Which of the following can be added in the members list of the Admintool Add Group window?
a UIDs that are less than 1,000
b The names of user accounts that are locked or have no password
c UIDs that are 1,000 or greater
d The names of user accounts used for system administration
Ans: b,d
Question 262) What is the env command used for?
a To display the current (local) variables and their values.
b To display all variables.
c To display the current (exported environment variables and their value
Ans: c
Question 263) What is a local variable?
a Variables exported to all shells.
b Variables known only in the current shell or window.
c Variables defined in the .profile
Ans: b
Question 264) What is the command to search for files and their full paths?
a search
b find
c goto
Ans b
Question 265) What is the set command used for?
a Displays the current shells exported variables.
b Displays the current shell's local variables.
c Displays the users that are logged in.
Ans: b
Question 266) What is the echo command used for?
a Display text or variables.
b Used to repeat a command more than once
c Displays text twice
Ans: a
Question 267) Within the partition menu of the format command, which simple command should you type next in order to give a name to the current label definition for future retrieval?
a Label
b disk
c type
Ans: a
Question 268) How to use on-line help ?
a help
b help login
c cat login
d man login
Ans: d
Question 269) What is the PATH variable used for?
a To determine the path to a command
b To determine the search order for the find command
c To determine the search orders for commands that are executed
Ans: c
Question 270) What does the which command display?
a The path name leading to a command
b To determine the search order for commands that are executed
c To determine the current shell in use
Ans: a
Question 271) What command displays your current search path?
a echo $PATH
b show $PATH
c $PATH
Ans: a
Question 272) What command is used to change file permissions?
a chmod
b chperm
c permission
Ans: a
Question 273) What command is used to display your current user mask setting?
a mask
b umask
c showmask
Ans: b
Question 274) What does the r mean in the following file permission for the owner ?
-rw-r-----
a cannot read
b read only
c readable
d can execute
Ans: c
Question 275) What command is used to change group ownership on files and directories?
a chmod
b passwd
c chgrp 
Ans: c

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

February 26, 2009

Linux \ Solaris Interview Question - 9


Question 201) What is the contents in /etc/skel ?
a template of shell scripts.
b default login scripts.
c kernel system files.
d host's name information.

Ans: a


Question 202) Which 2 commands should be used to acquire online information about the /etc/vfstab file?
a man -s4 vfstab
b man vfstab
c man vfstab(5)
d man /etc/vfstab

Ans a,c

Question 203) What is the command to display the file system information in Kbytes?
a ls -l
b df -k
c df -l

Ans: b

Question 204) Which of the following commands can be used to create a UFS file system?
a mkfs
b mkfs -F ufs
c mkfs_ufs
d newfs

Ans: a,b,c,d

Question 205) What does the term CURRENT DIRECTORY refer to?
a The directory in which you are currently working.
b The hierarchy of files and directories.
c parent directory.

Ans: a 
Question 206) You want to prevent the password for the guest account from being changed frequently. Which field of the Admintool Modify User window do you use?
a Password
b Min Change
c Max Change
d Max Inactive

Ans: b

Question 207) Which ls command option would you use to verify the owner of a file?
a -l
b -a
c -s

Ans: a

Question 207) Under format menu which command is used to find the current label
a partition
b print
c label
d current

Ans: c

Question 208) Which of the following can be used to specify the printer to be used?
a The LPDEST shell variable
b The lpadmin command
c The lp command
d The PRINTER shell variable

Ans: a,b,c,d

Question 209) Which of the following can be used to remove multiple patches?
a patchrm -M /var/spool/patch 104567-03 106583-10 103276-04
b Use patchrm to remove each patch separately
c patchrm -M /var/spool/patch patchlist

Ans: b

Question 210) What is the pwd command used for?
a To display your default printer.
b To display your parent directory.
c To display your current directory.

Ans: c

Question 211) A tree of directories and files is called
a a file system
b a cluster
c a hard drive

Ans: a

Question 212) What does one period (.) represent.
a The current parent directory.
b The current working directory.
c The current sub-directory.

Ans: b

Question 213) What does the -a option do in the ls command
a list files in long format
b list hidden files
c This is not a valid option for the ls command

Ans: b

Question 214) What command displays the NVRAM parameters?
a setenv
b env
c printenv

Ans: c

Question 215) What command changes the NVRAM parameters?
a setenv
b env
c chmodenv

Ans: a

Question 216) What does the -r option do in the rm command
a removes all empty sub-directories.
b removes a directory that is not empty.
c removes all files.

Ans: b


Question 217) Which command are legal ?
a ls filename -l
b head -10
c head -20 /dev/filename
d mv -i *

Ans: c

Question 218) What does the cat command do?
a Gives a listing of all files in a directory.
b Displays short files.
c Displays your current working directory.

Ans: b

Question 219) Which 2 commands or utilities can be used to display a list of active process?
a prstat
b ps
c sdtprocess
d ps -a

Ans a,c

Question 220) How is the error message processed if the print daemon encounter a problem when a user sends a file to the printer ?
a display the message on the console or mail the message to administrator.
b display the message on the console and mail the message to the user sending the job
c display the message on console only.
d mail the message to the user only.

Ans: c

Question 221) When receiving an encoded mail, how to read it ?
a nothing. Save it to a file will be readable automatically.
b save it to a file, then uncompress it.
c save to a file, then uudecode the file
d save to a file, then crypt the file

Ans: c

Question 222) Which function is not performed by /etc/group file ?
a assign secondary groups for users
b assign a name to primary groups
c provide a special group for super user privilege

Ans: b


Question 223) Which command(s) does not integrate incremental backup feature?
a Tar
b cpio
c ufsdump
d dd

Ans: a,b

Question 224) What does the more command do?
a Displays the contents of a file to the screen more than once
b Displays the contents of a file
c Displays the contents of a file to the screen one screenful at a time

Ans: c

Question 225) To list current mounted file system.
a mountall
b mount
c umount
d umountall

Ans: b

Linux \ Soalris Interview Question - 8

Question 176) Which of the following commands can be used to define a Bourne shell variable? 
a setenv PRINTER=lp1
b env PRINTER lp1
c PRINTER=lp1
d set PRINTER lp1
e define PRINTER as lp1

Ans: c

Question 177) Which of the following create a new file ?
a touch newfile
b cat oldfile newfile
c cp oldfile
d cat oldfile | newfile

Ans: a,b

Question 178) How do you display the work Space menu?
a Press the right mouse button inside any window.
b Press the right mouse button outside any icon or window
c Press the center mouse button anywhere on the screen.

Ans: b

Question 179) Which of the following can be used to remove packages?
a admintool
b pkgtool
c pkgadd
d pkgrm
e pkginfo

Ans: a,d

Question 180) How to display current shell process ?
a ps -aux
b ps -ef
c ps
d ps -el

Ans: c

Question 181) What is the pushpin used for in some menus and windows?
a Used to "pin" a menu to the workspace
b Used to log out of the System.
c Used to open another window.

Ans: a

Question 182) What does the term ABSOLUTE PATH mean?
a Tells you absolutely how to get to a file or directory.
b Tells you where you are in a file structure
c Displays the directory you are currently working in.

Ans: a

Question 183) What is the Internet class for IP 192.34.64.11 ?
a A
b B
c C
d D

Ans: c

Question 184) Whats the output of mkdir -p x/y/z
a it creates dir x,y,z
b it creates dir z in y , y in x , x under the current dir
c its not a vaild command
d it creates dir x,y/z

Ans: b

Question 185) What does the term PARENT DIRECTORY mean?
a The root directory.
b A directory with any directories below it.
c A directory below another directory.

Ans: b

Question 186) While changing the password, by how many characters the new password has to differ from the old one in Solaris 8?
a 2
b 8
c 3
d 4

Ans: c

Question 187) On name service form, if you choose "Specify hostname of server",what you must provide ? (During installation when you choose NIS+)
a server's domain
b server's hostname
c server's IP address
d server's Ethernet address

Ans: b,c

Question 188) A file system can be defined as?
a files and directories.
b a hierarchy of files and directories found in a partition.
c The partitions on a system.

Ans: b

Question 189) Which file system contains unbundled and third-party software applications?
a /usr
b /home
c /opt

Ans: c

Question 190) What must be specified when using the kill command to terminate a process?
a The signal to send to the process
b The process ID (PId of the process
c The owner (UId of the process
d The name of the process

Ans: b

Question 191) Which command displays the all files with one screen full a time ?
a ls -la | more
b ls -la more
c ls -ls
d ls -la more

Ans: a

Question 192) Which file system is at the top of the file hierarchy?
a root (/)
b /home
c /etc

Ans: a

Question 193) How can you send mail in command line ?
a mail -s "hi" username
b mail username
c mail username filename
d mail username@machinename < filename

Ans: d

Question 194) Which Bourne shell command changes to your login directory ?
a cd
b cd ~
c cd /home
d cd $HOME

Ans: a,b,d

Question 195) Which file system contains executable commands, system administration utilities, and library routines?
a /etc
b /usr
c /home

Ans: b

Question 196) Which file system contains the user's home directory?
a root (/)
b /export/home
c /usr

Ans: b

Question 197) Which command to stop entire LP services ?
a /etc/init.d/lp stop
b lp -d
c cancel
d lpadmin -d

Ans: a

Question 198) Your system has been brought to the boot prompt through an interrupt. Which command should you now use to minimize amount of disruption caused to the disk-file system?
a reset
b sync
c disk
d set

Ans b

Question 199) What's the software package cluster ?
a a logical collection of related software packages.
b unboundle software packages.
c a collection of all software packages.
d a collection of various files and directories.

Ans: a

Question 200) What is the command that displays all the system mount points?
a showmount
b mountd
c mount

Ans: c