Using Find

Skybear

Active Member
Joined
Mar 7, 2026
Messages
179
Reaction score
140
Credits
1,404
I created a file to use as my GRUB wallpaper and tried to move it to /boot/grub/ folder but ended-up loosing it. I have no idea where the file is now. It's called Wildflowers for Linux and is a .png file. I've tried using the 'find' command but that hasn't brought up any results. I tried to use file manager but couldn't locate it that way either. Any ideas?
 


Find is useful in the right situations, others can tell you more.

I use "locate" which is installed on your Mint under plocate.

It supports globbing too (wildcards).

Its database updates each time you start your machine, but if you have added your lost file since then update its database first.

So for example (my comments are prefaced with a hash)

Code:
sudo updatedb  #will update its database, follow that, on completion with
locate *flowers* #and that will likely find your errant file ;)
 
You'll need to edit the /etc/default/grub file in order for your wallpaper to be a success when Grub boots.
Code:
    Open the /etc/default/grub file using a text editor with root privileges (e.g., sudo nano /etc/default/grub).
    Find the line GRUB_BACKGROUND=.
    If it exists, change the path to your image.
    If it doesn't exist, add the line GRUB_BACKGROUND=/path/to/your/image.jpg (replace /path/to/your/image.jpg with the actual path to your image).

    Save the changes to the file.
    4. Update GRUB:
        Run the command sudo update-grub in the terminal.
    This command will regenerate the grub.cfg file with the new background setting.
Then, REBOOT.

A file will not work as far as I know. The Wildflowers for Linux will need to be a "wallpaper image" with a jpg image converted into a .png.
 
Last edited:
A file will not work as far as I know.

It will, Alex, if it is placed in /boot/grub and you update your grub.

On one of my Mint

1774157026432.png


That works with Debian-based distros and numerous others. RPM Fedora) does not lie it.
 
It will, Alex, if it is placed in /boot/grub and you update your grub.

On one of my Mint

View attachment 30855

That works with Debian-based distros and numerous others. RPM Fedora) does not lie it.
Thanks for showing me that.
I was thinking as I was viewing your example 'Xero-Plasma69.png' (and in all of my wallpaper images over the years) is a wallpaper image and not a file.

With my current Linux Mint Mate install (22.1, Xia) my wallpaper.png is located in the /etc/default/grub.

Code:
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_BACKGROUND=/home/alex/Pictures/Race_Car2.png

The .png of the wallpaper I have set now is not in /boot/grub like yours.:(
Now I want to know why that is diff from yours?!

Code:
System-Product-Name:/boot/grub$ ls
fonts             grub.cfg  i386-pc  unicode.pf2
gfxblacklist.txt  grubenv   locale   x86_64-efi
 
Good Morning @Skybear

Did you have success in finding (using locate cmd) your Wildflowers for Linux?
 
 
Because I put it there instead, lol.
Seriously....LOL! Ya got me on that one:-
Location is evidently everything and there's more than one way to rectify a technique / task:-

It's Monday have a great week ahead!
 
sudo find / -name "*wildflower*" -type f

That should find your file.
 


Follow Linux.org


Top