Shell Command Aliases

Discussions center on using bash and zsh aliases to shorten or customize common shell commands like ls and uniq, including sharing examples, pros like convenience, and cons like config clutter or portability issues.

📉 Falling 0.5x DevOps & Infrastructure
2,435
Comments
19
Years Active
5
Top Authors
#7013
Topic ID

Activity Over Time

2008
11
2009
22
2010
42
2011
49
2012
92
2013
131
2014
87
2015
136
2016
151
2017
171
2018
129
2019
141
2020
226
2021
205
2022
245
2023
195
2024
200
2025
197
2026
5

Keywords

e.g IROF IMHO EDITOR PATH CLI FORI somafm.com SHR PADL alias aliases ls shell command bookmark bash commands path vim

Sample Comments

chuckadams Jun 23, 2025 View on HN

If only there were a way to alias commands, eh?

nake89 Oct 28, 2025 View on HN

I don't have that alias myself. But it seems like reasonable alias to have.

moomin Aug 19, 2016 View on HN

You think that's bad. They alias ls as well...

kilroy123 Jun 8, 2025 View on HN

Could you share the bash alias? I would love this too.

Kwpolska Dec 6, 2018 View on HN

Aliases are not really a solution here. They will just clutter your shell config and could potentially end up shadowing existing commands.

ZunarJ5 Sep 10, 2024 View on HN

Oh bless, thank you for this. I will throw it in my aliases.

kalid Jun 11, 2010 View on HN

Awesome, thanks for sharing that alias.

jhauris Mar 30, 2018 View on HN

those are great, definitely adding those aliases.

jdxcode Apr 5, 2020 View on HN

Why not just use shell aliases?

lawpoop Oct 29, 2016 View on HN

shell command aliases for now :P