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 »

Posts by Michael‭

8 posts
81%
+7 −0
Q&A How to count the lines of a file?

I think the typical way to do this uses wc ("word count") with the -l ("lines") option. $ wc -l /path/to/file 47 /path/to/file $ wc -l </path/to/file 47 $ cat /path/to/file | wc -l ...

posted 3mo ago by Michael‭  ·  edited 1mo ago by Michael‭

Answer
66%
+2 −0
Q&A How to find your public IP address from command-line?

There are probably myriad services for echoing your IP back over HTTP. Here are a couple: curl https://api.ipify.org curl https://ip.me curl https://icanhazip.com

posted 5mo ago by Michael‭  ·  edited 3mo ago by Michael‭

Answer
66%
+2 −0
Q&A How do I safely replace brew on Big Sur?

If you just want the minimal set of top-level packages to install on your new system, brew leaves is less verbose than CodeFarmer's brew deps --installed. You get a nice concise list of the packag...

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

Answer
66%
+2 −0
Q&A How do I diagnose TLS errors?

Over some period of time, I have used a couple tools for local TLS scans and diagnostics. One of them may include pointers for whatever situation you have. Tool Description From Current? ...

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

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 to forward SSH access of one machine, through another, to the rest of a network?

Grove's answer is likewise good, but OpenSSH introduced ProxyJump (-J) in 2016 with v7.3, making it even easier to chain SSH hosts together: ssh -J user@interstitial.example me@destination.example...

posted 7mo ago by Michael‭  ·  edited 3mo ago by Michael‭

Answer
60%
+1 −0
Q&A Nerf an SSH login outside expected IP range

Can I restrict myself from certain actions when I SSH in from outside a certain IP range? For instance no sudo? Maybe with ~/.ssh/authorized_keys having a from="!1.2.3.4/26" option with some kind ...

1 answer  ·  posted 17d ago by Michael‭  ·  last activity 5d ago by Michael‭

Question ssh
50%
+0 −0
Q&A Nerf an SSH login outside expected IP range

authorized_keys You can make restrictions, but it's clunky and not well-standardized. A command stanza on an authorized key works like the ForceCommand on SSHD Config. It runs the one specified co...

posted 13d ago by Michael‭  ·  edited 5d ago by Michael‭

Answer