Saturday, June 13, 2009

Linux Interview Question - Part 2

Linux Interview Question - Part 2


Q -1 > How do you list the Files in an Unix Directory while also showing hidden Files ?
A -1 > ls - ltra

Q -2 > How do you execute a Unix command in the background ?
A -2 > " &"

Q -3 > What unix command will control the default file permission when file are created ?
A -3 > umask

Q -4 > Explain the read , write and execute permissions on a unix directory ?
A -4 > Read allows you to see and list the directory contents . Write allows you to create, edit and delete files and subdirectory in the directory. Execute gives you the permissions to the run programs or shell from the directory.

Q -5 > What is the difference between a soft link and hard link ?
A -5 > A symbolic ( soft ) linked file and the targeted file can be located on the same or different file system while for a hard link they must be located on the same file system .

Q -6 > Give the command to display space usage on the unix file system ?
A -6 > df -lk

Q -7 > Explain iostat, vmstat and netstat reports ?
A -7 > vmstat reports on virtual memory statistics for processes, disk , tape I/O activity .

Q -8 > How would you change all occurrences of a value using vi ?
A -8 > %s/(old value )/(new value )/g

Q -9 > Give two unix kernel parameters that effect an Oracle install?
A -9 > SHMMAX and SHMMNI

Q -10 > How do you install Oracle software on Unix ?
A -10 > Set up disks, kernel parameters and run orainst.

Q -11 > What is the difference between pipe ( | ) and tee commands in unix ?
A -11 > PIPE : A pipe would allow you to direct output of one command

No comments:

Post a Comment