Unix Commands Interview Questions
Questions Answers Views Company eMail

solaris Run level?

Wipro,

3 5045

boot process?

Atos Origin, Wipro,

2 6547

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:

1749

how to unzip the contents of the gzip file

Epsilon,

1 2437

how to sort the content of the file based on numeric values

Epsilon,

1240

How to find $ai_serual resolved path by using unix

1018

What does 'mkdir' command do in UNIX?

Syntel, Visa,

649

What is the functionality of a top command?

Amazon,

615

What are the commands in UNIX to list the files in a Directory?

CGI,

605

What is the use of touch command in there?

Accenture,

1 1395

What is ‘ps’ command for?

608

What is the significance of the 'tee' command?

590

What does the command ' $who | sort –logfile > newfile' do?

757

What does the command '$ls | wc –l > file1' do?

672

How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

752


Post New Unix Commands Questions

Un-Answered Questions { Unix Commands }

What are reported commands?

556


What is {} in find command?

569


What is the function of grep command in unix?

573


Write a command to kill the last background job?

609


What is the difference between grep and grep?

560






What does this command do,"$more readme.txt“?

681


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

613


Explain command to show the space allocation of files?

622


What is ‘ps’ command for?

608


What does find command return in unix?

582


How does pipe () work?

585


What is in grep command?

636


Which unix command to make a new directory?

582


What are the unix commands?

540


What does the “echo” command do?

615