1
submitted 2 years ago* (last edited 2 years ago) by MoriGM@feddit.de to c/linux@lemmy.ml

What are your most liked alias for long commands or just to give them better names.

Mine are:

alias load="source .load.sh"
alias eload="$EDITOR .load.sh"
alias gpush="git push"
alias gadd="git add --all"
alias gcommit="git commit -m "
alias gst="git status -s"
alias gpull="git pull"
all 10 comments
sorted by: hot top controversial new old
[-] knobbysideup@lemm.ee 2 points 2 years ago
become="sudo su -"
pb="ansible-playbook"
[-] maiskanzler@feddit.de 1 points 2 years ago

dc="docker-compose" saves me soooo much time!

[-] gideonstar@feddit.de 1 points 2 years ago
[-] coleman@lemmy.ml 1 points 2 years ago

I do this but with xx because I'm too scared

[-] wgs@lemmy.sdf.org -1 points 2 years ago

^D my dude.

[-] literally1848@programming.dev 1 points 2 years ago

alias clearswap='sudo swapoff -a && sudo swapon -a

alias reload='source ~/.bashrc'

scan_local() {

 local_ip=$(ip addr show wlan0 | grep "inet " | awk '{print $2}' | awk -F '/' '{print $1}')

 sudo nmap -sn "$local_ip/24"

}

[-] Plasma@lemmy.ml 1 points 2 years ago
[-] coleman@lemmy.ml 1 points 2 years ago

My variant (u mean "up" in my head)

alias u  ='cd ..'
alias uu ='cd ../..'
alias uuu='cd ../../..'
this post was submitted on 03 Jul 2023
1 points (100.0% liked)

Linux

55801 readers
855 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS