I would like to determine the location of a file using command-line. I have tried:
find . -type f -name "postgis-2.0.0"
and
locate postgis-2.0.0
to no avail. What is the command to determine the file's directory, provided its name?
command linedirectoryfind
I would like to determine the location of a file using command-line. I have tried:
find . -type f -name "postgis-2.0.0"
and
locate postgis-2.0.0
to no avail. What is the command to determine the file's directory, provided its name?
Best Answer
Try
find ~/ -type f -name "postgis-2.0.0"
instead.Using
.
will only search the current directory.~/
will search your entire home directory (likely where you downloaded it to). If you usedwget
as root, its possible it could be somewhere else so you could use/
to search the whole filesystem.Goodluck