Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-02-2015, 03:46 PM   #1
LQ Newbie
Registered: May 2014
Posts: 4

Rep: Reputation: Disabled
Question 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.
Old 04-02-2015, 03:59 PM   #2
Senior Member
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
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
3 members found this post helpful.
Old 04-05-2015, 11:53 AM   #3
LQ Newbie
Registered: May 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you

Thank you Joe 2000 !


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux equivalent to DOS "tree" command? XDude Linux - Newbie 10 09-25-2014 01:24 PM
Linux Equivalent of Windows EXE rn5a Linux - Newbie 6 08-23-2007 02:21 PM
A command equivalent to c:\>dir /a/s/d AGazzaz Linux - General 2 09-06-2006 05:14 PM
equivalent of DOS command /p TranceDude Linux - Software 6 08-13-2005 12:49 AM
Equivalen dir /s [DOS] command shole Linux - Software 8 01-14-2005 04:39 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration