Quick tip for the author and those reading, instead of doing as in the article noted e.g. sudo nano
or the like, you can use sudoedit
(or sudo -e
). The advantage of this is that it will use whatever you have configured as an editor (through $SUDO_EDITOR
, $VISUAL
or $EDITOR
), and will use your configuration files while editing instead of root's, meaning if you have a sick custom neovim or emacs setup you don't have to keep those settings files in sync with the root account. ;)
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
More than that, your editor doesn't run with root permissions, which reduces the risk of accidentally overwriting something you didn't mean to.
Almost 6 years using Linux exclusively, and I had no idea this existed. You just messed me up bad. I'm going to have so much fun with this.
Thank you so much.
Holy moly
I use it at work with many servers like
EDITOR=vim sudo -e /etc/samba/smb.conf
However useful when you need some color highlighting or just numers then add it to .vimrc
and EDITOR=vim
in Bash config.
Oh wow, this is amazing info. Thanks!
I like that article, I'm in a similar position at the moment. I've been using Mint on my Nvidia machine for a long time now, but with the new Mint 22 update that's also based on Ubuntu 24.04, I'm facing similar issues and so I've done some distrohopping over the past couple of weeks. I've tried Aurora/Bazzite and Nobara as Fedora based distros, Garuda and CachyOS as Arch based ones, OpenSUSE Tumbleweed and probably something else I can't remember right now. All of them were great distros but had certain flaws that were offputting somehow. And I'm in no rush, since Mint 21.3 is still supported for a while.
I'm still open to suggestions what to try next! I'm getting faster and faster with fresh installs :)
Doesn't #LMDE avoid Ubuntu if that's what you are looking at doing ? And cones from Debian itself.
Yes of course, that's always an option. I was just trying to look over my Mint horizon and check out other distros and how they work. Exciting!
Interesting, thanks! Never heard of Nitrux before.
Yes that's true. I just realised that I apparently tinker too much to use an immutable distro as of now. But I'm definitely keeping an eye on them.
The one I'm personally keeping an eye on is a future Universal Blue distro that's being built with Cosmic. It's not officially released to the public, but it's quietly doing automatic builds in their GitHub repository.
For those times when I want something elegant, polished and mostly set to stay the same with very little customization, I go with Elementary OS. It’s really sweet.
OS 8 should hopefully be out in September. I'm looking forward to trying it out with the Wayland session.