Ls-f | What does grep mean,/$?

Source: Internet
Author: User
Tags tomcat

Today in search of a dongdong found this title, then you know what is the meaning of it.

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

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

grep/$ means to pick out the line that ends with/to identify the directory


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

Example:

[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/

if we search for/end, 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:

- F switch Add an * number to the executable file , add a / number to the directory , and add an @ sign for the symbolic link .


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.