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
How can you see the command line history?
What is $0 bash?
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)?
What is s and g in sed command?
Enlist some filename manipulation commands in unix.
How do I use nslookup?
What is the pipe command?
Which unix command to make a new directory?
What is grep command in unix with examples?
What does touch command do in unix?
How to display no of records in oracle using unix command?
What does #!/ Bin sh do?
What does grep v grep do?
What are the general commands in using unix os for a beginner?
What are some command words?