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

62%
+3 −1
init process play a role in the booting of Linux

How does the init process play a role in the booting of Linux?

1 answer  ·  posted 2mo ago by trueframe‭  ·  last activity 2mo ago by Mithical‭

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

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

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

66%
+2 −0
Find out which process is using a port

Sometimes your programs fail because the network port they are trying to use is already in use by some other process. How to find out what this other process is?

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

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 3mo ago by mcp‭  ·  edited 3mo ago by mcp‭

75%
+4 −0
VISUAL=gvim makes crontab -e open a new crontab instead of a current one

My VISUAL setup interferes with my cron jobs. crontab -l works all right, I see my previous jobs. crontab -e, crontab -e -u user-here - opens GVIM on an empty file checked cron.allow or .deny,...

1 answer  ·  posted 5mo ago by LAFK‭  ·  last activity 5mo ago by Quasímodo‭

60%
+1 −0
In i3wm, how to create affinity between screens and workspaces?

I have multiple screens and I often connect and disconnect monitors while the system is running. i3 assigns a workspace to each monitor, but does so unpredictably. Sometimes my main monitor is work...

0 answers  ·  posted 5mo 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 14d 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 6mo ago by matthewsnyder‭  ·  last activity 6mo ago by Basile Starynkevitch‭

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

66%
+2 −0
How to debug audio issues with JACK on Linux

I am trying to debug an issue with audio playback in MuseScore. During this process, I realised that I had/have no clue about audio playback in Linux (or in general for that matter). I already le...

0 answers  ·  posted 2mo ago by mr Tsjolder‭  ·  edited 2mo ago by mr Tsjolder‭

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

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‭

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‭

71%
+3 −0
Internet connection and touchpad not working on Ubuntu 22.04 after a force shut down

After a force shutdown on Ubuntu 22.04, installed on a Lenovo Legion 5, the OS seems to have lost its ability to recognize the built-in touchpad or to connect to the internet. For the backstory......

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

50%
+0 −0
How to list the first x files in each directory

MWE With the following tree: l1 └── l2 ├── d0 │   ├── f0 │   ├── f1 │   ├── f2 │   ├── f3 │   ├── f4 │   └── f5 ├── d1 │   ├── f0 │   ├── f1 ...

3 answers  ·  posted 7mo ago by mcp‭  ·  last activity 6mo ago by matthewsnyder‭

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

50%
+0 −0
SSH key added to agent, but keeps asking for password

I have my key added to ssh-agent and they show up in ssh-add -l. When I try to actually SSH to a host that requires the key, I still get prompted for a password. I enter it again and again and it s...

1 answer  ·  posted 8mo ago by matthewsnyder‭  ·  last activity 8mo 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 22d ago by alx‭  ·  edited 22d ago by alx‭

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

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

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

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

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

71%
+3 −0
How to find your public IP address from command-line?

ip a command will conveniently show the addresses assigned to your network interfaces, but oftentimes this is not what the internet sees your machine as. So how to find your public IP address from...

3 answers  ·  posted 4mo ago by Iizuki‭  ·  last activity 2mo ago by Michael‭

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 2mo ago by Iizuki‭  ·  last activity 9d ago by Michael‭

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

66%
+4 −1
Simplest way of stripping leading/trailing whitespace from file or program output

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

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

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 8mo ago by AdminBee‭

66%
+2 −0
Solr crashes on startup with segmentation fault

I am trying to run Solr 9.5.0 on Windows Subsystem For Linux 2. It crashes with a Segmentation Fault and does not start. I can run it on Windows without an issue. Java version on WSL2: 17 Java ve...

1 answer  ·  posted 1mo ago by tarhalda‭  ·  last activity 1mo ago by tarhalda‭

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‭

60%
+1 −0
Is there a way to automatically normalize paths when extracting RARs?

I use unrar to extract rar archives sometimes: UNRAR 6.24 freeware Copyright (c) 1993-2023 Alexander Roshal Sometimes the archive root has several files, so if I do unrar x foo.rar it will...

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

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

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

pdf
66%
+2 −0
How to change the default app for opening directories in Gnome?

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

2 answers  ·  posted 8mo ago by mr Tsjolder‭  ·  last activity 8mo ago by matthewsnyder‭

66%
+2 −0
How to install mysql-server on Debian?

With Debian 12, it seems that mysql-server is not available in the "default" package distribution and thus, cannot be installed with sudo apt install mysql-server or sudo apt-get... (I know that ma...

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

71%
+3 −0
How to overwrite each line of STDOUT with the next one?

I wrote a filter program to overwrite each line with the next one. $ cat /usr/local/bin/ovr #!/bin/sh sed '2,$s/^/\x1B[1A\x1B[K/'; Here's the behavior: $ echo | ovr $ echo 'foo' | ovr ...

3 answers  ·  posted 7mo ago by alx‭  ·  last activity 6mo ago by Kamil Maciorowski‭

60%
+1 −0
When a command takes filenames as argument, how can I avoid creating temporary files?

Suppose I have a command that takes filenames as arguments, like: diff foo.txt bar.txt What if instead of actual files, I want to use the results of a command in each? I can use temporary files: ...

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

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

71%
+3 −0
How can I show hidden files and folders (with leading dot in name) on the desktop (actual desktop, not a window)?

I am using Linux Mint 20.3, with Cinnamon as a window manager. I have a folder named .pytest_cache on my Desktop: $ ls -1A | grep '^\.' .pytest_cache I know that if I open a Nemo window, navi...

0 answers  ·  posted 9mo ago by Karl Knechtel‭  ·  last activity 8mo ago by Mithical‭

50%
+0 −0
How to find user's id (UID)?

How to lookup user-id with the user's name? E.g. What's the UID of user linus?

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

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

60%
+1 −0
How to create systemd unit that depends on a website being up?

I'm going to write some systemd services. All of these can only be run if a certain website is up. I thought I could create a ~/.config/systemd/user/website.service this: [Unit] Description=Confi...

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

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

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

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

57%
+2 −1
Download packages for full system upgrade without installing

I noticed that downloading all the pacman packages for a full system install takes a lot of time, so I want to create a systemd time that will periodically download them for me. That way, most of t...

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