Thursday, January 24, 2013

Unix Interview Questions

How to convert a ext2 file system to ext3 ?

What modprobe will do in Linux ?

what is the use of kudzu ?



@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@

How to print two files columwise in third file ?

paste -d' ' file1 file2 

How to check different error count in a log file ?

Maintain error count record and if the error count is more than previous ignore. if the error count is less than previous reset the counters.  

How to reverse a string or check weather its a palindrome or not ?

string_new = rev string1 #### it gives the reverse of the string.
test string_new = string1; if [$? -eq 0] ;then do echo "its a palindrome";fi

########################################################3

1) Tell me about yourself ?

2) tell me your day to day activities ?

3.) replacing a boot disk ?

4) patching HP-Ux ?

5) Hardware models you worked on ?

6) processor of Hp9000 series ?

7) How do you trouble shoot ?

8) script to cut a particular field ?

9) script to print a file reversely ?

tail -r myfile.txt

or
tac reverse of cat

tac myfile.txt

10) perl scripting exp >. ?

11)  Disk addition ?

12) Disk addition in cluster ?

13) creating a software depot ?

14) checking model /

15) do you have any specific questions ?



***************************************

 Tell me about your work .. ?

Rate yourself in Perl Scripting and Shell scripting ?

How you write modules in puppet ?

About exadata & Data Ontap ?

Perl Scripting:

 -- > Autoloader ?

---> Difference between a module and package ?

Tell me about your environment in puppet ?

How to configure password less ssh ?

Any Other Questions to Ask ?

*************************************
***********************************
Tell me about yourself?

How do you rate on scale of 1-10?

Hp Service Guard?
 How to configure a package?

How do you mirror lv?

How do you restore a failed disk?

what is major number ? minor number ?




What are the contents of /etc/resolv.conf ?

Significance of /etc/nsswitch.conf ?

How do you check Newtwork interface speed ?

How do you evoluate system performace ?

Programming .. ?

what is the o/p of "echo $$"?

write a simple for loop ?

Any idea on ldap ? How to configure ldap ?

What are the backup tools present in your environment ?


                                                                     
                                                                     
                                                                     
                                             
� Is your current system more BSD or System IV based
and why?

� How do you boot into single user mode?

� What are the options for the shutdown command?

� What is the su du command used for?

� What is a super block?

� What command do you use to access the Super Block?

� What is the difference between a symbolic and hard
link? When would you use each?

� What directory holds file with the sticky bit and
when is it used?

� What command do you use to change file ownership and
privileges?

� What is another name for the kill command?

� What is the default value if you put no options on
the kill command?

� What is the letter equivalent of the -9 and -15
options?

� What are the nice and renice commands used for?

� What are the 7 fields in the /etc/passwd file? (on 1
line)

� What command do you use to create a device? What are
the 2 numbers associated with it?

� What are the termcap and terminfo commands used for?

� What is /etc/remote file used for?

� What command or tool do you use to format a disk?

� How do you create a mount point for a disk
partition?

� How do you create a file system on a new disk?

� Why wouldn't you use default options on mkfs?

� What it the lost+found directory and where does it
live?

� Name 3 tape mediums for backup

� What is a level 0 backup?  Level 1?  Level 2?

� Where is the backup info kept?

� Other than dump, name 2 other backup commands.

� What is SYSLOG? How does it work?

� What is a loadable kernel module?

� What is the difference between a classful and
classless IP address?

� What is the difference between the ARP and Reverse
ARP commands?

� What is a subnet mask?

� What is a default router? Where is used?

� What protocol does ping use?

� What is the difference between a hub, a switch, and
a router?

� What is the difference between DNS lookup and
reverse DNS lookup?

� What is PPP?

� Do you use USENET?  What version of Sendmail?

� Name 3 deamons on a UNIX system.

� What deamon is the system master deamon?

� What is the portmap deamon?

� What is the difference between x-server and
x-client?

1. What is the difference between .xinitrc and .xsession?




2. What is the difference between a gateway and a router?



3. Describe your experience with Microsoft Windows registry?



4. How many SCSI devices can be connected to a workstation with one single
   channel SCSI-2 controller?


5. Name the basic data types in PERL.


6. What must a text file begin with to be recognized as postscript code?


7. What does the UNIX gutinteg command do?



8.  What files, ownerships and permissions must be set for rsh to work without
    a password?



9.  How do you calculate the total number of blocks or sectors available on
    a disk?


10. If a SCSI hard drive was formatted on a SUN workstation and no data has
    yet been written to it, what needs to be do to use it on a non -SUN Linux 
    system?


11. Describe an SNMP application you have developed.




12. Describe the procedure for permanently modifying the initialization string
    on a modem connected to a Cisco termianl server.


13. In what subdirectory is the X windows hardware configuration file 
    XF86Config found on a system configured with Linux?


14. Describe some of the software project management tools you have used.



15. What is the path to the shutdown command on a DEC Alpha running OS/F?


16. Name the seven most important tools a System Administrator uses?





17. Describe methods you have used to assure completion of projects on 
    schedule. 



18. How would you set up cron entries for a non-priviledged account?


19. What is the path to the sendmail configuration file?


20. How would you remove all the core files on a filesystem.


21. What is the difference between Cnews and INN?


22. Briefly describe the sequence of events when printing a file under BSD..



23. What do the options 2755 mean to chmod?


24. What is RAID level 5? Level 0?


25. Describe the steps, tools and procedures you have used in project 
    management.




26. Describe the most complex client/server anomaly you have encountered and 
    how you solved it.




27. Describe your experience in forecasting server load and equipment 
    replacement.




28. What were your considerations in specifying a PC hardware standard?





Applicant Name:

Date:

how familiar are you with win32 programming/administration




how familiar are you with UNIX programming/administration




What do you consider good debugging techniques




What do you consider good system administration techniques




would you work better with set schedule or work on your own time




What classes/projects/experiences have you done that you think may help you




How comfortable are you ripping apart machines




Are you familiar with RAID/SCSI systems


1) What is the first line of defense in system security?




2) What should be used to maintain the /etc/shadow file?





3) What is the default shell for the "root" logonid?  What other shells
are acceptable for this logonid?





4) What is the function of the kernel?





5) Using the Bourne shell syntax, show the command that sets the PATH 
environment variable to look in /usr/bin first, /usr/local/bin second,
and the current directory last.





6) Show the command to search for any files or directories with question 
marks in their names.





7) Which of the following commands redirects output to a file?

 rd somefile > test
 cat somefile > test
 cat somefile >> test
 cat somefile | test


8) You are using "vi" to edit a file with multiple pages.  Which command
will take you down one page the fastest?





9) What command do you use to quit "vi" without saving changes?





10) Which command do you use to display a directory listing of files, 
including the file type?





11) What is the command to display on-line help for a unix command?





12) To display a list of all manual pages containing the keyword "date", what
command would you type?





13) What command will display the first 10 lines of a file called "junk"?





14) What file will tell you where system log files are being written (if any)?




15) What command diplays a full listing of processes, including headers?





16) How do you terminate a process?





17) Using symbolic mode, add group write permissions to the file "junk".
 Do the same using octal mode.





18) In the following, where does the output for standard error go?

 /usr/lib/sendmail -OQueueSortOrder=host -oQ/var/spool/mqueue-8h \
    -q >> /var/adm/log/mqueue-8h 2>&1





19) What is the command to check the available free disk space on all local
filesystems?  Which operating environment does the syntax used apply to?





20) You have need to configure a new network client and have been given the IP
128.194.49.48128.194.49.48 in the 128.194.48.0/23 subnet.  You configure the machine
with that IP and set the default router as you were told but are not
getting packets or response to pings.  What is probably wrong?






21) Describe the X Window system client/server model.









22) Please list and describe 2 or more authentication mechanisms when displaying
X applications on remote displays.  Which one is "better" in terms of
security?





23) You added a line to /etc/aliases, but it doesn't seem to be working.  Why?




24) You commented out a server in inetd.conf, but it's still active. Why?





25) What's a process? What's an inode? Describe the difference between a
symlink and a hard link.





26) Name as many shells as you can.





27) How do you plan to document changes to this environment?





28) You have a problem and you don't know how to solve it.  Name all the
resources you can think of that you might consult.





29) What have you done recently that you particularly liked, or are proud of?





30) I have a file named 'dash fr' (-fr); how do I get rid of it?





31) Why did I just ask that question?





32) What's the difference between a library function and system call?





33) The command to see who is on the system is:

  who
  what
  why
  where


34) Which commercial UNIX platform dominated the computer industry?

  FreeBSD
  Microsoft McUnix
  Solaris
  HP-UX
  Linux


35) In which file is the default router address kept?

  /etc/resolv.conf
  /etc/nsswitch.conf
  /etc/hosts
  /etc/defaultrouter


36) The first field field in an /etc/passwd entry is:

  The uid
  The name
  The gid
  The home directory.


37) According to POSIX.2, which of the following tests to see if file foo 
exists and is readable?

  test -f foo
  test -r foo
  test -w foo
  test -x foo


38) According to POSIX.2, which option tells sort to compare the keys in a
case-insensitive manner?
  
  -c
  -f
  -i
  -v


39) The renice command may alter the priority of:

  A single process
  All process in a process group
  All processes owned by a user
  All of the above


40) To setup a master/slave NIS system such that the slave takes over lookup
requests when the master crashes:

  run ypserv on the master; ypbind on the slave
  run ypserv,ypbind on the master; ypset on the slave
  run ypserv,ypbind on the master; ypserv,ypbind on the slave
  run ypserv on the master; ypserv -s on the slave


41) You boot a client machine and attempt to mount an NFS drive from the
server.  The NFS mount worked yesterday, and neither the server nor its NFS
export list has been modified since then.  The mount command just hangs.
Where do you look for the problem?





42) Acceptable levels of bad nfs calls fall under what percentages?

  10-15%
  1-2%
  45-55%
  anything under 90%


43) When debugging a core in gdb, what does the command "bt" give?

  the core memory
  heap usage
  the calling stack


44) Please describe the complete boot process for a Unix system (your choice,
but preferably Sun if known).  Start at the moment the power switch is
turned on.












 
45) What is the main negative aspect of telnet/rshell/rlogin with respect to
security?  Please list 2 or more mechanisms of overcoming that aspect.








46) How many devices can be attached to a SCSI/SCSI-2 bus?  A "wide" SCSI bus?





47) A user performed a "cd;chmod 644 ." before logging out.  What problem
occurs when they log in the next time, and what level of priviledge is
required to correct the problem?





48) Please describe the path and types of programs that handle an e-mail message
starting from when a system receives the first packet of information until
the recipient reads it.










49) A customer has created a web page and complains that attempts to view
it result in "forbidden" messages.  What is the main problem?  Directory
listing is as follows:

# ls -al
total 240
drwxr-xr-x   2 joeuser   other        8192 Apr 19 17:54 .
drwx------  57 joeuser   other        8192 Apr 16 14:13 ..
-rw-------   1 joeuser   other        6311 Apr 19 17:50 back.xbm
-rw-------   1 joeuser   other        9650 Apr 19 17:50 daemon.gif
-rw-------   1 joeuser   other       11230 Apr 19 17:50 ferret.jpg
-rw-------   1 joeuser   other       11925 Apr 19 17:50 giraffe.gif
-rw-------   1 joeuser   other       32760 Apr 19 17:50 help.gif
-rw-r--r--   1 joeuser   other         967 Apr 19 17:46 index.html
-rw-------   1 joeuser   other        3871 Apr 19 17:50 kewl.jpg
-rw-------   1 joeuser   other        9018 Apr 19 17:50 luser.jpg
-rw-------   1 joeuser   other        2143 Apr 19 17:50 news.gif
-rw-------   1 joeuser   other        9055 Apr 19 17:50 noms.gif
-rw-------   1 joeuser   other        3071 Apr 19 17:50 race.gif
-rw-------   1 joeuser   other        3301 Apr 19 17:50 sailbot.jpg
-rw-------   1 joeuser   other       10511 Apr 19 17:50 tamu.gif
-rw-------   1 joeuser   other       19696 Apr 19 17:50 tsip.jpg
-rw-------   1 joeuser   other        6376 Apr 19 17:50 unix.gif
-rw-------   1 joeuser   other        2267 Apr 19 17:50 xray.gif
-rw-------   1 joeuser   other        3858 Apr 19 17:50 zoom.jpg






50) What happens when you issue the following commands (as root):

 # kill -1 1


 # kill -1 -1


 # init 0


 # sync


 # rm /dev/console






No comments:

Post a Comment