Some folders and files under my folder named Movies can't be deleted. I had a look and there is no longer a user even set on them to remove or edit them. Somehow it has removed itself as me being the creator of them. I was listed as being about to last time I checked. I can't simply delete the folder by CLI as I have files in there I need still but I need to delete the folders that are in there. I could transfer the files out and then delete it but that would take to long to transfer them and I need to delete the existing folders now to free up space.
So my question is how can I delete multiple folders without an assigned user creator or any as none is listed anymore?
My user account won't let me change the permission because for some reason my username was removed from the folders and files so I can't even chmod them from the GUI as there is no assigned username listed in the permissions tab even though I am the creator.
sudo rm -rf /path/to/file
?chown
first as mentioned in my answer for future convenience. That said:some/folder/file{a,b,c,0..2}
will be expanded by the shell tosome/folder/filea some/folder/fileb some/folder/filec some/folder/file0 some/folder/file1 some/folder/file2
- that example should cover both ways of using it (ranges and individual specification). This can be nested and can be combined with the use of the wildcard character*
for an awful lot of expressiveness.