mirror of
https://github.com/nushell/nushell.git
synced 2025-08-16 16:41:41 +02:00
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
34
docs/commands/ls.md
Normal file
34
docs/commands/ls.md
Normal file
@ -0,0 +1,34 @@
|
||||
# ls
|
||||
View the contents of the current or given path.
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> ls (path) {flags}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
* `(path)` a path to get the directory contents from
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
* -a, --all: Show hidden files
|
||||
* -l, --long: List all available columns for each entry
|
||||
* -s, --short-names: Only print the file names and not the path
|
||||
* -d, --du: Display the apparent directory size in place of the directory metadata size
|
||||
|
||||
## Examples
|
||||
List all files in the current directory
|
||||
```shell
|
||||
> ls
|
||||
```
|
||||
|
||||
List all files in a subdirectory
|
||||
```shell
|
||||
> ls subdir
|
||||
```
|
||||
|
||||
List all rust files
|
||||
```shell
|
||||
> ls *.rs
|
||||
```
|
||||
|
Reference in New Issue
Block a user