Sun Microsystems Solaris OS interview questions

Last Updated on Tuesday, 3 May 2011 04:03 Written by EditorSaturday, 21 July 2007 02:49

Following are some Sun Microsystems Solaris OS interview questions, can you answer them??

1. List the files in current directory sorted by size ? – ls -l | grep ^- | sort -nr
2. List the hidden files in current directory ? – ls -a1 | grep “^.”
3. Delete blank lines in a file ? – cat sample.txt | grep -v ‘^$’ > new_sample.txt
4. Search for a sample string in particular files ? - grep .Debug. *.confHere grep uses the string .Debug. to search in all files with extension..conf. under current directory.
5. Display the last newly appending lines of a file during appendingdata to the same file by some processes ? – tail .f Debug.logHere tail shows the newly appended data into Debug.log by some processes/user.
6. Display the Disk Usage of file sizes under each directory in currentDirectory ? – du -k * | sort .nr (or) du .k . | sort -nr
7. Change to a directory, which is having very long name ? – cd CDMA_3X_GEN*Here original directory name is . .CDMA_3X_GENERATION_DATA..
8. Display the all files recursively with path under current directory ? – find . -depth -print
9. Set the Display automatically for the current new user ? – export DISPLAY=`eval ‘who am i | cut -d”(” -f2 | cut -d”)” -f1′`Here in above command, see single quote, double quote, grave ascent is used. Observe carefully.
10. Display the processes, which are running under yourusername ? – ps .aef | grep MaheshvjHere, Maheshvj is the username.
11. List some Hot Keys for bash shell ? – Ctrl+l . Clears the Screen. Ctrl+r . Does a search in previously given commands in shell. Ctrl+u – Clears the typing before the hotkey. Ctrl+a . Places cursor at the beginning of the command at shell. Ctrl+e . Places cursor at the end of the command at shell. Ctrl+d . Kills the shell. Ctrl+z . Places the currently running process into background.
12. Display the files in the directory by file size ? – ls .ltr | sort .nr .k 5
13. How to save man pages to a file ? – man | col .b > Example : man top | col .b > top_help.txt
14. How to know the date & time for . when script is executed ? – Add the following script line in shell script.eval echo “Script is executed at `date`” >> timeinfo.infHere, .timeinfo.inf. contains date & time details ie., when script is executed and history related to execution.
15. How do you find out drive statistics ? – iostat -E
16. Display disk usage in Kilobytes ? – du -k
17. Display top ten largest files/directories ? – du -sk * | sort -nr | head
18. How much space is used for users in kilobytes ? – quot -af
19. How to create null file ? – cat /dev/null > filename1
20. Access common commands quicker ? – ps -ef | grep -i $@
21. Display the page size of memory ? – pagesize -a
22. Display Ethernet Address arp table ? – arp -a
23. Display the no.of active established connections to localhost ? – netstat -a | grep EST
24. Display the state of interfaces used for TCP/IP traffice ? – netstat -i
25. Display the parent/child tree of a process ? - ptree Example: ptree 1267
26. Show the working directory of a process ? – pwdx Example: pwdx 1267
27. Display the processes current open files ? – pfiles Example: pfiles 1267
28. Display the inter-process communication facility status ? – ipcs
29. Display the top most process utilizing most CPU ? - top .b 1
30. Alternative for top command ? - prstat -a

Post to Twitter


Submit Interview Questions at intr[at]freshershome.com




19 Comments
  1. hi friends please forward me solaris fresher jobs plz…………….

    iam certified

    qualification: B.tech

  2. Halo friends….i need a help from all…i am interested in dng network certification in Solaris side but i dnt hav enough knowledge abt d courses nd al..so plz tel me abt it nd help me.. also do tell me how to prepare nd all…
    thanq in advance….
    do mail me at dx_rishi80@yahoo.com

  3. hi…….friends
    can anyone forward a resume of solaris admin fresher
    thanking you

  4. hi friends,

    please forward me any interviews for freshers on sun solaris

  5. please send me model solaris resume

  6. hi this is guru i have completed the sun soloris upto level2

    i wwant to resume model for sun soloris fresher kindly send me the model to my mail id

    thanking you

  7. Can any forward a sample resume for entery level having 2.5 years of it experiance as system engineer

  8. Can any forward a sample resume for entery level having 2.5 years of it experiance as system engineer on windows

  9. dear
    I am very thankful towards the person who can forword me a
    scsa part1 for sun solaris os of sample paper
    my email ids is sarveshchaurasia12345@gmail.com

  10. hi

    this is shahbaz.
    can anyone fwd the model of sunsolaris jobs resume type,i want to make the resume

    my idd shahbaz_sunsolaris@yahoo.com

  11. Hi
    This is bhavani prasad.
    Can anyone fwd the model solaris associate/administrator certification questions??above id
    thank u
    hai
    this is bhavaniprasad.i need a solaris fresher model resume.kindly forward it to above id
    thank u

  12. Hi,
    This is swapan from kolkata. I want tojoin as a
    Fresher Sun administrator

  13. hi this is srinivas now compled in sun solaris iwant one model resume please send to me my e-mail id
    kaniganti.srinivas@gmail.com

  14. hi this is satish i need solaris resume for frsher plz send this ID

  15. i need a resume with the combination of solaris and networking and ccna

  16. Hi

    This is Raj.
    Can anyone fwd the model solaris associate/administrator certification questions??

    my ID:
    raj_bhappy_07@yahoo.co.in

  17. Hi

    This is Raj.
    Can anyone fwd the model solaris associate/administrator certification questions??

  18. hai
    this is pradeep.i need a solaris fresher model resume.kindly forward it to above id

    thank u

Leave a Reply