Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what will be the output of ls ~/..

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


Please Help Members By Posting Answers For Below Questions

What do chmod, chown, chgrp commands do?

1221


What is the use of cut command in unix?

1288


What is the nmap command?

1118


What is the significance of the 'tee' command?

1133


why metadb requires a seperate slice to create Solaris volume manager

3075


Using unix command how to display no of records in oracle?

1107


What is .sh file?

1106


What are reported commands?

1070


Is command prompt unix?

1092


Does cp command overwrite files?

1130


Which command will print your home directory on screen?

1028


Differentiate cmp command from diff command.

1096


What is the use of egrep command in unix?

1123


What is updatedb?

987


What are the commands in UNIX to list the files in a Directory?

1104