Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

General Q&A about Linux and Unix-like operating systems

Filters (None)
66%
+2 −0
How do I add a shortcut to run a program to my DE?

My DE has a bunch of programs in the start/applications menu. How can I add my own in there? For example, say I found a terminal command foo --bar --baz that does something I want. But I don't want...

1 answer  ·  posted 10mo ago by matthewsnyder‭  ·  last activity 10mo ago by matthewsnyder‭

desktop-environment
60%
+1 −0
Install and run Windows applications

How do I install and run Windows applications downloaded from a website? Windows applications do not run natively on Linux, but can be run using Wine. When downloading these applications from a we...

2 answers  ·  posted 10mo ago by Andreas demands justice for humanity‭  ·  last activity 10mo ago by matthewsnyder‭

windows wine
60%
+1 −0
How do I keep track of configuration changes?

Occasionally I ask how to do some configuration, and people tell me to do stuff like edit some config file in an XYZ directory. But if I configure everything this way, it will turn into a mess, and...

1 answer  ·  posted 10mo ago by matthewsnyder‭  ·  last activity 10mo ago by matthewsnyder‭

configuration best-practices
66%
+2 −0
How do I find the code of a keyboard key?

How do I find the exact code of a key on my keyboard?

1 answer  ·  posted 10mo ago by matthewsnyder‭  ·  last activity 10mo ago by matthewsnyder‭

keyboard-event x11 keyboard
66%
+2 −0
What happens on a modern Linux if you hibernate with less swap than RAM?

On a modern Linux system, what happens if you attempt to hibernate when your swap is smaller than your RAM? For example, say RAM is 16 GB and swap is 8 GB.

0 answers  ·  posted 10mo ago by matthewsnyder‭

linux swap hibernate
50%
+0 −0
How to run offlineimap with Python 3.11 on Arch?

Arch switched to Python 3.12 which broke offlineimap. I want to use Python 3.12 as the default on my system, but just offlineimap should run with an alternative Python 3.11 environment. Is it possi...

0 answers  ·  posted 10mo ago by matthewsnyder‭  ·  last activity 10mo ago by matthewsnyder‭

arch-linux python
66%
+2 −0
List remote container tags

How to list tags of a container in container registry using CLI tools? Kinda like you would browse them visually in dockerhub.

1 answer  ·  posted 10mo ago by Iizuki‭  ·  last activity 10mo ago by Iizuki‭

container
50%
+0 −0
Kmail creates files outside mail directory

When I create a new Maildir account in Kmail, pointing to /foo/bar, I expect it to create directories like: /foo/bar/cur /foo/bar/new /foo/bar/tmp /foo/bar/some-folder/cur /foo/bar/some-folder...

0 answers  ·  posted 10mo ago by matthewsnyder‭  ·  edited 10mo ago by matthewsnyder‭

kmail
50%
+0 −0
What is Kmail running in the background?

When I run Kmail on i3, and then close it, it appears to continue running some stuff in the background. For example, I periodically get notifications about new mail from dunst, even though I have c...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 10mo ago by Justin‭

kmail
66%
+2 −0
Keep OpenRGB profiles active after hibernation and shutdown

I have created a set of profiles in OpenRGB that set the RGB lights on the fans and LED strips inside my desktop case. This works as expected, however, the activation of a profile does not persist ...

1 answer  ·  posted 11mo ago by Andreas demands justice for humanity‭  ·  last activity 10mo ago by Justin‭

PopOS OpenRGB
60%
+1 −0
Show GPU usage in System Monitor

In PopOS's standard System Monitor application, how do I see the GPU usage? I can see the CPU, RAM, disk and network usage, and graphs for them, but GPU usage is listed nowhere. It's available in M...

1 answer  ·  posted 11mo ago by Andreas demands justice for humanity‭  ·  last activity 10mo ago by Justin‭

PopOS SystemMonitor
66%
+2 −0
Monitor computer temperatures

How do I read computer temperatures from my desktop in PopOS? Is there a terminal command, DE extension or GUI application that I can use for the purpose? The UEFI reports CPU, CPU case and motherb...

2 answers  ·  posted 11mo ago by Andreas demands justice for humanity‭  ·  last activity 10mo ago by Justin‭

gtk PopOS
75%
+4 −0
Auto-enable FN-toggling for the first N FN keys

How can I auto-enable FN-toggling for the first N FN keys? F7-F12 on my keyboard are used for audio control, while, many games that I play, use the lower FN keys. Therefore, I'd like to relieve mys...

2 answers  ·  posted 10mo ago by Andreas demands justice for humanity‭  ·  last activity 10mo ago by Michael‭

keyboard gnome PopOS
50%
+0 −0
Why are most distros so laggy on my Intel+NVIDIA laptop? [closed]

I've been distro hopping for years now. I love Fedora and Tumbleweed, but everything I've tried beyond Ubuntu is slow and jumpy, and even Ubuntu lags behind Windows 7, 10, and 11. Are the NVIDIA dr...

0 answers  ·  posted 11mo ago by Upgrade6082‭  ·  closed 10mo ago by Quasímodo‭

linux nvidia performance
66%
+2 −0
Control desktop fan speeds

How do I control my computer's fan speeds, including the case fans, and the CPU pump and fan speed? Moving from Windows on an Acer laptop, I am used to Acer's PredatorSense application which lets ...

0 answers  ·  posted 11mo ago by Andreas demands justice for humanity‭  ·  edited 11mo ago by Andreas demands justice for humanity‭

gtk PopOS
50%
+2 −2
Calculate the SHA1 checksum of a file

How to calculate the SHA1 digest of a file in a shell?

2 answers  ·  posted 11mo ago by Iizuki‭  ·  last activity 11mo ago by Iizuki‭

checksum sha1
66%
+2 −0
Stop Lutris from changing the screen scaling

Every time I open EA Games from within Lutris, the desktop's UI/screen scaling is reset from 150% to 100%. This is in PopOS running with a 4K resolution on a 4K screen. The resolution is not change...

1 answer  ·  posted 11mo ago by Andreas demands justice for humanity‭  ·  last activity 11mo ago by Andreas demands justice for humanity‭

Lutris UI-scaling PopOS
66%
+2 −0
Nerf an SSH login outside expected IP range

Can I restrict myself from certain actions when I SSH in from outside a certain IP range? For instance no sudo? Maybe with ~/.ssh/authorized_keys having a from="!1.2.3.4/26" option with some kind ...

1 answer  ·  posted 11mo ago by Michael‭  ·  last activity 11mo ago by Michael‭

ssh
60%
+1 −0
Can you put systemd units under a custom path?

The systemd manual gives a list of path where systemd looks for unit files. However, I want to isolate my units in a path of my own choosing. Is it possible to configure systemd to add some path t...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 11mo ago by Cadence‭

configuration systemd
81%
+7 −0
What unexpected things can happen if a user runs commands expecting a text file on input lacking a file-final newline?

It is often taught that in Unix/Linux text files should end with newline characters. The reason given (orally) to me by various sources was that "some commands (such as wc) assume or require a newl...

3 answers  ·  posted 1y ago by Lover of Structure‭  ·  last activity 11mo ago by mirabilos‭

posix text-processing newlines
66%
+2 −0
<!nocheck> meaning in Build-Depends

Trying to understand what exactly <!nocheck> does next to a package in build-depends (for example, Perl). Debian Wiki says: Terms can be negated by using an exclamation mark as a prefix ...

1 answer  ·  posted 2y ago by nteodosio‭  ·  last activity 11mo ago by mirabilos‭

debian packaging
45%
+9 −11
Which Linux system to use?

What factors should I consider when choosing a Linux distribution? In particular, how does my level of skill or familiarity with Linux influence this decision? For example, are there distributions...

5 answers  ·  posted 3y ago by deleted user  ·  last activity 11mo ago by Michael‭

linux system recommendation
80%
+6 −0
How to forward SSH access of one machine, through another, to the rest of a network?

I have a setup with two Raspberry PIs, a CM3 module with only a USB connection to the outside, and the Pi4 with a lot of connectors. I set up things such that CM3 functions as USB Gadget, and once...

3 answers  ·  posted 4y ago by CanisSomnolentus‭  ·  last activity 11mo ago by Michael‭

raspbian networking ssh
71%
+3 −0
How to invert command exit code?

How to apply a logical not to a shell command, e.g. in a Bash script? So if the command exited with 0 (success) I would like it to be changed to a non-zero value, and if it exited with a non-zero ...

1 answer  ·  posted 1y ago by Iizuki‭  ·  last activity 11mo ago by Quasímodo‭

shell shell-scripting
75%
+4 −0
How to run a command on a list of files?

Suppose I have a list of files on standard input. These may be the output of find, cat filelist.txt or something else. How can I run a command on each file in turn?

3 answers  ·  posted 2y ago by matthewsnyder‭  ·  last activity 11mo ago by Quasímodo‭

shell-scripting
75%
+4 −0
Close all desktop notifications

I'd like to hide/dismiss/remove all the notifications that applications like Signal have created. I know I can create notifications with, for example, notify-send -t 10000 "🤖 Here goes my message"...

1 answer  ·  posted 3y ago by Matthias Braun‭  ·  last activity 11mo ago by Quasímodo‭

libnotify
66%
+2 −0
How to show motherboard model?

Surely there exists a command to print out the system's mother board model? Opening up the chassis is not an option.

2 answers  ·  posted 11mo ago by Iizuki‭  ·  last activity 11mo ago by Matthias Braun‭

hardware motherboard
71%
+3 −0
Why is 32768-60999 the default for local/ephemeral ports?

The local port range on my Arch Linux installation is 32768-60999 according to cat /proc/sys/net/ipv4/ip_local_port_range Wikipedia states that this range is "used by many Linux kernels" and th...

0 answers  ·  posted 11mo ago by Matthias Braun‭  ·  edited 11mo ago by Michael‭

networking ports
71%
+3 −0
How to convert json to yaml?

How to convert a json file to yaml? Technically json is already valid yaml, but I'm talking about the characteristic easy-to-read yaml formatting with indentation and minimal quotes.

1 answer  ·  posted 12mo ago by Iizuki‭  ·  last activity 11mo ago by Iizuki‭

json yaml
60%
+1 −0
Is libostree practical for user files?

Is it practical to use libostree for user files? Or is it too specialized for tracking an entire OS? I am not familiar with libostree, but sounds like it's "Git for filesystem trees". Seems like t...

0 answers  ·  posted 11mo ago by matthewsnyder‭

libostree
66%
+2 −0
Systemd unit needs to start at boot but wait for network

I have a systemd unit that does some stuff on the internet. Sometimes this gets fired at startup. I want to make sure it's delayed until the computer is connected to the internet. In my notes I fo...

1 answer  ·  posted 12mo ago by matthewsnyder‭  ·  last activity 12mo ago by Iizuki‭

systemd
50%
+0 −0
Systemd service status if ExecStop or ExecStopPost fails?

Will the overall unit status be failed if either ExecStop or ExecStopPost fail? I would expect it to be so, but the documentation isn't very explicit about it.

1 answer  ·  posted 12mo ago by Iizuki‭  ·  last activity 12mo ago by Iizuki‭

systemd
60%
+1 −0
Moving the filesystem root to a different partition and booting from it

My primary drive is partitioned basically like so (only roughly to scale): / /home junk v v v |xx###############...

1 answer  ·  posted 12mo ago by Karl Knechtel‭  ·  last activity 12mo ago by Iizuki‭

boot partitioning
71%
+3 −0
How to count the lines of a file?

How to get the number of lines in a file? I.e. for a file like this: Line one Line 2 Final line I would like to do something like this: $ count-lines /path/to/the/file/above 3

2 answers  ·  posted 1y ago by Iizuki‭  ·  last activity 12mo ago by Michael‭

shell file
77%
+5 −0
What are the concrete security risks of forcibly terminating a process?

I'm using the Gnome System Monitor in Linux Mint. Whenever I attempt to "End" or "Kill" a process, I am given this warning via a modal dialog (emphasis mine): Killing a process may destroy data,...

2 answers  ·  posted 1y ago by Karl Knechtel‭  ·  last activity 12mo ago by Kamil Maciorowski‭

security kill
75%
+4 −0
How do I migrate my main filesystem to a new drive?

I want to switch hard drives. How do I migrate my root FS from the drive it's on, to the new one, so that everything is exactly as it is?

3 answers  ·  posted 12mo ago by matthewsnyder‭  ·  last activity 12mo ago by matthewsnyder‭

backup partitioning
50%
+0 −0
Pacman list files installed by a package

How to show a list of files belonging to a package with pacman?

1 answer  ·  posted 12mo ago by Iizuki‭  ·  last activity 12mo ago by Iizuki‭

arch-linux pacman
50%
+0 −0
Get notifications to dunst when systemd units fail

How can I get notifications to dunst when systemd units fail?

1 answer  ·  posted 12mo ago by matthewsnyder‭  ·  last activity 12mo ago by Iizuki‭

systemd dunst
60%
+1 −0
Manually trigger cron jobs

Do any of the cron implementations allow you to manually trigger cron jobs (stuff in your crontab) right now, in the exact same manner as they would have when triggered on their usual schedule, exc...

0 answers  ·  posted 12mo ago by matthewsnyder‭

cron
50%
+0 −0
How to get remote container image digest with skopeo?

How to get the (index) digest of a remote container image with skopeo? So this would be your normal container image in a container registry. E.g. in docker.io

1 answer  ·  posted 12mo ago by Iizuki‭  ·  last activity 12mo ago by Iizuki‭

container skopeo
66%
+2 −0
==> WARNING: Possibly missing firmware for module: 'foo'

When I create the initramfs, I sometimes see messages like: ==> WARNING: Possibly missing firmware for module: 'xhci_pci' I get many for different modules. What do they mean? Should I in...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 12mo ago by Iizuki‭

arch-linux pacman initramfs
77%
+5 −0
What is cat abuse/useless use of cat?

Sometimes I share Unix commands online, and people chastise me for "useless use of cat" (UUOC) or "cat abuse". My cat is quite comfy and doing very well, thank you. What are they talking about?

3 answers  ·  posted 1y ago by matthewsnyder‭  ·  last activity 12mo ago by Canina‭

cli
71%
+3 −0
Why/how can distro support lifetimes exceed the lifetime of their dependencies (such as Python)?

Motivating example: my Mint 20.3 distribution offers long-term support until April 2025, which matches the "standard support" offered for the upstream Ubuntu (20.04 "Jammy Jellyfish"). However, the...

2 answers  ·  posted 1y ago by Karl Knechtel‭  ·  last activity 1y ago by matthewsnyder‭

distributions release-cycle
71%
+3 −0
Can a malicious party add false recipients (who are listed but can't really decrypt) to an encrypted GPG message?

In gpg(1), one normally adds recipients of an encrypted message with --recipient. Those recipients will be able to decrypt the message, and their key ID will appear unencrypted, so anyone will kno...

0 answers  ·  posted 1y ago by alx‭  ·  edited 1y ago by alx‭

GPG
71%
+3 −0
How do you remap mouse buttons?

How can I remap buttons on my mouse, especially for more exotic ones like MMO mice?

3 answers  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by Michael‭

hardware mouse
60%
+1 −0
Group and users seem to disagree about whether the users are in the group

On my current setup (running Linux Mint 20.3 Cinnamon), I have an administrative user and several ordinary users. I intend for all of these users to be in the same group, which happens to have the ...

0 answers  ·  posted 1y ago by Karl Knechtel‭

groups users account-management
66%
+2 −0
How do you generate arbitrary random numbers from /dev/random?

Suppose I want to get random numbers from /dev/random with basic CLI tools. Is there a way to do it, that's easier to type and read than python -c 'import random; print(100 + 200*random.random())'?...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by r~~‭

cli random
71%
+3 −0
What are non-POSIX shells and what's the point of them?

I've been learning some Linux and I finally feel like I can find my way around the command line. But now I hear people say there are other, "non-POSIX" kinds of shell, with different semantics. Wha...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by matthewsnyder‭

shell posix cli
60%
+1 −0
How do you generate random strings from /dev/random?

Of course every language has some kind of random library... But can you generate custom random strings with just basic CLI tools? For example, we have /dev/random which provides a stream of random...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by matthewsnyder‭

cli random
60%
+1 −0
Prettify XML in a shell

How to pretty print XML in a shell? I have command-line tool which outputs XML in a single line, totally unreadable. I would like something to pipe this into, to turn it into human readable XML wi...

1 answer  ·  posted 1y ago by Iizuki‭  ·  edited 1y ago by Iizuki‭

shell xml