LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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

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

Original Poster
Rep: Reputation: Disabled
Thank you

Thank you Joe 2000 !
 
  


Reply



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 12:24 PM
Linux Equivalent of Windows EXE rn5a Linux - Newbie 6 08-23-2007 01:21 PM
A command equivalent to c:\>dir /a/s/d AGazzaz Linux - General 2 09-06-2006 04:14 PM
equivalent of DOS command /p TranceDude Linux - Software 6 08-12-2005 11:49 PM
Equivalen dir /s [DOS] command shole Linux - Software 8 01-14-2005 03:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:56 AM.

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