Tuesday, November 05, 2013

How to search entire hard drive for a file?

A simple find / -type f -name "" would do the trick if you know exact filename.
find / -type f -iname "filename*" if you want to match more files.
Avoid -type option if you want to search for directories etc. See manual of find for more information. To see the manual, issue the command:
man find
Post a Comment

How to get the IP address of the docker host from inside a docker container

/sbin/ip route|awk '/default/ { print $3 }'