Answer Posted / shubhadip
It depends on your HOME directory. " ~ " sign denotes your
HOME directory and " /.. " for HOME's parent directory.
By default user's HOME directory is /home/user_name . So
at that time ls ~/.. command will show the contents of
directory /home .
But if somebody has set a different HOME directory
(e.g. /opt/apps/usr). Then the command will show the
contents of directory /opt/apps .
I used "HOME" for the environment variable and "home" for
directory name. These 2 are completely different thing.
If you want to know what is your HOME directory. Then you
can type echo $HOME
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What do chmod, chown, chgrp commands do?
What is the use of cut command in unix?
What is the nmap command?
What is the significance of the 'tee' command?
why metadb requires a seperate slice to create Solaris volume manager
Using unix command how to display no of records in oracle?
What is .sh file?
What are reported commands?
Is command prompt unix?
Does cp command overwrite files?
Which command will print your home directory on screen?
Differentiate cmp command from diff command.
What is the use of egrep command in unix?
What is updatedb?
What are the commands in UNIX to list the files in a Directory?