推荐一个工具给大家:https://github.com/tldr-pages/tldr
tl;dr 的意思是 too long; dont read,这个工具可以用来查常用的linux命令,比man更友好一些,大多数时候用这个就够了,找不到再man或者google。
➜ ~ tldr ls
Local data is older than two weeks, use --update to update it.
ls
List directory contents.
- List files one per line:
ls -1
- List all files, including hidden files:
ls -a
- Long format list (permissions, ownership, size and modification date) of all files:
ls -la
- Long format list with size displayed using human readable units (KB, MB, GB):
ls -lh
- Long format list sorted by size (descending):
ls -lS
- Long format list of all files, sorted by modification date (oldest first):
ls -ltr
展开