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 |
how to find largest file?
14 Answers HCL, Microsoft, Thomson Reuters,
Where can I get the free download of Unix by Yeswant Kanetkar?
What is the search command in unix?
How many bits use for MAC address?
how to find the 51th record of a file containing 100 records in unix.
What is the use of cut command in unix?
How do you copy a directory with many files and folders into another directory?
what is the use of ls -l command & what is the information it gives about user ?
which command is used to identify the type of the file?
Explain iostat, vmstat and netstat.
What does sed command do in unix?
fork in unix ?