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 use of "test" command in unix?
what are the different hardwares available?
What is difference between grep and find command in unix?
What command would users use to see what file one page at a time in UNIX?
What is the command to find maximum memory taking process on the server?
How to create hardlinks and softlinks on files?
Which command will you use to change the permissions on file?
What is the difference between udp and tcp?
How to remove a crontab file?
What is sed awk grep?
The command grep first second third /usr/you/myfile a) prints lines containing the words first, second or third from the file /usr/you/myfile b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them d) replaces the word first with the word second in the files third and /usr/you/myfile e) None of the above
what is the significance of "su" command?