Quoting John Jason Jordan circa 09-12-16 04:47 PM:
> At first I thought I could just figure out how to make the ls command
> display only files with the x set. I haven't succeeded in figuring that
> out yet, but I did do ls -l on the main ~/ folder. I discovered that my
> files are a bigger mess than I thought. As a rough guess, about one in
> ten files is set to be executable, including just ordinary data files.
> 
> There really are just half a dozen in my home folder that need to remain
> executable - a few shell scripts, and binaries for things like XaraLX, 
> Acroread,
> and so on. Even if I got ls -l to display only the files that are
> executable it would be a very long list because of all the files that
> are set to be executable and shouldn't be. Nautilus informs me that ~/
> contains over 60,000 files. If one out of ten is executable, that is a
> lot of files to look through manually.

find is your friend:

   $ find . -type f -executable -maxdepth 1

and to chmod 660 on the whole bunch:

   $ chmod 664 $(find . -type f -executable -maxdepth 1)

-- 
glen e. p. ropella, 971-222-9095, http://tempusdictum.com

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to