Skip to main content

Linux command: ls - list directory contents

Illustrated: Phone book

ls - list directory contents

ls [OPTION]... [FILE]...

Commonly used options

  • l: long
  • a: all
  • S: sort by size
  • t: sort by last modified timestamp
  • r: sort reversed
  • R: recursive
  • F: append indicator (one of */=>@|) to entries

Popular posts from this blog

Data Recovery Softwares

Follow 3-2-1 backup rule so you do not need these data recovery softwares.

Linux command: printenv

printenv - print all or part of environment NAME        printenv - print all or part of environment SYNOPSIS        printenv [OPTION]... [VARIABLE]... DESCRIPTION        Print  the  values  of the specified environment VARIABLE(s).  If no VARIABLE is speci‐        fied, print name and value pairs for them all.        -0, --null               end each output line with NUL, not newline        --help display this help and exit        --version               output version information and exit        NOTE: your shell may have its own version of printenv,  which  usually  supersedes  the        version  described  here.  Please refer to your shell's documentation for d...

Powershell: Get-Content - tail command on Windows

Love tail command on Linux ? Try Get-Content with Powershell 3.0+.