-   Linux - Newbie (
-   -   equivalent in linux for the dos command dir *.exe /s (

Qyko 04-02-2015 03:46 PM

equivalent in linux for the dos command dir *.exe /s

I studied the command ls for more than 3 hours and I want to do in linux the following commands

1) cd \
2) dir *.exe /s

This browse my entire disk and displays all the executables.
Also I want to see the attributes, the subdirectory, the filename, the file length and the date of creation.

Can somebody help me to make a bashfile with the correct ls switches ?
It should be someting like
cd root
ls -1 -? -?

Thank you very much.

joe_2000 04-02-2015 03:59 PM

Try this

find / -executable -type f -exec ls -l {} \;
Possibly pipe it into less for easier results inspection

find / -executable -type f -exec ls -l {} \; | less

Qyko 04-05-2015 11:53 AM

Thank you
Thank you Joe 2000 !

All times are GMT -5. The time now is 12:13 AM.