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 »

Posts by matthewsnyder‭

132 posts
83%
+8 −0
Q&A 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 11mo ago by terdon‭

Question filesystem
80%
+6 −0
Q&A How do I view fonts?

How can I view font files, like .ttf, in Linux? I'd like to see a sample of the font (quick brown fox...) and metadata about it (like exact name).

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

Question arch-linux fonts
77%
+5 −0
Q&A 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‭

Question filesystem
77%
+5 −0
Meta Suggestion: Basic Linux skills compendium

We are all Linux users and enthusiasts on this site, as well as caring about FOSS. Although technically this is a site for technical Q&A, I think some level of Linux activism is possibly benefi...

3 answers  ·  posted 8mo ago by matthewsnyder‭  ·  last activity 6mo ago by LAFK‭

Question discussion
77%
+5 −0
Q&A 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 2mo ago by matthewsnyder‭  ·  last activity 1mo ago by Canina‭

Question cli
77%
+5 −0
Q&A When a command takes filenames as argument, how can I avoid creating temporary files?

What you're looking for is called process substitution. In Bash and many bash-like shells, you can use <(foo_command --with --arguments) instead of the file path: diff <(ls /home/alice) &lt...

posted 11mo ago by matthewsnyder‭  ·  edited 11mo ago by BryKKan‭

Answer
77%
+5 −0
Q&A How to run a command on a list of files?

There are several options, like xargs and for. I'll leave those for other answers and only describe my favorite, GNU Parallel. You will have to install it separately, because unlike the inferior xa...

posted 11mo ago by matthewsnyder‭  ·  edited 11mo ago by matthewsnyder‭

Answer
75%
+4 −0
Q&A 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‭

75%
+4 −0
Q&A 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 2mo ago by matthewsnyder‭

Question security sudo
75%
+4 −0
Meta shell and shell-scripting tags: duplicates?

My assumption has been that shell-scripting is for scripts only, not interactive usage. Whereas shell is everything else, like interactive usage. I wish we could edit these descriptions to clarify...

posted 7mo ago by matthewsnyder‭

Answer
75%
+4 −0
Q&A 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‭

75%
+4 −0
Q&A 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 11mo ago by matthewsnyder‭  ·  last activity 5d ago by Quasímodo‭

Question shell-scripting
71%
+3 −0
Q&A 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‭

Question shell posix cli
71%
+3 −0
Meta How can we grow this community?

Don't answer too many questions Avoid major tag gaps Keep the front page lively. My armchair analysis is that the funnel for this site is like this: User gets linked from internet search ...

posted 11mo ago by matthewsnyder‭  ·  edited 15d ago by matthewsnyder‭

Answer
71%
+3 −0
Q&A 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‭

Question home-server tls
71%
+3 −0
Q&A 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‭

Question hardware mouse
71%
+3 −0
Q&A 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 30d ago by matthewsnyder‭

Question backup partitioning
71%
+3 −0
Meta Suggestion: Basic Linux skills compendium

My thoughts on the matter are clear from the question, but I'll add some example topics that could be covered by this "basics compendium": A "curriculum" of sorts that lists all the basic topics...

posted 8mo ago by matthewsnyder‭  ·  edited 8mo ago by matthewsnyder‭

Answer
71%
+3 −0
Q&A How to get a new IP address from DHCP?

How do I make my computer request a new IP from DHCP? I am using Arch with NetworkManager.

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

71%
+3 −0
Q&A 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 10mo ago by matthewsnyder‭  ·  last activity 10mo ago by r~~‭

Question arch-linux password
71%
+3 −0
Q&A What unexpected things can happen if a user runs commands expecting a text file on input lacking a file-final newline?

I tried to think of some for a while, but couldn't find any good ones. That said, there's plenty of programs I don't know. For reference: $ echo -en "hello\nworld" | tee 1.txt | bat -A ───────┬──...

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

Answer
71%
+3 −0
Q&A How to install mysql-server on Debian?

MySQL is not fully open source and maintained by a corporation which was at one time regarded as very evil (there are much worse ones now). Debian is trying to protect you from yourself by not lett...

posted 10mo ago by matthewsnyder‭

Answer
71%
+3 −0
Q&A Why do many Windows games fail when the network is sandboxed?

I run Windows games with Wine, and use bwrap to sandbox them. I've noticed that passing --unshare-net to disable the network breaks many, many games (they fail to start with no obvious error messag...

0 answers  ·  posted 11mo ago by matthewsnyder‭  ·  last activity 9mo ago by Mithical‭

Question networking wine
71%
+3 −0
Q&A How do you troubleshoot bwrap/wine sandboxes for Windows games?

I use Wine to play Windows games. As is well known: Wine is not a sandbox Windows games are proprietary blobs and can contain malware Windows malware can potentially harm Linux through Wine ...

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

Question wine
66%
+2 −0
Q&A How to get a new IP address from DHCP?

Restarting NetworkManager should be enough: sudo systemctl restart NetworkManger

posted 8mo ago by matthewsnyder‭

Answer