Documents

g – powerful and cross-platform ls

In Operation

Here’s a comparison between ls and g without any flags specified. By default g lists folders before files.

Basic comparison between ls and g

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 with icons

g supports layouts including grid, across, byline, zero, comma, table, html, json, markdown and tree. Here’s an example of the table layout.

g listing directory in a table

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

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments