Finding files and content in the command line can be tricky sometimes, but with a bit know know-how you should be able to handle it like a pro in no time.
And here is how:
1) Use 'find' to search for a file by it's name. Like:
find -iname "file"
Iname would ignore the case, which is very usefull in most cases.
If you want to search in a specific location or root, in this case, you just need to insert the location, like:
find / -iname "file"
Wilcards can help you find more general names containing parts that you want to look for:
find /home -iname "*.jpeg"
You can also specify the type, you have the options of regular files (f), directories (d), symbolic links (1), character devices (c), and block devices (b) by using the right modifier.
find /home -type f -iname "*.jpeg"
Or size:
find /home -size +1M -iname "*.jpeg"
Finding files via SSH Print
- ssh
- 85
Was this answer helpful?
Related Articles
What happens if I go over my bandwidth limit?
You will get a notification when you've reached 90% of your allocated bandwidth. If you reach the...
How do I add more bandwidth?
There are two ways you can add more bandwidth.1.) You can upgrade your account to add more...
How does DDoS protection work?
We provide DDoS filtering up to 10 Gbps included with all of our VPS plans at all locations. If...
Do you create backups of the VPS?
We do a snapshot backup of every VPS to dedicated backup server. This snapshot backup is for...
How do i set reverse DNS (PTR) on my ip address?
In order to set rDNS on your IP please open a ticket to our support department and we will apply...