Skip to content

Edit how directories are shown when type ls #5261

Answered by bew
ViniciusLagoGehrke asked this question in Q&A
Discussion options

You must be logged in to vote

This is not the terminal that you need to configure to change ls's output format & style, but ls itself!

For example to add a / after directories you call ls -F. Read about the other flags you can use with ls with man ls and ls --help

For colors, ls is configured using the LS_COLORS environment variable, see this tutorial: https://www.howtogeek.com/307899/how-to-change-the-colors-of-directories-and-files-in-the-ls-command/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ViniciusLagoGehrke
Comment options

Answer selected by wez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants