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 |
Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.
in UNIX ,What is the command to view contents of a large error log file?
What are awk commands?
How do I use nslookup?
how many internal commands is there in UNIX?
How to replace the exact word in vi editor?? suppose a file contains words like amaze,amazed,amazement in some of the line.But i want to replace only 'amaze' with delight but don't wanna replace amazed or amazement. thanks
6 Answers Polaris, Tech Mahindra,
Which command should you use to find the remaining disk space in unix server?
What is difference between grep and find command in unix?
What is the difference between cat and more command?
What command a user use to view a long text file one page at a time in UNIX?
How does the user view the contents of a text file in UNIX?
Why we are using UNIX OS when we are doing the testing in our application?