Un-Answered Questions { Unix Commands }

what is the advaantage of each user having its own copy of the shell?

2009


hw will u use awk in replacing cahrs and files

2707


why metadb requires a seperate slice to create Solaris volume manager

2530


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:

1737


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

1217


How to find $ai_serual resolved path by using unix

999


What does 'mkdir' command do in UNIX?

632


What is the functionality of a top command?

605


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

594


What is ‘ps’ command for?

584


What is the significance of the 'tee' command?

576


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

738


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

655


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

739


Explain the steps that a shell follows while processing a command.

663