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.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Seeing your
up
alias reminded me of a bash function I setup a while ago also calledup
. I use it to simulate doingcd ..
n number of times. e.g.up 5
would go up 5 directory levels.It’s probably the smallest, yet most convenient thing I’ve setup on my machines. Especially so if you work in languages with lots of nested subdirectories (like Java).
i setup several aliases
and so on…
Yup, aliases are super useful! One of my most used ones is
mkcd
; you almost always want to cd into a dir after you make it.I also like fish’s abbreviations (created through
abbr
), which are essentially aliases that get expanded when you run them. For example, if I set an abbreviation withabbr -a dkc docker-compose
, I can then just typedkc
and it will expand it to the full command when I either hit enter or space.Are you creating a copy of your commands in some /bin folder and renaming?
Probably just bash aliases:
e.g.
You’re right.
alias in=“sudo apt install”
alias up=“sudo apt update && sudo apt upgrade”
alias unin=“sudo apt purge”
I just put this all in my .bashrc file.