Help needed : Finding files on Mint ? [Solved ]

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
HP7

Help needed : Finding files on Mint ? [Solved ]

Post by HP7 »

Hello Everyone ;
I know the name of a file stored somewhere in my PC (CentOS-7-x86_64-DVD-1611 (1).iso), but i don't remember where had i stored that file..
Instead of opening all directories is there a method to find where is the file stored (ie inside which directory/directories).

Thanks in advance !
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
coffee412
Level 8
Level 8
Posts: 2271
Joined: Mon Nov 12, 2012 7:38 pm
Location: I dont know
Contact:

Re: Help needed : Finding files on Mint ?

Post by coffee412 »

Use the locate command for this. Using it as a user you can find any file(s) that you have access too. If its a system file use it with root permissions.

Example: Find all the iso files that I have access too:

Code: Select all

locate *.iso

/home/coffee/Downloads/gparted-live-0.27.0-1-i686.iso
/home/coffee/Downloads/linuxmint-18.2-mate-64bit.iso
/home/coffee/Downloads/pcunlocker.iso
/home/coffee/Downloads/ubuntu-16.04.3-server-amd64.iso
/home/coffee/Downloads/vista home premium sp1 64 bit.iso
/home/coffee/Downloads/vista-32-OEM.iso
/home/coffee/Downloads/MINT18-MATE/linuxmint-18-mate-64bit.iso
/home/coffee/Downloads/MINT18-MATE/linuxmint-18.2-mate-64bit.iso
If its a recent addition to your files you are looking for then run the 'updatedb' command before running locate to freshen the file list.

I can search for a specific file with root permissions too:

Code: Select all

sudo locate openvpn.conf

coffee@max ~ $ sudo locate openvpn.conf
[sudo] password for coffee: 
/usr/lib/tmpfiles.d/openvpn.conf
/var/lib/dpkg/info/network-manager-openvpn.conffiles
/var/lib/dpkg/info/openvpn.conffiles
/var/lib/dpkg/info/openvpn.config
coffee@max ~ $ 
Hope this helps
Ryzen x1800 Asus Prime x370-Pro 32 gigs Ram RX480 graphics
Dell PE T610, Dell PE T710
- List your hardware Profile: inxi -Fxpmrz
MeshCentral * Virtualbox * Debian * InvoiceNinja * NextCloud * Linux since kernel 2.0.36
HP7

Re: Help needed : Finding files on Mint ? [Solved ]

Post by HP7 »

Thankyou for the help ! =)
ig-88

Re: Help needed : Finding files on Mint ? [Solved ]

Post by ig-88 »

I learn something new every time I visit the forum. Thanks coffee412
User avatar
jimallyn
Level 19
Level 19
Posts: 9075
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Help needed : Finding files on Mint ? [Solved ]

Post by jimallyn »

I use the Catfish File Search.
“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan
Locked

Return to “Beginner Questions”