Files
freeCodeCamp/guide/chinese/bash/bash-ls/index.md
2018-10-16 21:32:40 +05:30

35 lines
875 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Bash ls
localeTitle: 巴什ls
---
## 巴什ls
`ls`是类Unix操作系统上的命令用于列出目录的内容例如文件夹和文件名。
### 用法
```bash
cat [options] [file_names]
```
最常用的选项:
* `-a` ,所有文件和文件夹,包括隐藏的文件和文件夹`.`
* `-l` ,以长格式列出
* `-G` ,启用彩色输出。
### 例:
`freeCodeCamp/guide/`列出文件
```bash
ls ⚬ master
CODE_OF_CONDUCT.md bin package.json utils
CONTRIBUTING.md gatsby-browser.js plugins yarn.lock
LICENSE.md gatsby-config.js src
README.md gatsby-node.js static
assets gatsby-ssr.js translations
```
#### 更多信息:
* [维基百科](https://en.wikipedia.org/wiki/Ls)