Search
flatpak uninstall --unused currently tells me that there is Nothing unused to uninstall. This seems wrong to me, based on the list of packages I see vs. the "root" packages I explicitly installed p...
Neomutt (and probably Mutt too, but I didn't try) seems to be hiding header fields from email, such as the Message-ID field, and fields that are added by SMTP servers when they receive the message....
I think that you have two options. The literal answer would be to pass video= to the kernel. For example, you could pass video=720x400 to run the framebuffer at a 720x400 resolution, assuming that...
Neat idea. In favour. Bottom-up is better I'd propose bottom-up here, instead of grand idea to strive for. I'd cut the list of topics down to real basics. I agree with @KarlKnechtel on Git. I'...
I wasn't there two decades ago when the spec was first being developed, but based on other parts of the spec they're clearly attempting to establish a parallel with /usr/local. The intended minimal...
What is a modern and practical way to handle scheduling tasks on a Linux desktop? Modern means basic features should not rely on obscure or convoluted commands and standards Practical means you...
Say I have some Bash function my-func, that expects a filename and does some processing on the corresponding file. For demonstration purposes, my-func() { cat "$1"; } If I want to apply that fu...
Specific answer: Use gvim -f. General answer: Use the non-forking mode of your editor, i.e. if you run it in a terminal, it should wait until the editor is closed to return back control to you. E...
In some cases, when you want to apply a pipeline or a complex command to each file, I find it useful to use while read: find . -type d \ | while read d; do find $d -type f -maxdepth 1 \ | hea...
I'm trying to run a pipeline to update a PDF after every push to the 'main' branch. I want it to be atomic, so it doesn't touch the existing PDF until it has finished, so I need to use sponge(1) (...
iterate through all chapter-*.xhtml files in a directory Assuming bash, and assuming that at least one such file exists in the current directory (otherwise adjust the path and/or shopt -s ...
This isn't exactly what you asked, but the letters-too-small problem could also be solved by using a larger console font. Here is a decent overview of how to change console fonts, though I don't k...
Sorry it was a typo, _ instead of -, that caused the problem. I want to have a key combination to alter the keymaps. It worked with one for us and one for hu, but now I want to use one key combina...
Is this what you want? Edit: Credit to Kamil Maciorowski for catching an unsafe interpolation in the previous draft; it will work for non-adversarial inputs but this newer version is safer and a ...
In Bash, you could use the $COLUMNS environment variable to detect the width of your terminal and truncate each line to that length in your sed script. Something like this should work: sed "s/^\(....
How can I run a command later? I'm looking for a CLI way to schedule a command to be run later. I know that I could create a systemd timer, install it, activate it... That is too much work. I want...
The ancient utility find should come installed on the majority of distributions. Technically, find recursively locates all files and directories under a path, and prints their full paths. It is of ...
I have some bookmarked folders in GtkFileChooserDialog. I want to add these to my dotfiles. Where are the bookmarks stored?
tl;dr: Find the .desktop file that you are currently running It is probably in a system location, so copy it to a user location Modify the file contents The normal way to create icons for...
I have an image (a photo) and I want to highlight certain parts of this. I want to do this from the CLI. I am planning to store the pixel coordinates of polygon vertices in a file, and when I run ...
Assuming that systemctl start $SERVICE.service returns right away (some [poorly] written StartExec commands do not), you can run this: systemctl start $SERVICE.service & journalctl -f -u $SERV...
I was told that an IPv6 link-local address — typically starting with fe80:: — is derived from the interface's MAC address. Here are some instruction on how to do the conversion. But the conversion...
Restarting NetworkManager should be enough: sudo systemctl restart NetworkManger
I somehow managed to unknowingly change the default app for opening directories on my laptop. E.g. when I use the option open containing folder in a program like Evince, my editor (vscode) opens u...
What is the simplest shell idiom for stripping leading and trailing whitespace from a file or program output? Ideally I am looking for the equivalent of trim or strip methods in some languages. Th...