Comment by Kamil Maciorowski on I just got a popup from OpenSnitch indicating...
"sshd normally receives incoming connections, not making outgoing ones" -- I think if a user of ssh specifies -L (or -D) and actually uses the tunnel (or proxy, respectively), then sshd on the server...
View ArticleComment by Kamil Maciorowski on How to use abbreviations in bash prompt
"abbreviations like fish or vim" –fish means "friendly interactive shell", vim means "visual editor improved" or so. Do you want to expand abbreviations like these? They are well established short unix...
View ArticleAnswer by Kamil Maciorowski for Advanced argument escaping with find + xargs...
AnalysisThe problem arises because you pass the pathname (from the expansion of {}) inside the shell code your sh -c gets. sh is not aware {} was there, it gets the argument with {} already expanded...
View ArticleAnswer by Kamil Maciorowski for Cygwin find returns "missing argument to...
As you have already found out, the fix is to use ; instead of \;. In my answer I will try to explain the mechanics behind this.At first it's good to know why you need \; on Linux. It's not obvious, but...
View ArticleAnswer by Kamil Maciorowski for confusing `rm` command corner behavior
My testbed is Linux, namely Debian 12, and in this answer I link to Debian manuals. Still I believe the mechanics is identical in all Unix/Linux systems.I don't understand why the read and execute...
View ArticleComment by Kamil Maciorowski on How to correct "partitions not in recommended...
"the partition table doesn't quite match the partitions themselves" – Do you really mean it exactly as stated? Partitions are defined by the partition table and there is no other source of information...
View ArticleComment by Kamil Maciorowski on Why find command behaves this way?
@PaulJurczak You did specify /. The file /home/paul/hwinfo/build/lib/libhwinfo_cpu.so is under /.
View ArticleComment by Kamil Maciorowski on Direct path to files with common syntax in...
"I want to run an analysis" – If you could type all the matching pathnames by hand, would you be able to straightforwardly pass all of them to a single invocation of the analyzing tool as plain,...
View ArticleComment by Kamil Maciorowski on How do I turn off the Intel "logo light" (not...
If the light can be driven from within an OS and if your Linux has the right driver then I expect there is something relevant in /sys/class/leds/. What is the output of ls -l /sys/class/leds/? Please...
View ArticleComment by Kamil Maciorowski on Curly quotation marks in Notepad on WIndows 11
Note: "what did I press?" is not equivalent to "how can I change it back?". Maybe the keystroke toggles the behavior, maybe not. I'm pointing this out in case maybe you're asking not (or not...
View ArticleComment by Kamil Maciorowski on Open file in browser via ssh
In Linux one can use sshfs, a filesystem in userspace (FUSE) that exposes files from an SSH server as if they were local. See if you can use sshfs in macOS.
View ArticleComment by Kamil Maciorowski on tmux: Can't `bind-key` Ctrl+3 to '#'
Terminals and terminal emulators do not pass keystrokes that ultimately get to programs (e.g. to a tmux client), they pass a stream of bytes. Some keys (or combinations) generate single bytes, some...
View ArticleAnswer by Kamil Maciorowski for Cloning single disk drive to multiple drives...
Use caseThis answer applies to a case where you suspect the source drive may be faulty, so you want to use GNU ddrescue or a similar tool. The tool writes to exactly one seekable file. You want it to...
View ArticleComment by Kamil Maciorowski on bash: "no such file or directory" for...
My knowledge in this topic comes from the link. After reading that answer you know the theory as much as I do; but now you also have practical experience, I do not. So I'm not going to write an answer,...
View ArticleComment by Kamil Maciorowski on Is there a reason why I can't use find to...
Please do not multi-post. For the record, another copy is on Unix & Linux SE.
View ArticleComment by Kamil Maciorowski on How to fix "Input/output error" with chown?
"Input/output error" probably means a hardware error. What does dmesg | tail -n 100 show just after the error? If you have space available, copying the device with GNU ddrescue or with a similar...
View ArticleAnswer by Kamil Maciorowski for What is the 127.0.0.2 IP address for?
Not a comprehensive general answer (there's one already). This answer of mine shows an example where 127.0.0.2 was used to solve the problem.Extract:The OP there attempted to test some software in a...
View ArticleAnswer by Kamil Maciorowski for tmux: Can't `bind-key` Ctrl+3 to '#'
AnalysisWhat is the issue?The issue is: for a program reading from a terminal there is no such thing as Ctrl+3.Terminals and terminal emulators do not pass keystrokes that ultimately get to programs...
View ArticleComment by Kamil Maciorowski on Bash script to open multiple Excel files?
"and then hangs" – Do you mean the script never gets to and past echo "Foobar opened."?
View ArticleComment by Kamil Maciorowski on Will a PC complain if a USB 2 flash drive is...
XY problem. The title and the explicit questions in the body are Y. You told us what X is. Almost always telling is better than not telling. Nevertheless the overall thread is untidy because the only...
View Article