Linux
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:
-
Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.
-
Be respectful: Treat fellow community members with respect and courtesy.
-
Quality over quantity: Share informative and thought-provoking content.
-
No spam or self-promotion: Avoid excessive self-promotion or spamming.
-
No NSFW adult content
-
Follow general lemmy guidelines.
view the rest of the comments
For a few basic things, yes. For a couple of others, I've set up a shell function or a script instead.
Obligatory warning before I list a few of my aliases - overriding commands by an alias with the same name can be dangerous, as it can mean that expected behaviour can become destructive behaviour on a foreign system without those aliases. e.g. a common error is aliasing
rm
torm -i
so thatrm
always asks if the user is sure. Until that user is on a different machine without the alias and the files vanish without warning, anyway. Oops.Some of mine are arguably questionable in that regard, but I don't think any will result in anything particularly destructive if I expect them in the wrong place.
These two override the default
which
command to deliver slightly more useful output, especially when the command is itself an alias (or an alias override).command
is a bash builtin:The obligatory
ls
config override.long-iso
formatting ensures thatls
's output is consistent, which is tidy, and also useful for further processing. That said, use ofstat
is probably a better choice for that sort of thing.).LC_ALL=C
setting is so that things sort in "ASCIIbetical" order. My locale mixes upper and lowercase filenames and I'm too old-school for that sort of thing.:Some versions of
mtr
start in GUI mode.-t
prevents that. And of course, Windows muscle memory dies hard:Hex dump using the ancient and nearly always present
od
command (the incantation is right out of theod
manual):Process control. Give either a PID and the process will do as it's told. Usually. :
How many times do I type the wrong thing? Too many:
Setup for
fortune
. The first one is self-explanatory. The second one shows which of the fortune files the fortune came from (-c
) but does some shenanigans to send that header to STDERR rather than STDOUT. This makes the header vanish whenfortune
is piped into fun things likecowsay
.I have a load of silly text cipher filters as scripts, but this one came for free with the bsdgames package
And of course, every time I create a new alias (which isn't very often, I admit), I run this one, which dumps all current aliases into a file that some distros set up by default.