what will be the output of ls ~/..

Answer Posted / sandesh

It prints the directories and file which is in your parent
directory.
If u are logged in root ..it will show contents of /
directory.

If u are logged in /home/sandesh ....it will show contents
of /home directory .

~/ means the user login directory.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of the tee command?

598


Which command is used to delete all files in the current directory and all its sub-directories?

662


What is the command to find maximum memory taking process on the server?

670


What is the command to compare two files in unix?

618


How does pipe () work?

593






How many unix commands are there?

627


What is the use of awk command in unix?

581


Who wrote grep?

579


Can you enlist some commonly used network commands?

600


What is the comma to show the space allocation of files?

558


Can you explain a little bit about command substitution?

607


Enlist some filename manipulation commands in unix.

549


What is the use of find command in unix?

579


What is the difference between cat command and more command?

599


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

2034