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 »

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
575 posts
 
77%
+5 −0
Q&A What is cat abuse/useless use of cat?

Overview A "useless use" or "abuse" of cat occurs when a Unix pipeline (sequence of commands that feed into each other, using the shell | or "pipe" operator) includes a call to cat that is unneces...

posted 2mo ago by Karl Knechtel‭

Answer
60%
+1 −0
Q&A 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
Q&A How do you generate arbitrary random numbers from /dev/random?

You want shuf. shuf -n1 -i 534-876874

posted 2mo ago by r~~‭

Answer
75%
+4 −0
Q&A What is cat abuse/useless use of cat?

Especially in a pedagogical context, the issue with something like cat /dev/random | head -c 20 versus the more straightforward head -c 20 /dev/random is that it communicates that extra ceremony is...

posted 2mo ago by r~~‭

Answer
66%
+2 −0
Q&A What are non-POSIX shells and what's the point of them?

From the average user's perspective: Back in the day when people were figuring out how to do shells, there were as many shell syntaxes as shells. Everyone made up their own little language to go w...

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

Answer
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
66%
+2 −0
Q&A 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~~‭

Question cli random
37%
+1 −3
Q&A What is cat abuse/useless use of cat?

UUOC is an ancient Unix yarn. I can't find the original essay (I believe from Usenet, where else...) but if memory serves it's either from early 90s or before. cat is actually a program for concat...

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

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

Question cli
60%
+1 −0
Q&A How do you generate random strings from /dev/random?

/dev/random is a stream of every possible value. You're supposed to filter it to take the ones you want. This is efficient, although if the values you want are such that only, say, 1% of what comes...

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

Answer
60%
+1 −0
Q&A 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 2mo ago by matthewsnyder‭  ·  last activity 2mo ago by matthewsnyder‭

Question cli random
50%
+0 −0
Q&A Which Linux system to use?

Most Linuxes are small, and I would consider them for experts by default. This is because you won't be able to just Google problems and copy the solution from some blog. You'll have to actually tro...

posted 2mo ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A How do you remap mouse buttons?

Wayland, ideally If you are on Wayland, the blessed way is to use the configuration for your desktop environment (DE) to map mouse keys and other input devices, except for a couple well-known opti...

posted 2mo ago by Michael‭  ·  edited 2mo ago by Michael‭

Answer
60%
+1 −0
Q&A How do you remap mouse buttons?

No wonder it's hard to find good programs - it's no longer necessary! At some point this became a built in part of Xorg via xinput. The process is something like this: xinput list and find the ...

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

Answer
71%
+3 −0
Q&A Prettify XML in a shell

xmllint from xmllib2 can do this: $ output-dirty-xml | xmllint --format - The dash in the end tells xmllint to read from stdin instead of a file. Source: manpage

posted 2mo ago by Iizuki‭

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

Question shell xml
66%
+2 −0
Q&A Is there a way to automatically normalize paths when extracting RARs?

If all else fails, you could create a wrapper shell function to check the output of unrar l (probably by piping to wc -l) and proceed accordingly.

posted 2mo ago by Karl Knechtel‭

Answer
60%
+1 −0
Q&A 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 2mo ago by matthewsnyder‭  ·  last activity 2mo ago by Karl Knechtel‭

50%
+0 −0
Q&A Solr crashes on startup with segmentation fault

I upgraded to WSL 2 because I discovered several instances online where people had run into issues with WSL and Solr together. This fixed the problem of Solr not starting. However, it triggered a n...

posted 2mo ago by tarhalda‭

Answer
50%
+0 −0
Q&A How to add a new drive to a BTRFS filesystem?

Add a new drive with the device command: # btrfs device add /dev/new-device /path/to/the/filesystem/youre/adding/to Then you probably want to balance the filesystem so that some data will actua...

posted 2mo ago by Iizuki‭

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

Question btrfs
66%
+2 −0
Q&A 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 2mo ago by tarhalda‭  ·  last activity 2mo ago by tarhalda‭

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

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

They are defined in the Desktop Entry Specification. In fact there are also %f and %F options. They tell the desktop manager how the program handles multiple files. Like if I select a bunch of fil...

posted 2mo ago by Iizuki‭

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

Question desktop xdg