Unix Commands Interview Questions
Questions Answers Views Company eMail

solaris Run level?

Wipro,

3 5086

boot process?

Atos Origin, Wipro,

2 6575

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:

1764

how to unzip the contents of the gzip file

Epsilon,

1 2449

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

Epsilon,

1252

How to find $ai_serual resolved path by using unix

1029

What does 'mkdir' command do in UNIX?

Syntel, Visa,

660

What is the functionality of a top command?

Amazon,

626

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

CGI,

620

What is the use of touch command in there?

Accenture,

1 1414

What is ‘ps’ command for?

617

What is the significance of the 'tee' command?

596

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

770

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

683

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

763


Post New Unix Commands Questions

Un-Answered Questions { Unix Commands }

What is the size of time_t?

650


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

678


How do I run a bash script?

584


What are the general commands in using unix os for a beginner?

577


How does pipe () work?

597






What does awk stand for?

613


What does grep v grep do?

554


How many unix commands are there?

629


What's a command word?

591


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

625


What are reported commands?

567


What is command substitution?

626


Can you explain a little bit about command substitution?

611


How to find $ai_serual resolved path by using unix

1029


Using unix command how to display no of records in oracle?

613