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 to find all of the files which have been accessed within the last 30 days.

14 Answers   Cisco,


why unix operating system provides more security than other operating systems?

4 Answers  


distinguish between paging and swapping?

3 Answers   Infosys,


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include<stdlib.h> # include <stdio.h> int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

0 Answers  


Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex student 1423 Feb 21 14:01 tasks What command can Alex use to give everyone permission to write to the file? What will the ls -l command display if he does so?

10 Answers   Infosys,






How can you see the command line history?

0 Answers  


What is the use of the tee command?

0 Answers  


What is the use of egrep command in unix?

0 Answers  


How do you copy a directory with many files and folders into another directory?

2 Answers  


what is exact definition of operating system?

13 Answers  


write grep commands to select the lines that have exactly two characters

8 Answers   PSI Data Systems,


What are the differences among a system call, a library function, and a unix command?

0 Answers  


Categories