Comment by Kamil Maciorowski on One liner command to ssh to server2, switch...
Do you really use smart quotes?
View ArticleComment by Kamil Maciorowski on How to rename files with priority in Bash?
Unclear. (1) "I'd like to overwrite a with whatever is the highest number in the parenthesis" – Does this mean that from all files with filenames of the form a (N) you want to pick the max N and then...
View ArticleComment by Kamil Maciorowski on yes| sh script.sh not working automatic Y...
Note: yes prints y, yes Y prints Y. Does yes Y help?
View ArticleAnswer by Kamil Maciorowski for SSH socks proxy through multiple "Jumps"
-J is an alternative to (some class of) -o ProxyCommand=, (usually) not an addendum. You use it as straightforwardly as:ssh -ND 4321 -J HostA HostBThis is how -J works:-J destinationConnect to the...
View ArticleAnswer by Kamil Maciorowski for In Linux with limited features (NAS box), how...
1Is it possible?Yes, but not with sha256sum because it seems you don't have this tool. You do have md5sum.2How do I do it?Use the below script. Save it to a file (e.g. deduplicate), make it exectutable...
View ArticleComment by Kamil Maciorowski on NVMe m.2 drive refuses to boot on its...
Please take our short tour to see how the site is designed to work. Questions should be questions, answers should be answers. Solutions belong to answers. You can write an answer (your solution can be...
View ArticleComment by Kamil Maciorowski on ssh_host_rsa key with two sshd configurations
I don't know if it has anything to do with the problem, but note that changing #RSAAuthentication yes to #RSAAuthentication no has no effect because the line is commented out anyway. I'm bringing this...
View ArticleComment by Kamil Maciorowski on TO close Tmux along with terminal (if...
You tagged bash, but mentioned .zshrc; you are expecting "a bash command that would be placed in .zshrc". This file is for zsh, not for bash. What shell do you use inside tmux? What shell do you use...
View ArticleAnswer by Kamil Maciorowski for TO close Tmux along with terminal (if...
From man 1 tmux:destroy-unattached [off | on | keep-last | keep-group]If on, destroy the session after the last client has detached. If off (the default), leave the session orphaned. […]tmux set-option...
View ArticleComment by Kamil Maciorowski on Why doesn't `bash` work with piped output,...
.zshrc is for zsh, not for bash.
View ArticleComment by Kamil Maciorowski on How to let root use sudoedit as if it was a...
(1) "user's cached auth is not used" – It's probably per tty (man 5 sudoers, see timestamp_type) and the sudo vim FILENAME has probably provided a separate tty (man 5 sudoers, use_pty). (2) In a...
View ArticleComment by Kamil Maciorowski on Cannot repair a disk with corrupted GPT using...
"0 sectors" and "sometimes, I can access the disk, then it reports I/O error" suggest a hardware problem. Is the disk connected directly? or via a USB adapter?
View ArticleComment by Kamil Maciorowski on Clementine does not play next song when...
"Clementine does not play next song", "But when song finishes, next song is now played" – pick one.
View ArticleAnswer by Kamil Maciorowski for Querying transmission efficiently to tell if...
It's rather inefficient because every 10 seconds it has to probe transmission-remote twice, run awk twice, and run sort, head and find once.Each time run transmission-remote once, use one awk to fully...
View ArticleComment by Kamil Maciorowski on How to automatically do a ntfsfix every time...
Some additional insight: How does Windows locking down the drive for Fast Startup work?
View ArticleComment by Kamil Maciorowski on Shutdown Windows 10 truly for a dual booting...
Related: How does Windows locking down the drive for Fast Startup work?
View ArticleComment by Kamil Maciorowski on Bcachefs remove device without mounting, or...
This is not a reason to use an unrelated tag that only resembles the desired one.
View ArticleAnswer by Kamil Maciorowski for How can I convert my wireless keyboard...
It is possible in general, although a Bluetooth dongle may support only a subset of Bluetooth profiles.I think keyboards operate on an HID profile, while speakers require A2DP. So you may or may not be...
View ArticleComment by Kamil Maciorowski on Shell prompt colored outside of tmux, but not...
(1) Is the shell in question Bash? What is the output of echo "$0"? (2) What is the output of echo "$TERM"?
View ArticleComment by Kamil Maciorowski on create wordlist to crack password
(1) I think this can be done solely by crunch: crunch 11 11 x Q… -t @,,,,,,,,,,. (2) —-stdout– Really a non-ASCII dash?
View Article