How do you find path of a directory? Give its syntax.
Answers were Sorted based on User's Feedback
Answer / 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 |
How to use grep command to list find the records of a file containing 10 different strings?
in UNIX,what is the command to remove directory with files?
What is merge command in unix?
What is the use of egrep command in unix?
Why is it called a shebang?
How do I open a port?
What is the difference between udp and tcp?
What is the different between UNIX command and UNIX shell script?
What does find command return in unix?
What is time_t?
How do you know about running processes of a particular user?
Which command will you use to change the permissions on file?