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
What does grep v grep do?
Describe the usage and functionality of the command rm –r * in unix?
How do I clear my terminal history?
What do know about tee command?
Which command is used to kill the last background job?
How do I use nslookup?
How do I open a port?
What do chmod, chown, chgrp commands do?
Which command is used to delete all files in the current directory and all its sub-directories?
What is unix command?
What is difference between grep and find command in unix?
Differentiate cmp command from diff command.
How do I run a bash script?
Explain command to display different lines that are found when compare two files?
What is the comma to display different lines that are found when compare two files?