Help deleting unwanted files

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
deepfatfriar

Help deleting unwanted files

Post by deepfatfriar »

First of all a thank you to everyone involved with Linux Mint, it is a truely great distro (and I've tried a few!)

I am trying to clean up a music collection that was once used by windows, it contains a whole load of "desktop.ini", "Thumbs.db" and randomly named JPG files (some of which I think are corrupt). The result of listng an individual folder is as follows

Code: Select all

user@host:/mnt/files/shared/music/Zorg/Paris Lounge 3 - CD2$ ls -l
total 5204
-rwxrwx--- 1 david users 5296632 2007-04-07 17:40 01 Closer To The Peace.mp3
-rwxrwx--- 1 david users    1303 2007-02-25 13:14 AlbumArt_{788743ED-F95D-4D00-9340-65245D3550FD}_Large.jpg
-rwxrwx--- 1 david users     727 2007-02-25 13:14 AlbumArt_{788743ED-F95D-4D00-9340-65245D3550FD}_Small.jpg
-rwxrwx--- 1 david users     727 2007-02-25 13:14 AlbumArtSmall.jpg
-rwxrwx--- 1 david users    1303 2007-02-25 13:14 Folder.jpg
user@host:/mnt/files/shared/music/Zorg/Paris Lounge 3 - CD2$
First question, do the file permissions look OK?

Second question why is it that when I run the following it doesn't show me any of the jpeg files that I know exist? (I'd be happy to read and learn topics if I only knew what to read up on!)

Code: Select all

user@host:/mnt/files/shared/music$ ls -R *.jpg
ls: *.jpg: No such file or directory
user@host:/mnt/files/shared/music$
Especially when running the following command does show all the JPEGS!?!?!?

Code: Select all

user@host:/mnt/files/shared/music$ ls -R

**** SNIP ****

./Zimpala:
Paris Lounge 3 - CD2

./Zimpala/Paris Lounge 3 - CD2:
08 The Breeze Is Black (Mondae Mode.mp3                    AlbumArtSmall.jpg
AlbumArt_{788743ED-F95D-4D00-9340-65245D3550FD}_Large.jpg  Folder.jpg
AlbumArt_{788743ED-F95D-4D00-9340-65245D3550FD}_Small.jpg

./Zorg:
Paris Lounge 3 - CD2

./Zorg/Paris Lounge 3 - CD2:
01 Closer To The Peace.mp3                                 AlbumArtSmall.jpg
AlbumArt_{788743ED-F95D-4D00-9340-65245D3550FD}_Large.jpg  Folder.jpg
AlbumArt_{788743ED-F95D-4D00-9340-65245D3550FD}_Small.jpg
user@host:/mnt/files/shared/music$
Third question, if I am using the wrong approach above then is there a command to delete all the .ini files from a directory structure or am I missing something?

Many thanks in advance for your help!

Dave
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepfatfriar

Re: Help deleting unwanted files

Post by deepfatfriar »

Hi Steve,
Thanks for your help :D unfortunately I'm still having the same problem:

Code: Select all

user@host:/mnt/files/shared/music$ ls -R /mnt/files/shared/music/*.jpg
Is trying to find a folder or folders named "*.jpg" within the music folder and then recursive folders within the music folder....

Any more ideas? Anyone?

Cheers,

Dave
deepfatfriar

Re: Help deleting unwanted files

Post by deepfatfriar »

I hate admitting defeat but none of those approaches were doing quite what I was after - thanks though :D

I ended up using a samba share and using DOS instead.

Thanks all I guess I just can't shake my Windows 3.11 roots!

Cheers

Dave
jbaerbock
Level 4
Level 4
Posts: 318
Joined: Tue Jun 05, 2007 11:31 pm
Location: St. Peter, MN

Re: Help deleting unwanted files

Post by jbaerbock »

I would simply use the filemanager and delete them. If the permissions do not allow you to just type "gksu nautilus" in the run dialog box and you will be using nautilus as root.
Locked

Return to “Beginner Questions”