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.