Comment by Kamil Maciorowski on Specific Tmux sessions are disappearing
How exactly do you run the processes in tmux? Do you run shells in panes and type (or paste) commands there? Or do you use tmux new-session something or so? Please see "Terminating the tmux session" in...
View ArticleAnswer by Kamil Maciorowski for Why is exit status of grep not working in...
[ with exactly one argument before ] tests if the argument is a non-empty string. In your case what $? expands to is a non-empty string and the test succeeds.[ "$?" -eq 0 ] would check if $? is...
View ArticleComment by Kamil Maciorowski on LINUX - ownership inheritance of parent dir...
You did not do chmod u+s; but even if you did, most likely it wouldn't matter.
View ArticleComment by Kamil Maciorowski on Equiv of `ssh a -tt ssh b` or how to use...
ssh -tt cannot be used as (a part of a) transport pipe because it will break any protocol that sends binary data. See this question (and the links therein) for some insight: ssh with separate stdin,...
View ArticleComment by Kamil Maciorowski on Cygwin bash script file fails silently
Why might it help? Without a hypothesis, "try this" is just voodoo.
View ArticleComment by Kamil Maciorowski on Redirecting standard output AND standard...
(1) Maybe these times there were no errors. How do you know? (2) Do not use 1>soutanderror.text 2>soutanderror.text for writing to the same regular file. This syntax opens the file twice, each...
View ArticleComment by Kamil Maciorowski on Why does the umask doesn't change as expected...
(1) "When I create a directory or a file" – How exactly do you do this? (2) What is the output of findmnt -T /var/www? Please add information to the question ([edit] it), not in comments.
View ArticleComment by Kamil Maciorowski on I see rainbow effect on the borders of...
@FabiosaysReinstateMonica Blame the OP, because there is no question in the "question" (sigh…). As a guess "why?" (answered here) is as good as "how to fix?".
View ArticleComment by Kamil Maciorowski on Why does the umask not change as expected in...
(1) "When I create a directory or a file" – How exactly do you do this? (2) What is the output of findmnt -T /var/www? Please add information to the question ([edit] it), not in comments.
View ArticleComment by Kamil Maciorowski on Bash prevent word splitting in array from...
Bash pitfall number 1.
View ArticleComment by Kamil Maciorowski on Bash scripting: test for empty directory
"This should be portable" – Define "portable". I think -mindepth and -maxdepth are not specified by POSIX.
View ArticleAnswer by Kamil Maciorowski for How do I recover lost/inaccessible data from...
In case you want to recover one or few text files with partially known contentIf the file you want to recover is a plain text file (as Linux understands it, i.e. UTF-8) and the filesystem where the...
View ArticleComment by Kamil Maciorowski on Create partitionless FAT32 filesystem on USB...
Kubuntu 23.10, mkfs.fat 4.2 here. sudo mkfs.fat -F 32 /dev/sda has just worked for me.
View ArticleComment by Kamil Maciorowski on Attribute “partition” not found - error with...
I’m voting to close this question because it's a cross-post. Cross-posting is frowned upon. The copy on Ask Ubuntu has been answered, the answer is accepted.
View ArticleAnswer by Kamil Maciorowski for Cloning an SSD with pv command
Many commands in Linux are designed to work in pipelines. This means you can chain them like this:command1 | command2 | … | commandNIn this case the standard output (stdout) of command1 goes to the...
View ArticleComment by Kamil Maciorowski on Attribute “partition” not found - error when...
I’m voting to close this question because it's a cross-post. Cross-posting is frowned upon. The copy on Ask Ubuntu has been answered, the answer is accepted.
View ArticleAnswer by Kamil Maciorowski for scp fails with -T in different scp versions
In new enough versions of scp from OpenSSH, this is what -T does:-TDisable strict filename checking. By default when copying files from a remote host to a local directory scp checks that the received...
View ArticleComment by Kamil Maciorowski on Cannot install windows alongside linux on...
You assign a type to a partition even before creating a filesystem there. Maybe the Windows installer refuses to work with a partition of the "wrong" type (compare this answer). What is the output of...
View ArticleComment by Kamil Maciorowski on Using E2C to connect two Linux computers...
Probably your ssh -R makes the SSH server listen on the loopback interface only. What if you change your ssh -L command to ssh -L localhost:6345:localhost:7345 …?
View ArticleComment by Kamil Maciorowski on How to transfer a file to a remote host using...
< file_for_send.sh is attached to the stdin of parallel. Even if this stdin ultimately is inherited by ssh (and I don't know if it is), it's not that each ssh will reopen the file and read it from...
View Article