135
Share a script/alias you use a lot
(lemmy.blahaj.zone)
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
I replaced rm with trash-put, just in case I realize I need some files that I removed down the line.
Official author don't recommend it due to different semantics. But honestly for my own personal use case its fine for me.
Also I like to alias xclip:
Little tip: In case you need to use
rm
directly, even with the alias in effect, you can put a backslah in front of the command to use its original meaning:\rm filename
oooh so does that apply to any command/user binary on the system?
I'm not sure what you mean with the question. If you have any alias like
alias rm='ls -l'
in your .bashrc in example, then you cannot use the original commandrm
anymore, as it is aliased to something else. I'm speaking about the terminal, when you enter the command. However, if you put a backslash in front of it like\rm
in the terminal, then the alias for it is ignored and the original command is executed instead.Edit: Made a more clear alias example.
Oh ty ty that answers my question! I am fairly new to being a poweruser on linux so I may have worded that wrong XD
I don't recommend that either. If you get used to that 'rm' doesn't actually remove files and then your alias is missing for whatever reason it'll bite you in the rear at some point. And obviously the same hazard goes with a ton of other commands too.