nushell/docs/commands/ls.md
Fernando Herrera dbcadbc12c moved folders
2022-02-07 19:23:12 +00:00

639 B

ls

View the contents of the current or given path.

Usage

> 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

> ls

List all files in a subdirectory

> ls subdir

List all rust files

> ls *.rs