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

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

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

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

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

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 5mo ago by Arpad Horvath‭  ·  edited 5mo ago by Arpad Horvath‭

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

50%
+0 −0
Can I confine an executable inside a Docker container using a host apparmor profile?

I'm trying to containerize an application that currently uses apparmor to confine Python. This allows sandboxing of user-submitted code. How can I get docker and apparmor to play well together? Cu...

0 answers  ·  posted 3mo ago by much‭

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

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

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

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

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 4d ago by Karl Knechtel‭

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

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‭

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

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

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

60%
+1 −0
Rename multiple files which have a variable suffix

I compressed some JPEGs with curtail it messed up the filenames. It was supposed to only add -min at the end but ended up adding a random string after the extension 😠: prs@PC:/DOWNLOADS/Pictures$ ...

3 answers  ·  posted 6mo ago by Pr. Sunflower‭  ·  edited 5mo ago by matthewsnyder‭

50%
+0 −0
How to securely erase data from a thumb (solid state) drive

How do you securely erase data from a thumb (USB/flash) drive? With traditional (magnetic/spinny) hard drives, it used to be that you could use various tools to simply overwrite with random data, ...

1 answer  ·  posted 8mo ago by matthewsnyder‭  ·  edited 8mo 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 29d ago by Mithical‭

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 10mo ago by happyborg‭  ·  edited 8mo ago by happyborg‭

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‭

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

71%
+3 −0
How to persist keyboard repeat rate and delay for external devices

Problem I want to set a global keyboard rate for both the X session and the console that persists for external keyboards, across plug-ins and removals. To my understanding, Xorg and console sett...

0 answers  ·  posted 1y ago by mcp‭  ·  edited 1y ago by Quasímodo‭

66%
+2 −0
Where does GtkFileChooserDialog store bookmarks?

I have some bookmarked folders in GtkFileChooserDialog. I want to add these to my dotfiles. Where are the bookmarks stored?

1 answer  ·  posted 7mo ago by matthewsnyder‭  ·  last activity 7mo ago by Quasímodo‭

60%
+1 −0
In i3wm, how do I move a workspace with its windows to another screen?

In i3, is there a way to move an entire workspace to another monitor, including all windows it contains?

0 answers  ·  posted 4mo ago by matthewsnyder‭

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

xdg
60%
+1 −0
In i3wm, how do I tell which screen is which workspace?

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. Both workspaces are highlighted a...

0 answers  ·  posted 4mo ago by matthewsnyder‭

60%
+1 −0
How to identify and separate standalone applications from libraries in Linux package lists?

I want to generate a list of trending Arch/AUR packages that focuses on user-facing applications rather than background libraries and dependencies. I wrote a script that uses the data from pkgstat...

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

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

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

50%
+0 −0
Run command with Key Combination in Gnome

Is there a way in Ubuntu (22.04) to run a given bash command for a given Key combination in Gnome (42.9)? This Ubuntu is running in Hyper-V on a Win10 host. (I would like to run the setxkbmap us a...

1 answer  ·  posted 5mo ago by Arpad Horvath‭  ·  last activity 5mo 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 1mo ago by alx‭  ·  last activity 1mo ago by r~~‭

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

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

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

60%
+1 −0
How to open a port in firewalld?

How to open a port when using firewalld as the system firewall?

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

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

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

77%
+5 −0
How to convert Flac to Mp3 with FFmpeg?

I have a directory filled with Flac audio files and I would like to convert them all to Mp3. How do I go about this using FFmpeg? I am using the git FFmpeg and Slackware -current.

2 answers  ·  posted 10mo ago by andrew.46‭  ·  last activity 10mo ago by matthewsnyder‭

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

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

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 9mo ago by matthewsnyder‭  ·  closed 9mo ago by Quasímodo‭

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 8mo ago by matthewsnyder‭  ·  last activity 8mo 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 4mo ago by David‭  ·  last activity 17d ago by Mithical‭

66%
+2 −0
How do I make media keys work with PipeWire?

My keyboard has keys for mute, volume up, volume down. In i3wm, I used to have these bound with: bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +10 --max-volume 100 ...

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

66%
+2 −0
Getting a Module Error When Running Pytest Even Though the Module is Installed in the Current Virtual Environment

Hello everyone, I am encountering an issue when running pytest in my virtual environment. Although I have installed the required modules in my virtual environment using pip, I am still getting a M...

0 answers  ·  posted 9mo ago by ShadowsRanger‭  ·  edited 9mo ago by ShadowsRanger‭