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 |
What does the command '$ls | wc –l > file1' do?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Who command in unix?
Which command is used to copy files?
Which command is used to restrict incoming messages?
How do you move a process which is running background to foreground?
What do chmod, chown, chgrp commands do?
what is the default permission for /etc/shadow file in UNIX
What is the difference between pipe and xargs?
How to check the flavor of UNIX?
distinguish between user mode and kernel mode?
How does shebang work?