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


Please Help Members By Posting Answers For Below Questions

What is the difference between awk and grep?

561


how to sort the content of the file based on numeric values

1256


Which command is used to restrict incoming messages?

594


What does this command do,"$more readme.txt“?

693


Which command is used to delete all files in the current directory and all its sub-directories?

673






What does the metacharacter mean?

612


What is the pipe command?

583


What is awk good for?

590


Which command is used to kill the last background job?

786


What is updatedb?

590


What is grep command in unix with examples?

614


What is the general format of unix command syntax?

698


What is the difference between grep and grep?

570


Write a command to kill the last background job?

622


How do I run a whois command?

606