Unix Commands Interview Questions
Questions Answers Views Company eMail

solaris Run level?

Wipro,

3 5650

boot process?

Atos Origin, Wipro,

2 7060

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:

1986

how to unzip the contents of the gzip file

Epsilon,

1 2855

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

Epsilon,

1520

How to find $ai_serual resolved path by using unix

1280

What does 'mkdir' command do in UNIX?

Syntel, Visa,

925

What is the functionality of a top command?

Amazon,

840

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

CGI,

824

What is the use of touch command in there?

Accenture,

1 1808

What is ‘ps’ command for?

867

What is the significance of the 'tee' command?

838

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

1043

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

924

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

988


Post New Unix Commands Questions

Un-Answered Questions { Unix Commands }

Which unix command to make a new directory?

814


What is the use of finger command?

848


What does pipe () return?

786


Write a command to display a file’s contents in various formats?

867


hw will u use awk in replacing cahrs and files

2946


How to display no of records in oracle using unix command?

819


What are file commands?

869


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1043


Explain command to show the space allocation of files?

846


Explain ‘library functions’ with respect to unix commands?

832


What is the difference between cat and more command?

915


Why is it called a shebang?

808


What is “chmod” command?

763


What is the use of awk command in unix?

777


Explain ‘system calls’ with respect to unix commands?

800