79546655

Date: 2025-03-31 15:44:43
Score: 0.5
Natty:
Report link

Refer to the solution described in this post for a modern way to display ls.

Can the Unix list command 'ls' output numerical chmod permissions?

UPDATE APRIL 2025

enter image description here

Install the tool EZA.

sudo yum install eza -y

[Installation on other platforms.]

Use:

eza -alhgo --total-size

Edit and create an alias in your .bashrc or .bash_profile (/home folder) vi ~/.bash_profile

alias ls='eza -alhgo --total-size' or echo "alias ls='eza -alhgo --total-size'" >> ~/.bash_profile

Then reload the .bash_profile with: source ~/.bash_profile

Call a single file with:

ls file.txt

enter image description here

This will display a list with headers, groups, total file and folder sizes in octo.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Erick Gonzalez