How to find executable files in linux

Source: Internet
Author: User
This article describes how to find executable files in linux. For more information, see

Search for executable files in linux

Ls-F | grep "*"

That's all!

Ls-F | grep/$

Ls-F means to classify files by type and add/* and other symbols at the end.
| Pipeline output. the result of the preceding command is used as the input and passed to the subsequent command.

Grep/$ indicates to pick out the rows ending with a slash (/), which indicates that the row is a directory.

-F, -- classify
Append indicator (one of */=> @ |) to entries

Example:

Copy codeThe code is as follows:
[Root @ SOR_SYS ~] # Ls-F
1. sh * CC_manual_0701.rar gzpackage/man. config script/tr1.txt
2005.03.01 dead. letter index.html ntpd-deploy.sh * start_tomcatServer229-1.sh tr.txt
Anaconda-ks.cfg Desktop/install. log printc. sh start_tomcatServer229-2.sh usr/
Apache-tomcat-6.0.30.zip etc/install. log. syslog rpmpackage/stop_tomcatServer229-1.sh zy/
Camptocamp-tomcat-0.0.1/get_date.sh lib/ruby-1.8.7-p248/stop_tomcatServer229-2.sh zy. bak/
[Root @ SOR_SYS ~] #

If we search for the ending with a slash (/), we can use the following method:

Ls-F | grep \/[escape character]
Ls-F | grep/$
Ls-F | grep/

Let's take a look at the functions of ls-F:

-Add a * number to the executable file, add a/number to the directory, and add a @ number to the symbolic link.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.