what will be the output of ls ~/..

Answer Posted / phil

It will list the files and directories of the current user
parent's login directory

i.e.
If the current user smith login directory is "/home/smith",
then the parent's login directory is "/home"

In this example, the files and directories in "/home" are
listed.

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is command statement?

543


What is unix command line?

614


Who command in unix operating system?

669


Which unix command to make a new directory?

594


What is the function of grep command in unix?

594






Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

964


What does sed command do in unix?

568


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:

1768


Which command is used to kill the last background job?

787


What does touch command do in unix?

735


What are bash commands?

601


What is the use of cut command in unix?

696


What does grep v grep do?

556


Why is it called grep?

565


What is the use of egrep command in unix?

630