Unix Interview Questions
Questions Answers Views Company eMail

solaris Run level?

Wipro,

3 5038

boot process?

Atos Origin, Wipro,

2 6540

Assume that there are two different filesystems as /abc and /xyz. There is a file A under filesystem /abc which has to be linked to filesystem /xyz. Which link will you use - soft link or hard link? why?

Accenture,

1 5058

how to create tree of processes. one parent and 3 childs.

HCL,

1 4389

How to know whether the message queue is empty or not.

Fibcom, HCL,

1 2730

What is Inode.

HCL,

2 4433

I have one flat file,in this file how many columns are there i don't know,but one ename column is there , just i want to cut the surname, so how to cut the surname, any one know the answer please guide me ? ename ----- tapan kumar nayak bala murugan kutal chkrobarthy biswo My output is like that OUTPUT ------ nayak murugan chakrobarthy biswo

Cap Gemini,

2953

"ls" command is showing all the subdirectoary and files which are present in the current directoary, i want to cut only directoary name. How to cut only name ?

Cap Gemini,

2 3367

When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1745

How do Sockets Work?

1 1801

What is with the second parameter in bind()?

1 1837

If bind() fails, what should I do with the socket descriptor?

1 2277

When should I use shutdown()?

Wipro,

1 1789

What are Sockets?

1 1681

How can I tell when a socket is closed on the other end?

962


Un-Answered Questions { Unix }

I want to invest in learning things that will get me good jobs in future. But wondering if Unix knowledge is something that is a MUST have or is it better to do any Data-warehouse tool (cognos, Qclik view, ETL etc..). Please suggest me.

1861


What difference between cmp and diff commands?

706


How do I delete files from command prompt?

542


What are the possible return values of kill() system call?

488


What is the use of sed command in unix?

582






What is awk sed unix?

474


What are the various schemes available?

534


How is unix different from other operating system?

473


What does unix like mean?

498


Name the general commands in using unix os for a beginner?

611


What do you understand by unix shell?

493


What does grep v grep do?

536


What is the difference between nfs 3 and nfs 4?

528


Explain what is inode?

533


How do I use grep to find a file?

567