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 command to find maximum memory taking process on the server?
Who wrote grep?
What is the pipe command?
How does pipe () work?
What are bash commands?
What command is used to check the current users?
Explain mount and unmount command.
What is the general format of unix command syntax?
Explain ‘system calls’ with respect to unix commands?
What are the dos commands?
What are file commands?
Explain ‘library functions’ with respect to unix commands?
Who command in unix operating system?
What is command substitution?
What is nr in awk command?