⚙️
g - powerful and cross-platform ls
  • Start
  • Installation
  • 🥳Usage
    • Basic
      • View
      • Display
        • Layout
        • Setting
        • Misc
      • Filtering
      • Sorting
    • Advanced
      • default option
      • cli markdown renderer
      • fuzzy match path
      • args
Powered by GitBook
On this page
  • hidden file
  • no directories, files only
  • no files, directories only
  • ignore backups
  • git-ignore
  • ignore entries matching the given Glob
  • entries matching Glob
  • filename ending with target extension
  • files matching given mime types
  • top N
  • before/after

Was this helpful?

Edit on GitHub
  1. Usage
  2. Basic

Filtering

hidden file

-a : show all, including . and ..

-A --almost-all: show all, excluding . and ..

--hidden: show hidden files/dirs only

no directories, files only

--no-dir or --file

no files, directories only

--only-dir or -D,--dir

ignore backups

do not list implied entries ending with ~

--ignore-backups or -B

git-ignore

--git-ignore

ignore entries matching the given Glob

--ignore , -I

entries matching Glob

match , -M

filename ending with target extension

--ext=ext1,ext2,... : show matched results

--no-ext=ext1,ext2,... : ignore matched results

files matching given mime types

--only-mime=target1,target2,...

--only-mime will not match or remove any directory

use --nodir to remove all the directories

top N

limitN=num or limit=num

num < 0 means infinity

before/after

before=01-02

before='01-02 15:04'

before=15:04

before=2006-01-02

before=2006-01-02 15:04

PreviousMiscNextSorting

Last updated 1 year ago

Was this helpful?

🥳