Mac Ubuntu Style ll Command
Why do you need the ll command?
In Ubuntu systems, ll is the default alias for ls -alF, which visually displays:
- File permissions
- Owner information
- File sizes
- Hidden files
However, the Mac terminal does not have this alias configured by default. This article teaches you how to quickly implement this productivity tool.

Three-step configuration tutorial
Step 1: Locate the configuration file
- Open Terminal
- Enter the following command to edit the configuration file:
vim ~/.zshrcIf using bash, modify
~/.bash_profile

Step 2: Add code
Insert one of the following at the end of the file:
# Equivalent to ls -lalias ll='ls -l'
# Ubuntu style (includes hidden files + human-readable file sizes)alias ll='ls -alhF'Parameter explanation:
-aShows hidden files-lDetailed listing-hHuman-readable file sizes (e.g., 1K, 234M)-FAppends file type indicators (/ for directories, * for executables)

Step 3: Activate the configuration
source ~/.zshrc
Verification

Title: Mac Ubuntu Style ll Command Author: Neurocoda Created at: 2026-07-03 12:46:47 Link: https://neurocoda.com/en/posts/mac-ubuntu-style-ll-command-en/ License:
This work is licensed under
CC BY-ND 4.0.
Comments