Unix Interview Questions
Questions Answers Views Company eMail

solaris Run level?

Wipro,

3 5036

boot process?

Atos Origin, Wipro,

2 6536

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 4387

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 3365

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 1836

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

1 2276

When should I use shutdown()?

Wipro,

1 1788

What are Sockets?

1 1680

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

961


Un-Answered Questions { Unix }

What is the root directory in unix?

483


Name the various commands that are used for the user information in unix.

530


How would you identify daemons in unix?

530


What are the layers of unix operating system?

522


In unix, what is echo used for?

571






How do I show hidden files in unix?

456


What are the basic responsibilities of a shell?

505


Suppose I have one column with data smithjohnmichale the o/p should be smith,john, michale how we do in unix?

448


How does unix socket work?

495


What are directories in unix?

505


What is piping?

523


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

611


What are the various schemes available in ipc?

545


explain about the initial process sequence while the system boots up?

601


What is unix and why is it important?

505