Linux命令 - ls命令
发布日期:2021-05-14 16:57:51 浏览次数:17 分类:精选文章

本文共 2487 字,大约阅读时间需要 8 分钟。

Linux������ - ls������

1. ������

ls���������Linux���������������������������������������������������������������������������������������������������������������������������������������������ls������������������������������������������������������������������������������������������������������������������������������������������


2. ������

ls [������] [���������������]

  • [������]������������������������������������������������������������������������
  • [���������������]���������������������������������������������������������������������������$PWD������

3. ������������

  • ������������������������������������������������������������
  • ���������������������������������������������������������������������������������
  • ������������������������������������������������
  • ���������������������������������������������������
  • ���������������������������������������������

4. ������������

1. ������������

  • -l������������������������������������������������������������������������������������������������������������
  • -R������������������������������������������������������������

2. ������������

  • -F��������������������������������������������� executable*", directory"/���������
  • -A���������������������������������������
  • -a���������������������������.������������

3. ������������

  • -t���������������������������������������������
  • -S���������������������������
  • -U���������������������������������������������

4. ������������

  • -h���������-readable������������������������������1M���2G������
  • --time-style=full-iso������������������ISO������������������

5. ������������

1. ������������������������������������

ls -l /path/to/directory

2. ������������������

ls -l | grep ".git"

3. ������������������������

find . -type d | ls -R

4. ������������������������

ls -F | grep sample*

6. ������������

1. ������������������

ls -l * | grep -c ".txt"

2. ������������������������������������

ls | sed "s:`pwd`/\"

3. ������������������

��� /etc/bashrc ������������������������

alias ls="ls --color"

������������������������������������������������������


7. ������������

  • -R ��������������������������������������������������� | less ���������������
  • ��������������������������������������� ls -lR ������������������������������������������
  • ������������������������ ls -l ���������������������������������������������������

������������������ ls ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

上一篇:Linux命令 - cd命令
下一篇:Linux目录结构

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2025年04月08日 15时15分41秒