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

Question filesystem
75%
+4 −0
Q&A How to overwrite each line of STDOUT with the next one?

This other answer tries to truncate each line to make it fit the width of the terminal. It's hard to do this reliably because e.g. a tab character counts as one, but it looks like several spaces; o...

posted 7mo ago by Kamil Maciorowski‭  ·  edited 7mo ago by Kamil Maciorowski‭

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

(Assuming your file names are portable, according to POSIX (https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_282). If not, please read this for writing a more robust...

posted 5mo ago by alx‭  ·  edited 5mo ago by alx‭

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

75%
+4 −0
Q&A How to bypass SSH destination host key fingerprint check?

I'm going to assume that you're using OpenSSH, since that is probably the most common SSH implementation on present-day *nix systems. The easiest is probably to use ssh-keygen -R to delete all kno...

posted 7mo ago by Canina‭

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

for file in in chapter-*.xhtml do sed -ir "12s/\b([A-Z])([A-Z]+)/\1\L\2/g;" "$file" done This -ir tells GNU-sed so alter the file in place (-i) and use regexp-extended (-r). For line 12...

posted 5mo ago by user-unknown‭  ·  edited 2mo ago by Mithical‭

Answer
75%
+4 −0
Q&A Higher-order functions in Bash?

Do not embed {} in the shell code. If your {} gets expanded (by xargs) to ./rogue name $(reboot).txt then bash -c 'my-func "{}"' _ will become bash -c 'my-func "./rogue name $(reboot).txt"' _ a...

posted 7mo ago by Kamil Maciorowski‭  ·  edited 7mo ago by Kamil Maciorowski‭

Answer
75%
+4 −0
Q&A 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 6mo ago by LAFK‭  ·  last activity 6mo ago by Quasímodo‭

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

Answer
75%
+4 −0
Q&A How to invert command exit code?

An exclamation mark followed by space in the beginning of a pipeline will negate the final exit code of the pipeline. Here's an example in Bash. Echoing $? will print out the exit code of the prev...

posted 6mo ago by Iizuki‭  ·  edited 2mo ago by Iizuki‭

Answer
75%
+4 −0
Q&A Does /proc/config.gz always contain all supported options of a kernel?

It is possible - while being unlikely - that /proc/config.gz does not match the actual kernel configuration. Normally, /proc/config.gz should reflect the kernel configuration truthfully. But wheth...

posted 3y ago by elgonzo‭  ·  edited 3y ago by elgonzo‭

Answer
75%
+4 −0
Q&A How to forward SSH access of one machine, through another, to the rest of a network?

@Canina's answer contains a good solution if you only want to reach a small number of hosts. But requiring a port (local though, not on the jumphost, so many users don't compete for resources) for ...

posted 3y ago by Grove‭

Answer
75%
+4 −0
Meta cd /usr/team && ls -la

As we start on building a new community here together, we're bound to find some sticking points. Those might be bugs, new features you need, things you need support with... whatever they are, the C...

0 answers  ·  posted 3y ago by luap42‭

75%
+4 −0
Q&A Why does the file command fail to recognize non-text files as such?

You might be enlightened by reading the man page for file(1). A brief quotation: This manual page documents version 5.35 of the file command. file tests each argument in an attempt to classify...

posted 3y ago by dsr‭  ·  edited 3y ago by Quasímodo‭

Answer
75%
+4 −0
Q&A Running several commands without && or ; or ()

A shell script! You don't need a shebang line, just invoke it as /bin/sh script.sh, but if you want to add one (e.g. perhaps you anticipate doing this more than once) Then you can copy the command...

posted 2y ago by Grove‭

Answer
75%
+4 −0
Q&A How to detect if a Linux Docker host has had unwelcome guests?

You can't expect an attacker to abide by any particular rulebook. In fact, if they did, then the defenders' job would be so much easier. That's why attackers don't do it. Remember the adage: a de...

posted 2y ago by Canina‭  ·  edited 2y ago by Canina‭

Answer
75%
+4 −0
Meta Tag/category suggestions

Categories should be used for broad categories of posts. For example, see how Writing separates the main Q&A from writing challenges, or how Cooking separates its Q&A from recipes, or how M...

posted 3y ago by Canina‭  ·  edited 3y ago by Canina‭

Answer
75%
+4 −0
Q&A How to configure GNOME Keyring to by default NOT automatically unlock keyrings whenever logged in, on Debian?

On a Debian Buster system I use, the password for connecting to a VPN is stored in the GNOME Keyring. Therefore, whenever I want to connect to the VPN in question, I get prompted to unlock my keyri...

1 answer  ·  posted 3y ago by Canina‭  ·  edited 3y ago by deleted user

75%
+4 −0
Q&A What is the best way to identify changes from the default configuration in Raspbian systems?

How does the list of packages differ from that in a fresh install? The easiest way, if you have the data for it, would probably be to parse the APT logs (particularly /var/log/apt/history.log*...

posted 3y ago by Canina‭

Answer
75%
+4 −0
Q&A What is the best way to identify changes from the default configuration in Raspbian systems?

I've got a Raspberry Pi running Raspbian, which I'd like to reinstall from scratch. However over time I've made many changes to the configuration (installed new packages, changed the name of the de...

1 answer  ·  posted 3y ago by celtschk‭  ·  last activity 3y ago by Canina‭

75%
+4 −0
Q&A Can rsync handle moves and renames?

I'm quite certain that rsync is not able to deduce that /path/to/src/folder_a/file_w on one side of the transfer is identical to /path/to/src/folder_c/file_w on the other side of the transfer. The...

posted 3mo ago by Canina‭

Answer
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
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 1mo ago by r~~‭

Answer
75%
+4 −0
Q&A Debug NetworkManager with GDB

Note that if you want to debug the currently installed version of NetworkManager, you don't have to compile NetworkManager yourself. Instead, make GDB download symbol files via debuginfod. You can ...

posted 10mo ago by Matthias Braun‭  ·  edited 5mo ago by Matthias Braun‭

Answer
75%
+4 −0
Q&A Can I make a compressed RAM drive and externally prepare a (pre-)compressed file to copy onto it?

Linux does have the concept of a RAM DRIVE (multiple concepts actually, including ramfs and tmpfs being common). You should look at https://en.wikipedia.org/wiki/Zram - ZRAM claims to be exactly ...

posted 9mo ago by davidgo‭

Answer