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 does grep v grep do?

547


Describe the usage and functionality of the command rm –r * in unix?

820


How do I clear my terminal history?

579


What do know about tee command?

600


Which command is used to kill the last background job?

769






How do I use nslookup?

569


How do I open a port?

587


What do chmod, chown, chgrp commands do?

629


Which command is used to delete all files in the current directory and all its sub-directories?

660


What is unix command?

579


What is difference between grep and find command in unix?

577


Differentiate cmp command from diff command.

585


How do I run a bash script?

578


Explain command to display different lines that are found when compare two files?

676


What is the comma to display different lines that are found when compare two files?

592