LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   equivalent in linux for the dos command dir *.exe /s (https://www.linuxquestions.org/questions/linux-newbie-8/equivalent-in-linux-for-the-dos-command-dir-%2A-exe-s-4175538575/)

Qyko 04-02-2015 02:46 PM

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

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 02:59 PM

Try this
Code:

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

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

Qyko 04-05-2015 10:53 AM

Thank you
 
Thank you Joe 2000 !


All times are GMT -5. The time now is 04:19 AM.