Search
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...
Guix is a rolling release distro. Another well known rolling release distro is Arch Linux. In Arch, you are expected to frequently do system updates. Partial updates are not supported. In my exper...
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 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 ...
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 ...
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...
Restarting NetworkManager should be enough: sudo systemctl restart NetworkManger
I have some bookmarked folders in GtkFileChooserDialog. I want to add these to my dotfiles. Where are the bookmarks stored?
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...
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...
I want to have a local DNS server on my home LAN, say at 192.168.1.123. All of my machines will use 192.168.1.123 as their only DNS server when connected to my home network. By default, my DNS ser...
My goal is to use a french AZERTY keyboard layout with Arch linux and Gnome desktop environment but use US English as "OS language". Note that I am also open to a "working" solution on any other d...
I was looking into unlocking my login after too many incorrect password attempts. I found this post about it. Doing faillock -user $(whoami) --reset did indeed unlock the login. However, what exac...
A good explanation is given on the RedHat Customer Portal. TL/DR: The Valid field indicates whether a record counts toward the lockout threshold (V) or not (I). The key seems to be the meaning of ...
Perl 5's /x modifier ignores whitespace in the regex, but it doesn't seem to ignore whitespace in the replacement (and I don't know enough perl to fix this). However, if you want to match whitespac...
The special Fn keys typically trigger ACPI events, for which the ACPI daemon can trigger actions. Install ACPI daemon (apt install acpid) and make sure it is started and enabled. If it isn't, sy...
I am running Debian stretch on a Lenovo laptop with only a window manager (i.e. no desktop). Out of the box, this configuration of Debian ignores the keys with special Fn functions, such as volum...
Each file descriptor can only point to a single file. File descriptors can be duplicated such that both point to a single file, but a file descriptor cannot point to two files. Hence, you have ...
If I want to yank my last command I can UP yy, but this does not copy to the system clipboard. How do I configure my terminal to copy to the system clipboard so I can paste into other programs? ...
I have upgraded Xubuntu from 20.04 to 22.04 and my compose key, which defaulted to Shift + AltGr, was disabled. It is no longer available in the keyboard settings GUI either. How can I set the com...
unzstd yourfilename.zst works fine sudo apt-get install zstd or similar is likely to be needed
I just want to "zoom in/out" in the text console, is there a straightforward command to do that? I have found various sources (1, 2, 3) that either suggest permanent changes (e.g. modifying config...
To double the font size: setfont -d. To revert to the default font: setfont. From the manual page: -d Doubles the size of the font, by replicating all of its pixels vertically and ho...
I have some old X11 applications complain that they cannot find a ISO8859-2 font. So I executed grep -r 8859-2 /usr/share/fonts/ and, to my surprise, found many matches, for example ==> /us...
Brew's deps command might help: brew deps --installed will list out top-level packages and their installed dependencies. Note that some of the top-level packages might be dependencies for other t...