How do you find path of a directory? Give its syntax.

Answers were Sorted based on User's Feedback



How do you find path of a directory? Give its syntax...

Answer / jiji

Type pwd at the prompt

Is This Answer Correct ?    18 Yes 2 No

How do you find path of a directory? Give its syntax...

Answer / mangai

In command prompt,type pwd

Is This Answer Correct ?    13 Yes 3 No

How do you find path of a directory? Give its syntax...

Answer / manikantan t s

go to the directory and give 'pwd'

Is This Answer Correct ?    12 Yes 4 No

How do you find path of a directory? Give its syntax...

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 do you find path of a directory? Give its syntax...

Answer / srikant

locate <dirname>

Is This Answer Correct ?    3 Yes 8 No

How do you find path of a directory? Give its syntax...

Answer / rao

find . -type d -print

Is This Answer Correct ?    4 Yes 11 No

How do you find path of a directory? Give its syntax...

Answer / chandra (acs)

$ echo $PATH

Is This Answer Correct ?    2 Yes 16 No

Post New Answer

More Unix Commands Interview Questions

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.

1 Answers  


in UNIX ,What is the command to view contents of a large error log file?

7 Answers  


What are awk commands?

0 Answers  


How do I use nslookup?

0 Answers  


how many internal commands is there in UNIX?

3 Answers   TCS, Virtusa,






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?

0 Answers  


What is difference between grep and find command in unix?

0 Answers  


What is the difference between cat and more command?

0 Answers  


What command a user use to view a long text file one page at a time in UNIX?

8 Answers   IBM,


How does the user view the contents of a text file in UNIX?

9 Answers   IBM,


Why we are using UNIX OS when we are doing the testing in our application?

5 Answers   IBM,


Categories