this post was submitted on 11 Feb 2024
49 points (96.2% liked)

Linux

8306 readers
264 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
49
Do you use aliases? (lemmy.world)
submitted 10 months ago* (last edited 10 months ago) by laverabe@lemmy.world to c/linux@lemmy.world
 

command line aliases to make repeated processes quicker. I've used them in the past and on specific programs but never on command line utilities.

like for instance with Debian, I'm repeatedly typing sudo apt-get install, so I aliased it: alias sagi="sudo apt-get install" and it works pretty good.

Are there any best practices or aliases to avoid when using them? Other than known commands obviously. Are there popular alias lists out there?

you are viewing a single comment's thread
view the rest of the comments
[–] kometes@lemmy.world 30 points 10 months ago (3 children)

alias more="less -cX"
alias moer=more
alias meor=more
alias meor=more
alias mroe=more
alias More=more

alias grpe=grep
alias gerp=grep
alias gpre=grep

[–] model_tar_gz@lemmy.world 14 points 10 months ago* (last edited 10 months ago) (3 children)

In a big fan of the ‘fuck’ package for this. Try it out. Sudo apt install thefuck.

edit: oops got the name wrong; been a while since I installed it. Fuck.

[–] reallyzen@hachyderm.io 4 points 10 months ago* (last edited 10 months ago) (1 children)

@model_tar_gz @kometes "yay fuck" sounds better I believe

Does it *work*? IRL?

[–] model_tar_gz@lemmy.world 2 points 10 months ago

Yes it’s for real. I type fuck, it fixes my prompt, I accept and move on.

[–] rekabis@lemmy.ca 3 points 10 months ago

The what, now?

googles hastily

Oohhhhh mmmmmyyyyyyy…

[–] laverabe@lemmy.world 9 points 10 months ago (1 children)
[–] reallyzen@lemmy.ml 6 points 10 months ago (1 children)

Have tou heard of the sl command?

[–] laverabe@lemmy.world 3 points 10 months ago
[–] justin@lemmy.kde.social 1 points 10 months ago

alias g=grep -i