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 is the command to view process running?
What is the use of sed command in unix?
What are the general commands in using unix os for a beginner?
Which command is used to create a directory?
How do I delete files from command prompt?
Using unix command how to display no of records in oracle?
What is pipe command in unix?
How do I search for text in vi?
What is the difference between awk and grep?
How do you repeat a command in terminal?
What is used to type command?
What command will change your prompt to myprompt?
What happens when we execute a unix command?
Explain command to display different lines that are found when compare two files?
Who command in unix operating system?