![]() |
Find a directory
I am logged in as shik28 to a remote system. I have to locate a directory /log in it.
But when I hit ls in the root directory, it does not display /log anywhere. But when I say cd /log there is no error. How to find where exactly /log is present? |
By 'root directory', do you mean '/root' or '/'?
|
@hi2arun: I meant home directory. What is the difference between /root and /?
|
Hi,
where you have executed ls command in the /root (which is home of superuser directory) or / (which is the filesystem root. make sure where you trying to find out the directory. execute Code:
llor may be there are situations where you have mounted a filesystem but after reboot it's not mounted. samtoddler |
The command is not executed in superuser directory. It is executed in user's home directory.
|
Code:
It is executed in user's home directory.Quote:
When you are in Code:
/home/userTo see the files/directories from "/", you need to be in the "/" directory Code:
cd /http://www.thegeekstuff.com/2010/09/...tem-structure/ http://www.debianadmin.com/linux-dir...-overview.html Kind regards |
Hello,
Check where you are #pwd you can check the location of log dir using following command find / -type d -name log |
@repo and @linux1986: Thanks a lot! :)
|
| All times are GMT -5. The time now is 12:33 PM. |