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 difference between awk and grep?
how to sort the content of the file based on numeric values
Which command is used to restrict incoming messages?
What does this command do,"$more readme.txt“?
Which command is used to delete all files in the current directory and all its sub-directories?
What does the metacharacter mean?
What is the pipe command?
What is awk good for?
Which command is used to kill the last background job?
What is updatedb?
What is grep command in unix with examples?
What is the general format of unix command syntax?
What is the difference between grep and grep?
Write a command to kill the last background job?
How do I run a whois command?