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 is grep in bash?
What is the first character of the output in ls l command?
Which command is used to find whether the system is 32 bit or 64 bit?
What does touch command do in unix?
What does the metacharacter mean?
What are grep patterns?
What is unix command line?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is grep and how do you use it?
What is the command to find maximum memory taking process on the server?
What is the command to compare two files in unix?
What is the search command in unix?
Write a command that will display files in the current directory, in a colored, long format.
Are you in or at the office?
Can you explain a little bit about command substitution?