I have a directory, named data
, with multiples files in it which have different types of permissions. I want to delete only the files that do not have any permissions, i.e shown as ----------
in ls -l
. My guess is to use the find
command, but I don't know where to start.
What one line command can do this ?
chmod -R 777 data
to change the permissions of all files in the directory.