Quantcast
Channel: User Kamil Maciorowski - Super User
Browsing all 651 articles
Browse latest View live

Answer by Kamil Maciorowski for priority of the Linux group & user

Assumption: no ACL.Are you the user that owns the file?Yes →The owner's permissions matter. Nothing else matters. End procedure.(The file belonging to baohua:test fits this case.)No → Are you in the...

View Article


Answer by Kamil Maciorowski for Desktop shortcut with a command line argument...

That line seems to work fine directly in a terminal window, but not when i'm trying to launch the desktop shortcut.This is because in a terminal window you interact with a shell that interprets this...

View Article


Comment by Kamil Maciorowski on Multiple netcat connections in old version of...

Possibly this approach. Each party should run one sender and one receiver. A sender may be preceded by while IFS= read -r message; do printf 'nickname: %s\n' "$message" |. A receiver may be piped to ts...

View Article

Answer by Kamil Maciorowski for Equiv of `ssh a -tt ssh b` or how to use...

AnalysisI then write a RemoteCommand ssh -tt -q b to the ssh config for host a on my laptop, so I can just run ssh a.(For consistency I will use capital A and B even in code.)This creates a chain...

View Article

Comment by Kamil Maciorowski on SCP connection only works one way

Is an SSH server running on your Win11? Can you ssh from your Win11 to 127.0.0.1? Can you ssh from your Win11 to its own non-localhost IP address? Is the IP address the same as reported by...

View Article


Comment by Kamil Maciorowski on SCP through an ssh tunnel to the "same"...

Possibly your problem is in its mechanics almost identical to this one. Maybe you can adapt my answer to your needs. Keep in mind scp uses ssh as transport, so first you should set things up so ssh...

View Article

Comment by Kamil Maciorowski on Ctrl+b + [arrow key] for navigation not...

Press Ctrl+v, release, then an arrow key. What gets printed? Try with all directions and [edit] the question.

View Article

Comment by Kamil Maciorowski on Using ProxyJump option for SSH tunnel with...

"Figured out how to do it" – This belongs to an answer, not to the question.

View Article


Answer by Kamil Maciorowski for Flushing output on interrupt on the Linux...

I confirmed the problem in a virtual terminal in my Kubuntu 24.04 LTS. The basic test command was:ssh -t user@server '</dev/urandom tr -dc "[:alnum:]"'I tested various terminal settings (by running...

View Article


Comment by Kamil Maciorowski on Letter "b" in terminal doesn't work only in...

By "in terminal", do you mean a virtual console (e.g. Ctrl+Alt+F3)? or a terminal emulator inside a GUI desktop? If the latter, what terminal emulator is it? Does b work in other terminal emulators?...

View Article

Comment by Kamil Maciorowski on Fix a HDD that got bricked due to reboot...

Side note: it seems you assume the malfunction of the HDD was a consequence of the reboot, but it may have been the other way around.

View Article

Comment by Kamil Maciorowski on BASH: "sed" producing unexpected results

(1) Bash pitfall number one. Use for i in *.pdf; …. (2) Quote right. (3) Do not use data as a format in printf; the format gets interpreted. Use printf '%s\n' "$i" if you really need to. In Bash it's...

View Article

Comment by Kamil Maciorowski on How to Preend or Append File Name to Reflect...

(1) Bash pitfall number one. Use for i in *.pdf; …. (2) Quote right. (3) Do not use data as a format in printf; the format gets interpreted. Use printf '%s\n' "$i" if you really need to. In Bash it's...

View Article


Answer by Kamil Maciorowski for Equiv of `ssh a -tt ssh b` or how to use...

Preliminary noteIn this answer I present an alternative to the solution from my previous answer. Some insight into the problem is there, I won't repeat it here. This answer contains a standalone...

View Article

Comment by Kamil Maciorowski on What does Bash command //xxx[] do?

Cygwin, right? See this. There was possibly some network query in the case of time //xxx[], this would explain the delay. However I'm surprised that Bash treated [] as a globbing pattern in the case of...

View Article


Comment by Kamil Maciorowski on Configuration issue with ssh remote tunneling

(1) "of course I made port forwarding 22 on the ISP's box and the Deco X50 so that the rpi4 is publicly accessible" – This is why ssh -p 2222 … failed and ssh … on the default port succeeded. (2) "but...

View Article

Comment by Kamil Maciorowski on Letter "b" in terminal doesn't work only in...

By "in terminal", do you mean a virtual console (e.g. Ctrl+Alt+F3)? or a terminal emulator inside a GUI desktop? If the latter, what terminal emulator is it? Does b work in other terminal emulators?...

View Article


Comment by Kamil Maciorowski on How to pass a for loop commandline argument...

Hint: the command substitution is performed before kubectl runs. Can you take it from here?

View Article

Answer by Kamil Maciorowski for In which cases outputs of basename "$x" and...

The specification of basename includes the following:SYNOPSISbasename string [suffix]DESCRIPTIONThe string operand shall be treated as a pathname […]. The string string shall be converted to the...

View Article

Comment by Kamil Maciorowski on How do I determine which line has too many...

[ -d "$dir ] and [ -f "$file ]. Fix the quoting.

View Article
Browsing all 651 articles
Browse latest View live