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)
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 16d ago by matthewsnyder‭

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 2mo ago by matthewsnyder‭  ·  last activity 2mo ago by matthewsnyder‭

60%
+1 −0
How to use the gitignore file without git(1).

How can a file list be manually filtered with a gitignore file. I want to do the equivalent of git ls-files, but it should work even if I remove .git, so I can't use git(1). Currently, I'm doing ...

1 answer  ·  posted 3mo ago by alx‭  ·  last activity 3mo ago by r~~‭

66%
+2 −0
Does Fedora have cutting edge features, and what makes it so?

I saw another post recommend using Fedora if you want cutting edge features. Is Fedora really a "cutting edge" distro? I am not very familiar with Fedora, I know it's a community counterpart to R...

0 answers  ·  posted 16d ago by matthewsnyder‭  ·  edited 16d ago by matthewsnyder‭

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 24d ago by Iizuki‭  ·  last activity 24d ago by Iizuki‭

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 2mo ago by matthewsnyder‭  ·  last activity 2mo ago by r~~‭

40%
+2 −4
Why does Linux use the sudo command?

Why does Linux use the sudo command?

1 answer  ·  posted 3mo ago by catexotica‭  ·  last activity 3mo ago by matthewsnyder‭

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 1mo ago by matthewsnyder‭

66%
+2 −0
Modern and practical way to schedule tasks on a Linux machine that is not always on

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...

3 answers  ·  posted 5mo ago by matthewsnyder‭  ·  edited 5mo ago by matthewsnyder‭

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 1mo ago by alx‭  ·  edited 1mo ago by alx‭

GPG
50%
+0 −0
ldapsearch: how to ignore certificate?

How to ignore server certificate when using ldapsearch command-line tool? Of course this isn't something you should be doing regularly, but it would be a handy asset for troubleshooting.

1 answer  ·  posted 3mo ago by Iizuki‭  ·  edited 3mo ago by Iizuki‭

66%
+2 −0
What are the %U and %u parameters in desktop files?

Desktop files always have either %u or %U as an argument for the program being launched. E.g. here's a line from my firefox.desktop: Exec=/usr/lib/firefox/firefox %u What does it mean?

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

60%
+1 −0
How to prevent keyboard layout modifications from affecting external keyboards

Using For the console: /etc/vconsole.conf ---- KEYMAP=dvorak For X Session: .xinitrc ---- setxkbmap -layout us -variant dvorak & Problem For the console, it applies the dvorak lay...

0 answers  ·  posted 6mo ago by mcp‭  ·  edited 6mo ago by mcp‭

60%
+1 −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 16d ago by Michael‭  ·  last activity 4d ago by Michael‭

ssh
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 24d ago by matthewsnyder‭  ·  last activity 20d ago by Iizuki‭

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 2mo ago by Iizuki‭  ·  edited 2mo ago by Iizuki‭

71%
+3 −0
NetworkManager can't open certificate file when trying to connect to VPN

I want to connect to my university network via OpenVPN under Fedora GNOME. I imported the openvpn configuration provided by the university in the Network Manager GUI and specified the user certifi...

0 answers  ·  posted 2mo ago by adonias‭  ·  edited 2mo ago by Quasímodo‭

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 3mo ago by matthewsnyder‭  ·  last activity 2mo ago by Michael‭

75%
+4 −0
What's the point of faillock?

On a default Arch install, faillock makes it so that if you enter the sudo password wrong too many times, even the correct password will be rejected until the timer is up. At the same time, you ca...

0 answers  ·  posted 3mo ago by matthewsnyder‭

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 2mo ago by Karl Knechtel‭

71%
+3 −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 1mo ago by matthewsnyder‭  ·  last activity 1mo ago by matthewsnyder‭

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 1mo ago by matthewsnyder‭  ·  last activity 1mo ago by Iizuki‭

50%
+0 −0
How to get a mailto: URI out of abook(1)

I store my address book with abook(1). https://manpages.debian.org/bookworm/abook/abook.1.en.html Let's say I want to introduce some contact in some field that accepts the usual name <email&gt...

1 answer  ·  posted 8mo ago by alx‭  ·  last activity 7mo ago by alx‭

66%
+2 −0
How to see all header fields of an email in mutt?

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....

1 answer  ·  posted 8mo ago by alx‭  ·  edited 8mo ago by matthewsnyder‭

50%
+0 −0
Albert with compositor surrounded by ghost of other windows

On Arch Linux, I installed albert (from AUR) and picom as the compositor. I am using i3 as the window manager. When I bring up the albert window, it is surrounded by the ghost of a window in the b...

0 answers  ·  posted 5mo ago by matthewsnyder‭

60%
+1 −0
Lynis says my /etc/issue is weak - how to strengthen?

When hardening my system with Lynis I had information about /etc/issue and /etc/issue.net being found weak. Lynis redirects me to Enterprise, which is a paid product and a bit overkill for my home...

1 answer  ·  posted 6mo ago by LAFK‭  ·  last activity 6mo ago by LAFK‭

66%
+2 −0
Are NixOS and Guix analogous projects?

From what I can tell, both NixOS and Guix are built around a package manager which, instead of installing package into the "common environment" as is traditional, isolates them to mitigate issues a...

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

66%
+2 −0
Run pipeline in the background from git hook

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) (...

1 answer  ·  posted 6mo ago by alx‭  ·  last activity 6mo ago by alx‭

66%
+2 −0
How can I get a Flatpak dependency graph?

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...

0 answers  ·  posted 8mo ago by Karl Knechtel‭

50%
+0 −0
How do you terminate a DHCP lease in OpenWrt?

I am testing some DHCP stuff, and I want to manually end a lease so I don't have to wait hours for them to expire. How can I do this with OpenWrt?

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

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 1mo ago by Iizuki‭  ·  last activity 13d ago by Iizuki‭

66%
+2 −0
How to change the keyboard layout with Gnome and Arch linux?

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...

2 answers  ·  posted 10mo ago by zetyty‭  ·  edited 10mo ago by matthewsnyder‭

77%
+5 −0
How can I restrict filename characters?

Suppose I want to limit what characters are allowed in filenames. For example, I want file creation to fail if there is a \n in the name. Is there a way to enforce this? If it matters, I prefer a...

2 answers  ·  posted 7mo ago by matthewsnyder‭  ·  last activity 7mo ago by Basile Starynkevitch‭

60%
+1 −0
How do I find files?

How can I search for files on my system? Ideally, I would like to search by various criteria, like date, name, extension, etc.

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

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 28d ago by Karl Knechtel‭  ·  last activity 26d ago by Iizuki‭

60%
+1 −0
Starts systemd service and follow log

I can start services with systemctl start. I can see logs with systemctl status or journalctl. But by the time I run the second the process has already started. I'd like to start a service and imme...

2 answers  ·  posted 9mo ago by matthewsnyder‭  ·  last activity 9mo ago by AdminBee‭

50%
+0 −0
How to add a new drive to a BTRFS filesystem?

BTRFS is capable of spanning over multiple drives. How to add one more to an existing filesystem?

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

66%
+2 −0
What is synchronization in Wine?

Wine has options for "Synchronization", like "Esync" or "Fsync". What do these actually do? What is the purpose of such an option? What is the impact to normal usage of a Windows program in Wine?

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

75%
+4 −0
Can I enter raw strings in fish to avoid escaping regexes for sed?

When running sed through fish, I often encounter a problem with regexes. Many commonly used regex control characters like []{}().+ need to be escaped, even if I type the regex in a single quoted st...

2 answers  ·  posted 11mo ago by matthewsnyder‭  ·  last activity 11mo ago by terdon‭

50%
+0 −0
How to see VRAM with inxi?

What switches do I need to add to see my video RAM (VRAM) with inxi? inxi -G shows my video card model and other info, but not video RAM.

1 answer  ·  posted 7mo ago by matthewsnyder‭  ·  last activity 6mo ago by matthewsnyder‭

66%
+2 −0
Run a command *later*

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...

2 answers  ·  posted 9mo ago by matthewsnyder‭  ·  last activity 9mo ago by Canina‭

60%
+1 −0
An alternative to pacman sudo nag?

Some pacman functions require sudo. When I forget the sudo, you get: error: you cannot perform this operation unless you are root. I then have to press the keys: up, home, s, u, d, o, space, en...

2 answers  ·  posted 4mo ago by matthewsnyder‭  ·  last activity 3mo ago by TowerOfTurtles‭

75%
+4 −0
How do I tweak the start parameters of GUI apps?

There are many GUI apps on my computer that show up as eg. items in the start menu. When I launch these, what if I want to control how exactly they are launched, such as setting environment variabl...

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

50%
+0 −0
How can I change the timeout after too many incorrect login attempts?

When I enter the login password incorrectly 3 times, my computer locks me out from attempting a login for 10 minutes. How can I change the timeout?

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

60%
+1 −0
How to tile multiple small page PDFs on a single standard size PDF?

Suppose I have a PDF which is 2x3 in. I want to create a PDF with a single page, which has multiple copies of this. For example, if the small pieces are in landscape, and the large page is in portr...

0 answers  ·  posted 7mo ago by matthewsnyder‭

pdf
60%
+1 −0
How to find product and vendor names for xorg.conf

Problem How do I find product and vendor names for use with a xorg.conf file? Neither the xorg.conf nor the xinput manuals specify how to do this. xinput lists info, but the output lacks column ...

0 answers  ·  posted 4mo ago by mcp‭  ·  edited 4mo ago by mcp‭

60%
+1 −0
Ergonomic way to search man pages

You often have to read man pages to use Linux/Unix software. However, many man pages are not easy to read. They are very long, not always conveniently arranged, and man does not appear to have any ...

3 answers  ·  posted 9mo ago by matthewsnyder‭  ·  last activity 7mo ago by alx‭

60%
+1 −0
How to fix DPI for Spotify

Spotify runs on my computer with higher DPI (bigger UI elements) than I'd like. How can I reduce it?

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

66%
+2 −0
Higher-order functions in Bash?

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...

1 answer  ·  posted 8mo ago by Karl Knechtel‭  ·  last activity 8mo ago by Kamil Maciorowski‭

60%
+1 −0
What does Gnome Disks "erase" do?

When formatting drives with Gnome Disks, there is an option to "Erase". The help text says this takes longer, but "completely" erases data. What exactly does this option do? Is there a CLI equival...

1 answer  ·  posted 9mo ago by matthewsnyder‭  ·  last activity 9mo ago by mr Tsjolder‭