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 command to find maximum memory taking process on the server?

874


Who wrote grep?

763


What is the pipe command?

800


How does pipe () work?

777


What are bash commands?

781






What command is used to check the current users?

773


Explain mount and unmount command.

827


What is the general format of unix command syntax?

1170


Explain ‘system calls’ with respect to unix commands?

770


What are the dos commands?

855


What are file commands?

847


Explain ‘library functions’ with respect to unix commands?

804


Who command in unix operating system?

850


What is command substitution?

869


What is nr in awk command?

774