This action might not be possible to undo. Are you sure you want to continue?
Commands to take backup of /usr /var /lib directories to tape and disk using "tar" ANS: a) tar -cvf /dev/rmt/0 /usr /var /lib [Taking into tape ] b) tar -cvf backup_file.tar /usr /var /lib [ Taking disk image] Taking backup to a tape device attached to a remote system ANS: a) tar -cv /var /usr /lib | rsh remote_hostname dd of=/dev/rm/0 obs=128 b) ufsdump 0ucf remote_hostname:/dev/rmt/0 /file_system Extracting / Restore the contents of a tape /tar file ANS: a) tar -xvf /dev/rmt/0 [ restore contents of a tar tape ] b) tar -xvf filename.tar [ Restore contents of a tar file ] c) ufsrestore f /dev/rmt/0 filename [Restore from ufsdump tape backup] d) ufsrestore rf remote_hostname:/dev/rmt/0 filename [ Restore from remote host tape device ] List contents of backup ANS: a) tar -tvf /dev/rmt/0 [ List contents of a tar tape ] b) tar -tvf filename.tar [ List contents of a tar file ] c) ufsrestore tf /dev/rmt/0 [ list contents of a tape of ufsdump] Processes and Processor What are the types of priority classes supported by Solaris ? ANS: timesharing, system and reat-time How will you place a running process in real time class? ANS: priocntl -s –c RT –I uid process_id_number How will you start a process in real time class? ANS : priocntl –c RT –e process_name How will you bind a process to processor ? Ans: pbind –b processor_no process_id Network
the unix system displays an erro message like "Cannot allocate more shared memory segment for the processes" If oracle person approaches you.What is the pocket size used by SQL*NET Version 2 on Solaris Ans : Default is 2K What is the procket size used by network layer TCP/IP in SQL*NET v2? Ans : Default 1K Inter process communication (IPC) tuning What is post wait driver ? The post wait driver reduces the overhead incurred by the more expensive use of semaphore operation for interprocess communication. how will you fix this problem? ANS: increase the value for kernel memory parameter "set semsys:seminfo_semmns" in /etc/system file. of processors installed on your sun box and processing speed? Ans: $psrinfo –v How do you find out how many disks are available on your system? Ans: $ format (for sysadmins) $ iostat –E (for users – count only the disks which has disk size correctly) System Boot Options How do you boot sun box in single user mode? ANS: At ok prompt type "boot -s" [ ok boot -s OR ok boot -1 OR ok boot -S ] What are the commands to shutdown the system? ANS: shutdown. init . [ this is a blind way] System configurations How do you find out total RAM installed on your machine Ans: $prtconf |grep size How do you find no. Memory What is the kernel parameter which controls the UNIX buffer cache on solaris ? Ans : bufhwm ( bufhwm is the maximum amount of physical memory. reboot . halt. in kilobytes that can be used by I/O buffers) While starting an oracle process .
Devices What is the meaning of logical name of a disk drive format like c0t0d0s0? ANS: c0 .SCSI bus target number d0 .info/ Basic Solaris Commands Quick Reference Card Conventions <CR> RETURN key <ESC> ESCAPE key <DEL> DELETE key <Ctrl-X> press <Control> key and type x italics items to be replaced by your own requirements Shell Commands passwd Change password logout End terminal session File Hierarchy cd dir1 Change to directory dir1 l s List files in directory l s -List files in detail l .thoughtful-solutions.Partition or slice number List some of the main device types? ANS: /dev/dsk .Disk number s0 .Raw or character devices /dev/rmt .Controller number t0 .Serial line devices /dev/pts .Pseudo terminals List commands to display physical devices ? ANS: prtconf Sysdef Dmesg sysinfo Thoughtful Solutions Creatively Implemented and Communicated http://www.Tape devices /dev/term .Disk devices /dev/rdsk .
s# subject Show man page relating to subject in section number # man .s file1 name Create a soft link to file1 called name pwd Show path to current directory Getting Help man name Show man page for command name man . words and characters in file di f ff1 f2 Find differences between two files di f f 3f1 f2 f3 Find differences between 3 files sor t filename Sort file alphabetically by first letter uniq Report or filter out repeated lines Redirection STDIN Standard Input. typically the screen STDERR Standard Error. typically the keyboard STDOUT Standard Output.mkdir dir1 Create new directory dir1 rmdir dir1 Remove directory dir1 cp f1 f2 Copy file f1 to f2 mv f1 [f2…] dir1 Move files f1 to fn to directory dir1 mv dir1 dir2 Rename directory dir1 as dir2 rm filename Delete (remove) file filename ln file1 name Create a hard link to file1 called name ln .k subject Show man pages relating to subject man . where errors are sent. Typically the screen comm > file Output of comm creates file comm < file Contents of file used as input to comm comm 2> filename Error messages from comm sent to file comm >> filename Output from comm appended to file cat file <<EOF Create a document called file data… containing data .s# In t r oShow introductory man page for section # File types and Listing f i l efilename Classify the file str i ngs filename Show any ASCII strings in a file cat filename Display contents of file to STDOUT more filename Display contents of file one screenful at a time head filename Display first 10 lines of file head -n filename Display first n lines of file ta i lfilename Display last 10 lines of file ta i l-n filename Display last n lines of file ta i l filename Recursively display last 10 lines of -f file cut Extract character or fields from text wc filename Count lines.
EOF comm1 | comm2 Output from comm1 used as input to comm2 mkfifo name Create a named pipe called name mknod name p Create a named pipe called name File Security chmod mode filename Change security settings on file chown user [:group] filename Change owner [and owning group] of file chgrp group filename Change owning group of file umask mode Set default creation permissions Symbolic modes Mode Meaning Mode Meaning u user r read g group w write o other x execute a all u+s setuid = assign g+s setgid + add +t sticky bit .org/ l i c enses /by . Base file mode is 666 user group other rwxrwxrwx 421421421 777 Shell Wildcards Metacharacter Meaning * Any character ? Any single character [ ] A range of characters This work is licensed under the Creative Commons AttributionShareAlike License.0 Interview Question & Ans: Sort By : Latest First | Oldest First | By Rating Question Rating View Answer . To view a copy of this license.remove Octal modes Base directory mode is 777.sa/2 . visit http: / / c r ea t i vecommons.
View Answer View Answer What is the big difference between /dev/dsk and /dev/rdsk What are the main differences between solaris 10 and 9? What would a XIR signal do to a server and why would it be used? What is sticky bit in Solaris? What is the big difference between /dev/dsk and /dev/rdsk What software install group do you need to select in order to load the compilers? Back to Sun Solaris OS Interview Questions and Answers page Question : What file controls global variables for system wide values for the Bourne Shell? Is it legal to have static initializer blocks in EJB? How can we find RAM size in solaris server ? Which NFS daemons are found on the NFS server? The NVRAM is also soldered to the main logic board or motherboard. When using the admintool. the membership list for groups is separated by what? Which obp command has a premenent allais? How would you find out what kernel parameter SHMMAX is set to by one command? I have a couple of questions. how do you determine which is primary? 2)In solaris 8 how do you determine how many Ram cards exist in a server and in which slots are they inserted? What is diffrence between Process and Daemon? How to find 32 or 64 bit system instances of OS? View Answer View Answer View Answer View Answer View Answer View Answer View Answer View Answer View Answer View Answer View Answer View Answer View Answer View Answer View Answer View Answer . 1) If in solaris 8 one server has more than one network interface cards.
Multiple users can access the system. . All system daemons are running except for the Network File System (NFS) server and some other network resource server related daemons.How do you determin which Run Level the sytem is running What is "Piping"? View Answer View Answer Posted by: Vincent Contact Vincent Single User mode: Single user mode is for trouble shooting purpose. in this mode only root user can login to the system. ANTHONY FRANCIS In multiuser mode NFS server & client services are available whereas in single user mode. Posted by: Basha Contact Basha Single user Solaris OS single-user mode with critical file systems mounted and accessible. ANTHONY FRANCIS Contact C. Posted by: parag pisolkar Contact parag pisolkar Single user mode is the maintenance mode where only systems critical files are mounted. Multi user The system is supporting multiuser operations. Maintenance Only root user can access. Posted by: C. Multi User Mode: In this mode apart from root user other user can also login to the system and they can access resources and applications of the system. Multiuser mode is running the server with full network services including NFS. no NFS service is available and only root filesystem is available.
Posted by: Rahul Agarwal Contact Rahul Agarwal Single User Mod or Run Level s or S. Main difference between these two level is as follows. 2). all the system services will not be available such as NFS and other services. 2. Mukti user mode . In single user mode the run level is S where as in multiuser mode the runlevel is 3 Posted by: nawazhussain Contact nawazhussain In single user mode it is possible to maintin the system or trouble shooting the system. where as in multiuser mode all the services will be available including NFS and multiple users can log in at a time.Umakanth Contact G. Posted by: Farhan A Azam Contact Farhan A Azam 1. database etc. Network Services will not work in Single user mode. 1). Network Services will work in Multi user mode. is used for normal operations means running any applications. Solaris OS single-user mode with critical file systems mounted and accessible. Posted by: G. Is used for Administrative activities.Umakanth In single user mode . Single usermode . Multi User Mode or Run Level 3. . The system is supporting multiuser operations and has NFS resource sharing and other network resource servers available.moreover only a single user can login at a time.
critical file system will be mounted and where as multi user mode we can access nfs and it is default run level.Posted by: sv suresh Contact sv suresh single user mode is an administrative mode . Posted by: wadood Contact wadood Single user mode use to perform the administrative task. database etc. . from singleusermode we cannot communicate network machines. it is also known as maintenance mode. Mukti user mode . Is used for Administrative activities.we can only access the local file system. Multi user mode runs the server with full network and services including nfs Posted by: fazal Contact fazal Single usermode . Posted by: premnivas Contact premnivas In single user. Posted by: Raja Rajan Contact Raja Rajan In single user mode we can perform administrative tasks and it is maintenance mode. Multi usermod is the defult login mode so we can access all local as well as network file file system.but from multiusermode we communicate over the network. 2. is used for normal operations means running any applications. the root user only can login. multiuser mode is default mode in solaris bcoz all services available in this mode.
Network Serviceses will work in Multi user mode. which are running under yourusername ? . Ctrl+u .txt | grep -v ‘^$’ > new_sample.tail Ã¢â‚¬â€œf Debug. Multi user mode: This is run level 3. 11.cat sample. List the files in current directory sorted by size ? . double quote. -depth -print 9.Ctrl+l Ã¢â‚¬â€œ Clears the Screen. 6.Clears the typing before the hotkey.logHere tail shows the newly appended data into Debug. Maheshvj is the username. Set the Display automatically for the current new user ? .confHere grep uses the string Ã¢â‚¬Å“DebugÃ¢â‚¬Â ﾝ to search in all files with extensionÃ¢â‚¬Å“. 12. #who -r ----> this command shows we are in which run level Solaris interview questions By admin | April 24. Change to a directory. Ctrl+r Ã¢â‚¬â€œ Does a search in previously given commands in shell. List some Hot Keys for bash shell ? . 10.Main difference is that Network Services will not work in Single user mode." Delete blank lines in a file ? . 2.ps Ã¢â‚¬â€œaef | grep MaheshvjHere. see single quote. Display the Disk Usage of file sizes under each directory in currentDirectory ? . 2005 1. 8. Ctrl+z Ã¢â‚¬â€œ Places the currently running process into background. Display the last newly appending lines of a file during appendingdata to the same file by some processes ? .| sort -nr List the hidden files in current directory ? . grave ascent is used. 4.confÃ¢â‚¬Â ﾝ under current directory. which is having very long name ? .cd CDMA_3X_GEN*Here original directory name is Ã¢â‚¬â€œ Ã¢â‚¬Å“CDMA_3X_GENERATION_DATAÃ¢â‚¬Â . | sort -nr 7. Ctrl+d Ã¢â‚¬â€œ Kills the shell.export DISPLAY=`eval ‘who am i | cut -d"(" -f2 | cut -d")" -f1′`Here in above command. Ctrl+a Ã¢â‚¬â€œ Places cursor at the beginning of the command at shell. 3.du -k * | sort Ã¢â‚¬â€œnr (or) du Ã¢â‚¬â€œk . 5.find . This can be used for trouble shooting purpose.ls Ã¢â‚¬â€œltr | sort Ã¢â‚¬â€œnr Ã¢â‚¬â€œk 5 .txt Search for a sample string in particular files ? . Ctrl+e Ã¢â‚¬â€œ Places cursor at the end of the command at shell.ls -a1 | grep "^\.ls -l | grep ^. Display the files in the directory by file size ? .IN this NFS not working. Observe carefully.grep Ã¢â‚¬Å“DebugÃ¢â‚¬Â ﾝ *. Display the all files recursively with path under current directory ? . Display the processes. Posted by: Sameer Patil Contact Sameer Patil single user mode: In this only root user can login to the system and critical file systems are mounted.log by some processes/user. In apart from root user other users also login and access the file systems including NFS.
Display the no. How to save man pages to a file ? . Display disk usage in Kilobytes ? .infÃ ¢â‚¬Â contains date & time details ie.netstat -i 25.of active established connections to localhost ? .quot -af 19.txt 14. Show the working directory of a process ? . 15.top Ã¢â‚¬â€œb 1 30.iostat -E 16.pagesize -a 22.Add the following script line in shell script. How to create null file ? .du -k 17. Access common commands quicker ? .pwdx <pid> Example: pwdx 1267 27.. Display the top most process utilizing most CPU ? .netstat -a | grep EST 24. Display the parent/child tree of a process ? .cat /dev/null > filename1 20. How do you find out drive statistics ? . when script is executed and history related to execution.13. Display top ten largest files/directories ? .ptree <pid> Example: ptree 1267 26. Ã¢â‚¬Å“timeinfo.eval echo "Script is executed at `date`" >> timeinfo. Display the state of interfaces used for TCP/IP traffice ? .ipcs 29.man <command> | col Ã¢â‚¬â€œb > <output-file>Example : man top | col Ã¢â‚¬â€œb > top_help. Display the processes current open files ? .ps -ef | grep -i $@ 21.pfiles <pid> Example: pfiles 1267 28.du -sk * | sort -nr | head 18. Display the page size of memory ? . How much space is used for users in kilobytes ? .arp -a 23. Display Ethernet Address arp table ? . Alternative for top command ? . How to know the date & time for Ã¢â‚¬â€œ when script is executed ? .infHere. Display the inter-process communication facility status ? .prstat -a 6 Coll Interview: Partition sizes can be set manually or from what configuration? what command do you run after modifying the aliases file make the chages active ? how do enable logging on a UFS filesystem? What is the difference between a probe-scsi and a probe-scsi-all? What field will cause the message Your password has expired to be displayed to the user? How many cpus we can connect to a spark machine in Solaris? Search for a sample string in particular files? View Answer View Answer View Answer View Answer View Answer View Answer View Answer View Explain about kadmin command? What command enables a printer? .
How to restore a corrupted file system or trouble shoot bad super blocks for a FS c0t2d0s5 How would you find out what version of Solaris is currently running? What is difference between Process and Daemon in Solaris? View Answer View Answer View Answer . the patch cannot be removed.dat. what two steps must occur? What flag used with patchadd will prevent a later back out by preventing patchadd from backing up files? If this flag is used.Answer Which of the following can be an appropriate name for a cluster? What would a XIR signal do to a server and why would it be used? Display the last newly appending lines of a file during appendingdata to the same file by some processes ? Explain about the command ls? View Answer View Answer View Answer View Answer View Answer View Answer View Answer View Answer What is sticky bit? What file controls global variables for system wide values for the Bourne Shell? What is after the VTOC on the root filesystem? In order to save a template in /etc/format.