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 do chown command do?
What are grep patterns?
What are the general commands in using unix os for a beginner?
Who command in unix?
What's a command word?
What does the metacharacter mean?
What is the search command in unix?
What do chmod, chown, chgrp commands do?
How do you repeat a command in terminal?
Is grep faster than awk?
What is a command and examples?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Describe the usage and functionality of the command rm –r * in unix?
What do chmod command do?
How do I use grep to search for a file?