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 the use of egrep command in unix?
Enlist some filename manipulation commands in unix.
How do I use nslookup?
Write a command to kill the last background job?
What is grep in bash?
How can you see the command line history?
What is the use of finger command?
How can we use grep command in unix?
What's a command word?
How do I run a bash script?
Does cp command overwrite files?
How many unix commands are there?
Which command is used to delete all files in the current directory and all its sub-directories?
What command is used to check the current users?
What is the command to view process running?