Typos fixed (#20362)

This commit is contained in:
Matteo
2018-11-02 17:15:27 +01:00
committed by Niraj Nandish
parent f40384972b
commit f8cfd5dd40

View File

@ -1,42 +1,42 @@
--- ---
title: Bash ls title: Bash ls
--- ---
## Bash ls ## Bash ls
`ls` is a command on Unix-like operating systems to list contents of a directory, for example folder and file names. `ls` is a command on Unix-like operating systems to list contents of a directory, for example folder and file names.
### Usage ### Usage
```bash ```bash
ls [options] [folder_path] ls [options] [folder_path]
``` ```
You can list the items in any directory without even entering the directory. Consider you are in a directory with folders- Test1,Test2. You're in the parent directory you can list all files in Test1 as follows- You can list the items in any directory without even entering the directory. Consider you are in a directory with folders Test1 and Test2. You're in the parent directory you can list all files in Test1 as follows:
`ls Test1` `ls Test1`
Most used options: Most used options:
* `-a`, all files and folders, including ones that are hidden and start with a `.` * `-a`, all files and folders, including ones that are hidden and start with a `.`
* `-l`, List in long format * `-l`, List in long format
* `-G`, enable colorized output. * `-G`, enable colorized output.
* `-s`, List File Size. * `-s`, List file size.
* `-R`, displays the contents of the directory, and its subdirectories. * `-R`, displays the contents of the directory, and its subdirectories.
### Example: ### Example:
List files in `freeCodeCamp/guide/` List files in `freeCodeCamp/guide/`
```bash ```bash
ls ⚬ master ls ⚬ master
CODE_OF_CONDUCT.md bin package.json utils CODE_OF_CONDUCT.md bin package.json utils
CONTRIBUTING.md gatsby-browser.js plugins yarn.lock CONTRIBUTING.md gatsby-browser.js plugins yarn.lock
LICENSE.md gatsby-config.js src LICENSE.md gatsby-config.js src
README.md gatsby-node.js static README.md gatsby-node.js static
assets gatsby-ssr.js translations assets gatsby-ssr.js translations
``` ```
#### More Information: #### More Information:
* [Wikipedia](https://en.wikipedia.org/wiki/Ls) * [Wikipedia](https://en.wikipedia.org/wiki/Ls)
* [Shapeshed](https://shapeshed.com/unix-ls/) * [Shapeshed](https://shapeshed.com/unix-ls/)