Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to find executable files by linux

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "linux how to find executable files", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "linux how to find executable files" bar!

Find executable files under linux

Ls-F | grep "*"

That's it!

What does ls-F | grep / $mean

Ls-F means to classify files by type and add symbols such as / * at the end.

| | Pipeline output, passing the result of the previous command as input to the following command |

Grep / $means to pick out the line that ends with /, which means that the logo is the directory

-F,-- classify

Append indicator (one of * / = > @ |) to entries

Example:

The code is as follows:

[root@SOR_SYS] # ls-F

1.shh * 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 those that end with /, we can use the following methods:

Ls-F | grep\ / [escape character]

Ls-F | grep / $

Ls-F | grep /

Let's look at the role of ls-F:

The-F switch adds a * sign to the executable, a / sign to the directory, and an @ sign to the symbolic link.

Thank you for your reading, the above is the content of "linux how to find executable files". After the study of this article, I believe you have a deeper understanding of how to find executable files in linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report