Un-Answered Questions { Unix Commands }

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

2023


hw will u use awk in replacing cahrs and files

2719


why metadb requires a seperate slice to create Solaris volume manager

2545


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 sort the content of the file based on numeric values

1240


How to find $ai_serual resolved path by using unix

1018


What does 'mkdir' command do in UNIX?

649


What is the functionality of a top command?

615


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

607


What is ‘ps’ command for?

608


What is the significance of the 'tee' command?

591


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


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

677