How do you find path of a directory? Give its syntax.
Answer Posted / 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 |
Post New Answer View All Answers
How do I run a bash script?
Which command is used to create a directory?
What is the difference between awk and grep?
What is awk used for?
What are grep patterns?
What is a bash command?
What are the commands in UNIX to list the files in a Directory?
What is the command to view process running?
What does the “echo” command do?
Which command is used to kill the last background job?
Explain the steps that a shell follows while processing a command.
Is ‘du’ a command? If so, what is its use?
What is the functionality of a top command?
What is sed awk grep?
What is the use of awk command in unix?