Search
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...
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...
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...
(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...
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...
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...
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...
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...
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,...
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.
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...
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?
I am currently ripping a bunch of DVDs. Some are encrypted, and some are not. My method for ripping a DVD depends on whether or not it is encrypted, so I am looking for a command-line method to det...
I stopped using a former Q&A Network of Sites because of their poor political choices. Before I left, I noticed a number of people who also objected to those politics renaming their usernames ...
For a particular use case, I need to be able to set up a Linux host (specifically Debian) to use a VPN tunnel for routing outgoing connections, but still allow incoming connections outside of that ...
Since asking this question I've updated to 12.2 (Monterey), but it's the same problem on either. I was nervous about blowing away my existing brew installation, even if I first captured a list of ...
While there doesn't seem to be a general command like notify-send to hide all notifications, we can use features of our specific notification daemon, like mako in this case, to hide all notificatio...
Looking at a few system daemons on my Fedora 36 machine; avahi, rpcbind & chrony. avahi & chrony seem to both do the creating of their /run/<program> directories, rpcbind seems to b...
I had a nightly cronjob start throwing errors about "inappropriate permissions..." rsync: [generator] failed to set permissions on "/data2/home/redacted/alsoredacted/opt/dell/srvadmin/var/log/open...
Use pavucontrol-qt It can be used to investigate configuration of output - in my case comparing what pavucontrol shown with and without docking station indicated that dock was recognized as "USB h...
You can find a list of options in man xkeyboard-config. Under the section "key to choose the 3rd level" is the one you are after: lv3:ralt_switch_multikey Right Alt; Shift+Right Alt as Compo...
As we have set up communities here on the Codidact network we've been appointing temporary moderators. Ultimately, of course, we want each community to choose its own moderators; we've been doing ...
I would like to also nominate Quasímodo Although the community doesn't have a lot of content yet, Quasímodo has contributed generally well-received content on several subject matters (both as qu...
Why is libvkd3d1 not upgrading on my system? (lubuntu 20.04 LTS) When I run sudo apt update, apt flags libvkd3d1 and libvkd3d1:i386 as upgradable, but sudo apt upgrade does nothing and reports tha...
I don't know what these things are called exactly in the Linux world. But there is the concept of a drive in RAM, to write files onto and read them like it was any disk drive. There is also the c...