Forrest logo
tool overview
On this page you find all important commands for the CLI tool ls. If the command you are looking for is missing please ask our AI.

ls

List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.

List of commands for ls:

  • chcon:tldr:b3ffa chcon: View security context of a file.
    $ ls -lZ ${filename}
    try on your machine
    explain this command
  • debootstrap:tldr:c3e04 debootstrap: List available releases.
    $ ls /usr/share/debootstrap/scripts/
    try on your machine
    explain this command
  • dmenu:tldr:2a8ea dmenu: Launch dmenu on a specific monitor.
    $ ls | dmenu -m ${1}
    try on your machine
    explain this command
  • dmenu:tldr:f1ad8 dmenu: Display dmenu at the bottom of the screen.
    $ ls | dmenu -b
    try on your machine
    explain this command
  • files:permission This command will list the permissions and other details of the file.
    $ ls -l ${filename}
    try on your machine
    explain this command
  • git-column:tldr:c0bf0 git-column: Format the standard input as multiple columns with a maximum padding of `30`.
    $ ls | git column --mode=column --padding=${30}
    try on your machine
    explain this command
  • git-column:tldr:f1d9b git-column: Format the standard input as multiple columns with a maximum width of `100`.
    $ ls | git column --mode=column --width=${100}
    try on your machine
    explain this command
  • git-column:tldr:f4815 git-column: Format the standard input as multiple columns.
    $ ls | git column --mode=${column}
    try on your machine
    explain this command
  • ls:tldr:48011 ls: Long format list of all files, sorted by modification date (oldest first).
    $ ls -ltr
    try on your machine
    explain this command
  • ls:tldr:5f7f4 ls: List all files, with trailing `/` added to directory names.
    $ ls -F
    try on your machine
    explain this command
  • ls:tldr:79e2f ls: Long format list with size displayed using human-readable units (KiB, MiB, GiB).
    $ ls -lh
    try on your machine
    explain this command
  • ls:tldr:7f9e5 ls: Only list directories.
    $ ls -d */
    try on your machine
    explain this command
  • ls:tldr:a2da9 ls: Long format list (permissions, ownership, size, and modification date) of all files.
    $ ls -la
    try on your machine
    explain this command
  • ls:tldr:c52fd ls: List all files, including hidden files.
    $ ls -a
    try on your machine
    explain this command
  • ls:tldr:de51c ls: Long format list sorted by size (descending).
    $ ls -lS
    try on your machine
    explain this command
  • ls:tldr:f52d3 ls: List files one per line.
    $ ls -1
    try on your machine
    explain this command
  • numfmt:tldr:5daf7 numfmt: Convert 5th field (1-indexed) to IEC Units without converting header.
    $ ls -l | numfmt --header=${1} --field=${5} --to=${iec}
    try on your machine
    explain this command
  • parallel:tldr:7ae52 parallel: Read arguments from `stdin`, run 4 jobs at once.
    $ ls *.txt | parallel -j4 gzip
    try on your machine
    explain this command
  • pridecat:tldr:56731 pridecat: List directory contents in pride flag colors.
    $ ls | pridecat --${flag}
    try on your machine
    explain this command
  • sftp:tldr:44ba5 sftp: Get list of files on remote machine.
    $ ls
    try on your machine
    explain this command
  • xcowsay:tldr:609e2 xcowsay: Display a cow with output from another command.
    $ ls | xcowsay
    try on your machine
    explain this command
tool overview