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 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
Q&A What are the concrete security risks of forcibly terminating a process?

I'm using the Gnome System Monitor in Linux Mint. Whenever I attempt to "End" or "Kill" a process, I am given this warning via a modal dialog (emphasis mine): Killing a process may destroy data,...

2 answers  ·  posted 8mo ago by Karl Knechtel‭  ·  last activity 1mo ago by Kamil Maciorowski‭

Question security kill
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 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 8mo 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 6mo ago by alx‭  ·  edited 6mo 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 6mo 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 6mo 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 8mo ago by Kamil Maciorowski‭  ·  edited 8mo 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
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 4mo 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 3mo 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 2mo ago by r~~‭

Answer
75%
+4 −0
Q&A How to show motherboard model?

dmidecode can do this. Here's an example output from my system: # dmidecode --type 2 Getting SMBIOS data from sysfs. SMBIOS 3.1.1 present. Handle 0x0002, DMI type 2, 15 bytes Base Board Info...

posted 21d ago by Iizuki‭

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

I'd like to debug NetworkManager by stepping through it using GDB. I assume I'll have to compile NetworkManager from source to get debug symbols since file /usr/bin/NetworkManager indicates that th...

1 answer  ·  posted 10mo ago by Matthias Braun‭  ·  last activity 5mo ago by Matthias Braun‭

75%
+4 −0
Q&A How to run a command on a list of files?

If I just used find to generate a list of files, then find's -exec argument is usually the way to run some other program on each file found. If you pipe the command to xargs, note that -P n wi...

posted 11mo ago by dsr‭  ·  edited 11mo ago by AdminBee‭

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 Adding Python 3.11 to `$PATH`

The usual way is to specify an installation location with ./configure --prefix="$HOME/python" ... and then make install after make. If you don't specify a --prefix argument to configure, it ty...

posted 11mo ago by tripleee‭  ·  edited 11mo ago by terdon‭

Answer
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 13d ago by Quasímodo‭

Question shell-scripting
75%
+4 −0
Q&A How to convert Flac to Mp3 with FFmpeg?

The best method is to navigate to the folder containing your Flac audio files and use the following 'for' loop: for j in *.flac do ffmpeg -i "$j" -c:a libmp3lame -b:a 128k mp3/"${j%.flac}.mp3" ...

posted 11mo ago by andrew.46‭  ·  edited 11mo ago by andrew.46‭

Answer
75%
+4 −0
Q&A Reverse shell with named pipe and netcat

I'm not sure which exact fragment, functionality or aspect is problematic to you. Here I will make points (paragraphs) about what I used to struggle to understand, or about what I suspect may be no...

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

Answer
75%
+4 −0
Q&A How can I use SIGUSR1 or SIGUSR2 without risk of terminating the process?

SIGUSR1 and SIGUSR2 are user-defined signals. Imagine there is a tool designed to do something useful upon receiving one or the other. The problem is the default action for these signals is Term (...

1 answer  ·  posted 11mo ago by Kamil Maciorowski‭  ·  last activity 11mo ago by Kamil Maciorowski‭

75%
+4 −0
Q&A How to convert PDF to docx

How can I convert PDF to docx using the terminal or a Linux app? The output docx must be formatted with editable text. Some alternative solutions I've seen online using soffice and abiword output...

2 answers  ·  posted 1y ago by mcp‭  ·  last activity 1y ago by samcarter‭

75%
+4 −0
Meta See "works for me" indicator in list of questions?

This isn't an answer so much as some information related to your question. We have an open GitHub issue to add searching on reactions. We can already search by post type, category, user, score, a...

posted 1y ago by Monica Cellio‭  ·  edited 1y ago by Monica Cellio‭

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