A good utility for finding all executables in a given path.

Posted: March 30, 2015. At: 10:56 PM. This was 3 years ago. Post ID: 8123
Page permalink.
WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters. These cookies expire two weeks after they are set.

Finding all executables in a given path is easy if you use the lsx utility. Firstly install the required packages.

[email protected]:~$ sudo apt-get install suckless-tools
[sudo] password for jason: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  dwm stterm surf
The following NEW packages will be installed:
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 49.9 kB of archives.
After this operation, 272 kB of additional disk space will be used.
Get:1 http://de.archive.ubuntu.com/ubuntu/ vivid/universe suckless-tools amd64 40-1 [49.9 kB]
Fetched 49.9 kB in 2s (24.5 kB/s)         
Selecting previously unselected package suckless-tools.
(Reading database ... 386755 files and directories currently installed.)
Preparing to unpack .../suckless-tools_40-1_amd64.deb ...
Unpacking suckless-tools (40-1) ...
Processing triggers for man-db ( ...
Setting up suckless-tools (40-1) ...

Then, once this is installed, you may then use this utility to find all executables in a directory.

jason@eyjafjallajkull:/usr/bin$ lsx /usr/local/bin

This is a very useful command for finding executable files easily on your Linux filesystem.

No comments have been made. Use this form to start the conversation :)

Leave a Reply