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)
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 3mo ago by Iizuki‭  ·  last activity 20d ago by Michael‭

60%
+1 −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 15h ago by Matthias Braun‭  ·  edited 11h ago by Matthias Braun‭

57%
+2 −1
How to change resolution of virtual terminal?

How can I rescale the Linux virtual terminals (ctrl + alt + {f1, f2, f3, f4, f5, f6}), so that a high-resolution display doesn't make the letters too small? I'd like to use 1080 or even 720 resolu...

2 answers  ·  posted 6mo ago by alx‭  ·  last activity 6mo ago by Canina‭

71%
+3 −0
How to debug NetworkManager issue after suspend/resume in Ubuntu 22.04

****Since upgrading to Ubuntu 22.04 recently, immediately after a reboot I have WiFi to an internet hotspot as I did prior to upgrading. After suspend then resume, the network is no longer working...

2 answers  ·  posted 11mo ago by happyborg‭  ·  edited 9mo ago by happyborg‭

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

71%
+3 −0
How do I diagnose TLS errors?

For reasons of my own, I have services on my LAN which use HTTPS and I create my own certificates for these. Over the years, the usage of TLS has evolved considerably. Many features that were once...

1 answer  ·  posted 2mo ago by matthewsnyder‭  ·  last activity 2mo ago by Michael‭

71%
+3 −0
Increase incorrect login attempts before locking account

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

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

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

60%
+1 −0
Why does $XDG_DATA_HOME default to ~/.local/share?

Why does XDG_DATA_HOME default to ~/.local/share? Why not something less cryptic, like ~/.data? Why did they decide use that path?

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

xdg
60%
+1 −0
How to fix the dark mode after the Gnome 1:44 update?

I recently updated Gnome to 1:44.0 and since the update my dark mode settings seem to be ignored for Gnome applications. When setting the dark style in Settings > Appearance, the desktop backgr...

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

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‭

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‭

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
Do you still need to update archlinux-keyring before pacman -Syu?

For some time pacman used to have a problem where: Occasionally Arch maintainers introduce new GPG keys They start signing packages with the keys Your local pacman doesn't receive these until ...

0 answers  ·  posted 9mo ago by matthewsnyder‭

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

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

50%
+0 −0
How to check spam headers of EML file from command line?

If I have an email in EML format, how can I determine its spam status from the terminal? My mail provider appears to insert a X-Acme-Spam-Status header. It looks like X-Acme-Spam-Status: v=1; e=b...

0 answers  ·  posted 4mo ago by matthewsnyder‭

60%
+1 −0
How to create ed25519 subkey in GPG?

At the moment GPG only offers the following options when generating a new subkey the with the addkey command: gpg> addkey Please select what kind of key you want: (3) DSA (sign only) (...

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

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

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

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

60%
+1 −0
Why is there a mono version of Inconsolata?

After installing the InconsolataGo font from the Arch package extra/ttf-inconsolata-go-nerd, I see there is an Inconsolata Nerd Font, Regular and an Inconsolata Nerd Font Mono, Regular. Both are mo...

0 answers  ·  posted 11mo ago by matthewsnyder‭

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

0 answers  ·  posted 3mo ago by matthewsnyder‭

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‭

77%
+5 −0
Copy to clipboard from terminal with Vim bindings

Question How do I copy to clipboard from terminal with yy, assuming it's configured to use Vim bindings? I am using zsh with bindkey -v. MWE Enter something on the commandline (without pressi...

2 answers  ·  posted 1y ago by mcp‭  ·  last activity 9mo ago by Mithical‭

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 9mo ago by zetyty‭  ·  edited 9mo ago by matthewsnyder‭

60%
+1 −0
How to start MariaDB (or MySQL) server on a WSL using systemctl?

When I try to start MariaDB server (same problem with MySQL) on a fresh Debian 11 install in a Windows Subsystem Linux (WSL) I got the following error: $ sudo systemctl start mariadb System has n...

2 answers  ·  posted 10mo ago by zetyty‭  ·  last activity 10mo ago by matthewsnyder‭

75%
+4 −0
How to extract string from file, run filter, and replace in file with new value?

TASK I am coding up ebooks to a specific standard, and have a script that converts a string into the correct titlecase for this publisher. When working with some public domain source files, one of...

4 answers  ·  posted 5mo ago by David‭  ·  last activity 2mo ago by Mithical‭

60%
+1 −0
Is it safe to completely take over ~/.config/systemd/user?

~/.config/systemd/user intended purely for units created and managed by the user manually, or are there any automated processes that expect to control it? For example, do packages or programs ever...

0 answers  ·  posted 5mo ago by matthewsnyder‭

66%
+2 −0
What does the "Valid" column mean in the output of "faillock"?

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

1 answer  ·  posted 9mo ago by matthewsnyder‭  ·  edited 9mo ago by AdminBee‭

66%
+2 −0
Can rsync handle moves and renames?

Suppose I have a directory structure like ├── src │   ├── folder_a │   │   ├── file_w │   │   └── file_x │   ├── folder_b │   │   ├── file_y │   │   └── file_z and I back it up using rsyn...

1 answer  ·  posted 3mo ago by Karl Knechtel‭  ·  edited 3mo ago by Karl Knechtel‭

60%
+1 −0
Do I have to update Guix frequently like Arch?

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

0 answers  ·  posted 9mo ago by matthewsnyder‭  ·  edited 9mo 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 14d ago by Iizuki‭  ·  last activity 14d ago by Iizuki‭

60%
+1 −0
After update, OpenGL does not work until reboot

Whenever I do a big system update, OpenGL stops working until the next reboot. This also prevent OpenGL apps from launching. Example: $ glxgears X Error of failed request: BadValue (integer par...

0 answers  ·  posted 11mo ago by matthewsnyder‭

50%
+0 −0
Low impact trial installation of Guix to test hardware compatibility

I like how Guix sounds based on what I've read, and I want to try it. However, my partitioning scheme is a bit complicated. With Guix it appears like my biggest concern is hardware (I will regretta...

0 answers  ·  posted 9mo ago by matthewsnyder‭

60%
+1 −0
PipeWire separates the audio of every program, how do I combine them?

I uninstalled PulseAudio and installed PipeWire. It seems like now, every application gets an independent audio configuration. When I go into pavucontrol I see "Spotify" where I configure the volu...

0 answers  ·  posted 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
50%
+0 −0
How to let systemd user unit see keys in SSH agent?

I have a script that does git fetch for a repository. When I run this in my shell it works fine. I want to run it in a systemd user unit. However, I am using an SSH url, and the systemd unit fails...

0 answers  ·  posted 9mo ago by matthewsnyder‭

83%
+8 −0
Are there any legitimate uses for newlines in filenames?

Unix is very permissive with filenames, and this can sometimes lead to a bunch of annoying corner cases when printing files. A well known example is when you put a newline in a filename, and it bre...

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

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

66%
+2 −0
How do I set up my own DNS on my LAN, with delegation of public domains?

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

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

dns
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 6mo ago by matthewsnyder‭  ·  last activity 6mo ago by Basile Starynkevitch‭

33%
+0 −2
Is PipeWire easier to use than PulseAudio? [closed]

I have always found PulseAudio to be difficult to use and overcomplicated. Recently I also discovered that it is written by Lennart Poettering, whom I dislike. I am now very motivated to use someth...

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

66%
+2 −0
Alternating 2 keyboard layouts with Key Combination

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

1 answer  ·  posted 6mo ago by Arpad Horvath‭  ·  edited 6mo ago by Arpad Horvath‭

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

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

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

2 answers  ·  posted 6mo ago by Iizuki‭  ·  last activity 2d ago by trueframe‭

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

50%
+0 −0
How do you eval SSH agent output in fish?

SSH agent prints some envar commands for sourcing in a shell. However, these are bash-style, and I use fish. Fish barfs at the bash syntax. How can I fix it?

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

60%
+1 −0
How do I globally configure consistent DPI for GUI apps?

How do I configure my system so that all GUI apps use a consistent DPI, without configuring each app individually?

0 answers  ·  posted 8mo ago by matthewsnyder‭