How to find executable files by linux
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!