In Operation
Here’s a comparison between ls and g without any flags specified. By default g lists folders before files.
g display items with type-specific icons and colors although some terminal emulators (such as hyper) can’t display the icons. Let’s switch to kitty to show the icons.
g supports layouts including grid, across, byline, zero, comma, table, html, json, markdown and tree. Here’s an example of the table layout.
We’re just scratching at the surface of g’s functionality. There’s powerful sorting, check file git-status, as well as fuzzy matching like zoxide.
Summary
g is an impressive alternative to our recommended exa utility.
It’s in a fairly early stage of development and hasn’t attracted many GitHub stars. That’s bound to change over time.
Website: github.com/Equationzhao/g
Support:
Developer: Equationzhao
License: MIT License
g is written in Go. Learn Go with our recommended free books and free tutorials.
Pages in this article:
Page 1 – Introduction and Installation
Page 2 – In Operation and Summary