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 |
can we use cat command as an editor ..???
How do I open a port?
What is a shell in Unix? Name some common Unix shells.
Give command that will make the file "run.sh" executable?
How to check whether some services are running in another server or not? Suppose i am currently in a server named A.I want to check whether some services are running in server B without logging into the server B.
3 Answers Amazon, MBA, Syntel, TCS, Unisys,
What are awk commands?
How to copy multiple files and directories into some other directory?
What is the difference between pipe (|) and tee command in unix
solaris Run level?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What is the syntax of grep command and what is its use?
What is shrinking file system in AIX where it actually resides?