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...

How do you find path of a directory? Give its syntax.

Answer Posted / rohit

find . -name <name of the directory you want to serach>

pwd as mentioned in rest of the answer give you the path of
the directory where the user is currently present
echo $PATH gives you the the path only when the PATH
variable is set as environment variable..but it will be
fixed.

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 grep in bash?

1116


What is the first character of the output in ls l command?

1260


Which command is used to find whether the system is 32 bit or 64 bit?

1196


What does touch command do in unix?

1476


What does the metacharacter mean?

1187


What are grep patterns?

1148


What is unix command line?

1336


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1284


What is grep and how do you use it?

1169


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

1262


What is the command to compare two files in unix?

1169


What is the search command in unix?

1132


Write a command that will display files in the current directory, in a colored, long format.

1273


Are you in or at the office?

1171


Can you explain a little bit about command substitution?

1161