Unix Commands Interview Questions
Questions Answers Views Company eMail

solaris Run level?

Wipro,

3 5686

boot process?

Atos Origin, Wipro,

2 7100

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:

2002

how to unzip the contents of the gzip file

Epsilon,

1 2892

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

Epsilon,

1545

How to find $ai_serual resolved path by using unix

1298

What does 'mkdir' command do in UNIX?

Syntel, Visa,

954

What is the functionality of a top command?

Amazon,

859

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

CGI,

848

What is the use of touch command in there?

Accenture,

1 1844

What is ‘ps’ command for?

884

What is the significance of the 'tee' command?

861

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

1061

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

949

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

1011


Post New Unix Commands Questions

Un-Answered Questions { Unix Commands }

Which unix command to make a new directory?

841


What is the general format of unix command syntax?

1418


What is nr in awk command?

821


What is updatedb?

785


How does pipe () work?

818


Explain command to display different lines that are found when compare two files?

913


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

897


What does sed command do in unix?

822


What does the “echo” command do?

871


What is time_t?

804


Which command can you use to find the currently running process in unix server?

820


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

1011


Explain command to view process running?

850


Give the command for finding the current date.

794


Write a command that will display files in the current directory, in a colored, long format.

958