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
794 posts
 
75%
+4 −0
Q&A Forbid concurrent runs of a process

Suppose I have some hypothetical CLI program. It is important that only one instance of this program runs at any given time. When multiple instances run concurrently, bad things happen. Normally, ...

2 answers  ·  posted 7mo ago by matthewsnyder‭  ·  last activity 7mo ago by Canina‭

Question cli concurrency
75%
+4 −0
Q&A Forbid concurrent runs of a process

This can be done using the flock utility. The most useful mode for preventing multiple invocations of a same process is likely to be -en (exclusive lock, no wait). You need a file or directory (ye...

posted 7mo ago by Canina‭

Answer
75%
+4 −0
Q&A Get notified when there are unmerged changes from origin

Sometimes I work with Git repos that have some changes fetched but not yet merged to the local branch. Occasionally I make commits without noticing this, which necessitates rebase/conflict resoluti...

1 answer  ·  posted 7mo ago by matthewsnyder‭  ·  edited 7mo ago by Michael‭

75%
+4 −0
Q&A Is it a bad idea to pipe a script from curl to your shell?

Online, I often see someone tell people to run a command like /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" (example from https://brew.sh/). The g...

2 answers  ·  posted 7mo ago by matthewsnyder‭  ·  last activity 6mo ago by Stephen Kitt‭

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 1y ago by Kamil Maciorowski‭  ·  edited 1y ago by Kamil Maciorowski‭

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 1y ago by Kamil Maciorowski‭  ·  edited 1y 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 1y ago by alx‭  ·  edited 1y 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 1y ago by David‭  ·  last activity 11mo 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 1y 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 1y ago by user-unknown‭  ·  edited 11mo ago by Mithical‭

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

Answer
72%
+6 −1
Q&A How do I get lubuntu to not prompt non-admins about updates?

I have an old Mac Mini (Late 2009 model) kicking around, and as Apple stopped providing patches for it (and as I'm not going to put an unpatched system on the Internet), I was looking for a Linux d...

1 answer  ·  posted 3y ago by Peter Cooper Jr.‭  ·  last activity 3y ago by deleted user

72%
+6 −1
Meta Should we merge with Power Users?

To increase the activity of the site (one of the main concerns related to making Codidact grow), I suggested merging Linux Systems with Power Users on Meta. Do you agree or disagree with merging?

3 answers  ·  posted 3y ago by Quasímodo‭  ·  last activity 6mo ago by mcp‭

72%
+6 −1
Q&A What are the correct permissions for `~/.ssh/config`?

From man ssh_config: This file is used by the SSH client. Because of the potential for abuse, this file must have strict permissions: read/write for the user, and not writable by others.

posted 1y ago by r~~‭

Answer
71%
+3 −0
Q&A How can I show hidden files and folders (with leading dot in name) on the desktop (actual desktop, not a window)?

I am using Linux Mint 20.3, with Cinnamon as a window manager. I have a folder named .pytest_cache on my Desktop: $ ls -1A | grep '^\.' .pytest_cache I know that if I open a Nemo window, navi...

0 answers  ·  posted 1y ago by Karl Knechtel‭  ·  last activity 1y ago by Mithical‭

Question linux-mint desktop
71%
+3 −0
Q&A Static IP on wired LAN

There are a couple of ways of handling this (on PC's in general. I do use Linux, but not Arch, and this will work). The first way is to statically assign an IP address. While you SHOULD be able...

posted 1y ago by davidgo‭  ·  edited 1y ago by tripleee‭

Answer
71%
+3 −0
Q&A Increase incorrect login attempts before locking account

Authentication events such as logging in are ultimately handled by PAM, the Linux Pluggable Authentication Modules project. PAM is very flexible and different Linux distributions will ship with dif...

posted 1y ago by r~~‭

Answer
71%
+3 −0
Q&A Internet connection and touchpad not working on Ubuntu 22.04 after a force shut down

After a force shutdown on Ubuntu 22.04, installed on a Lenovo Legion 5, the OS seems to have lost its ability to recognize the built-in touchpad or to connect to the internet. For the backstory......

1 answer  ·  posted 1y ago by Mithical‭  ·  last activity 1y ago by matthewsnyder‭

Question ubuntu
71%
+3 −0
Q&A How to change the default app for opening directories in Gnome?

By digging further into the details of xdg-open, I stumbled upon this page in the Arch wiki. There it states that xdg-open will delegate the task of opening a file to the handler of the Desktop En...

posted 1y ago by mr Tsjolder‭

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

Question arch-linux password
71%
+3 −0
Q&A How to change the keyboard layout with Gnome and Arch linux?

As the keyboard layout wiki suggests, loadkeys only sets the keyboard layout for the current session. In order to persist these changes, the KEYMAP variable must be set in /etc/vconsole.conf. Thi...

posted 1y ago by mr Tsjolder‭

Answer
71%
+3 −0
Q&A How to change the keyboard layout with Gnome and Arch linux?

I'd forget about messing around with console commands and X configuration files, and just change the keyboard layout in the GNOME Settings panel: You can access this by hitting the Windows key a...

posted 1y ago by deleted user

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

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

2 answers  ·  posted 1y ago by ShadowsRanger‭  ·  last activity 4mo ago by Karl Knechtel‭

Question manjaro python