How do you find path of a directory? Give its syntax.
Answers were Sorted based on User's Feedback
Answer / 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 |
what is the difference between Touch & cat command
Who invented grep?
What is the difference between awk and grep?
What is the size of time_t?
Can you enlist some commonly used network commands?
What is the use of cut command in unix?
what are the uses of filters?
How to rename files and folders?
What command will bring user back to their home directory in UNIX?
how to check a file system type
distinguish between interrupts and exceptions?
Differentiate cmp command from diff command.