grep goes crazy if you know your regex
Linux
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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
find?
glances! Way better than top
and does a bazillion cool things!
I loved glances until I switched to btop
with Hot Purple Traffic Light theme, and I doubt I'll switch again. Check it out!
I'm not sure how underrated it is but the exec feature in find
is so useful, there are so many bulk tasks that would just be incredibly difficult otherwise but instead are just one line
awk
..for parsing the output of other commands quickly and simply. Then that parsed output can be used to create simple log messages or be passed as args to other scripts. Powerful.
I think a lot of people don't realise that yt-dlp works for many sites, not just YouTube
I used it recently for watching a video from tiktok without having to use their god awful web UI and it was amazing
nano was and still is vital to me learning and using linux, I will not learn how to use vim so if the distro forces it to be default im not using it.
Why is editing text so convoluted for seemingly no reason.. also hate that vim must be used for certain files.
I used nano when I started but now I am using vim for one year already. I'd recommend taking a few days where you only use vim and I think you will see why people like it. With a few motions you can be much faster than you would be in Nano.
One of the big reasons I switched to nixos is that I mostly need to use the console only for updating my system by editing the configuration file using nano. I do very little besides that thankfully while the GUI side of linux gets better everyday.
vim must be used for certain files??
Cant remember exactly but it had something to do with a file relating to sudo and it only was allowed to be edited with a vim style editor.
There may be certain times where it's all that's available, I think I remember having to edit fstab in some recovery state in vi
It's for people to memorize hundreds of arcane shortcuts and shit so they can feel like a smug hacker and gloat over the rest of us using other editors and getting just as much done as they are.
Also for graybeards that haven't realized it's not 1985 anymore.
Wait until you meet an emacs user! ;p
Yeah, to this day vim still isn't intuitive for me, so I just use nano as it's either often included or simple to install on most Distros.
Unless a script is hardcoded for vim I haven't had to use it.
I abused debfoster for years... it kept my machines running very, very clean.
Idk a lot of commands but I think wget for downloading webpages and rsync for syncing devices are pretty awesome
The first time I used wget I felt so awesome. I was grabbing some extra music files I think it was for Ur-Quan Masters.
Use less
for checking contents of files. Many people use cat
all the time, but I don't like it, because if you do that often, your terminal window quickly gets flooded with stuff, and then you have to scroll up and down if you wanna see a previous output. With less
, your file opens in a different "frame", which you can close when you're done.
cat | more
Useless use of cat award!
Yes! I use less all the time, combine it with grep, etc.
Inshellisense is teaching me a lot. :) It's an autocompleter.
https://github.com/microsoft/inshellisense
Also, Atuin for history.
I like https://github.com/aristocratos/btop personally. It's way prettier than the normal top command which you use to watch processes to find the one that's hogging all of the CPU or whatever. And it's not so much that it's underrated so much as it's not very well known or distributed by default.
pipeviewer or pv
Great call! pv
is deceptively powerful. Being able to see progress and rate limit a pipe is incredibly useful.
ia
: internetarchive https://archive.org/developers/internetarchive/cli.html cli tool, i only use it for downloads, it can a bit more than the eye meets first, like accepting a wildcard to download certain files or specify other stuff. I have an incomplete script to help me with that, which I want to share in the future. The only problem is, that the internetarchive at archive.org is often very slow at downloading.
dd
is probably well known, but one of the simplest and most powerful ways to accidentally delete all data on your hard drive. dd if=/dev/random of=/dev/sda