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

Comment by Kamil Maciorowski on Can I stop the Linux 'less' command invoked...

This and then like TERM=tmux256-noalt less …. An alias alias less='TERM=tmux256-noalt less' may be useful.

View Article


Comment by Kamil Maciorowski on Can I create an image with a specific size in...

@not2qubit Here.

View Article


Comment by Kamil Maciorowski on My Internal hard drive became...

(1) What is the output of sudo dmesg | grep sda2? (2) fsck.btrfs is a no-op (see man fsck.btrfs). There is btrfs check (see man btrfs-check), but first I would check the health of the device itself;...

View Article

Comment by Kamil Maciorowski on "Access Denied' for SSH with port forwarding...

Your public address shown by services like ipecho.net may or may not be the WAN address of your router. Please confirm the two addresses are the same. If they are not then you are probably behind CGNAT.

View Article

Comment by Kamil Maciorowski on SSH works SSHFS doesn't and I don't know why

'When trying to connect for the first time i got a message about some "unknown host" and if i really want to connect.' – As if it was not the right machine. I understand...

View Article


Comment by Kamil Maciorowski on Windows 10: Can't click on apps after...

Welcome to Super User. Is your "question" an attempt to answer this other question? Please take our short tour to see how the site is supposed to work. Answers should be answers. Your solution does not...

View Article

Answer by Kamil Maciorowski for How do I specify tmux terminal-features in my...

In a shell inside tmux invoketmux show-option -s terminal-featuresIn my case the above command prints:terminal-features[0] xterm*:clipboard:ccolour:cstyle:focus:titleterminal-features[1]...

View Article

Comment by Kamil Maciorowski on How to put the “Esc” key in the status bar as...

In Linux terminals the escape key sends the byte denoted as ^[, which is exactly what Ctrl+[ sends. Many terminal emulators also allow you to customize keyboard, i.e. what byte (sequence of bytes) the...

View Article


Comment by Kamil Maciorowski on Speed up reading a large number of files...

Another aspect: Why find … | while …? Why not find … -exec myscript.sh {} \;? Then myscript.sh should be improved to work in a loop, so one instance can process multiple files and you can do find …...

View Article


Comment by Kamil Maciorowski on Increase stack size for a specific process on...

What do you mean by "other processes executed later"? Do you mean children of the process? Or do you mean unrelated processes you may want to execute after the process terminates?

View Article

Comment by Kamil Maciorowski on How to use Home and End keys in `less` command

It may depend on how your terminal (terminal emulator) encodes Home and End. The point is there is just a single stream of bytes coming from your terminal to less (or to any program designed to use the...

View Article

Comment by Kamil Maciorowski on How to write to last 4 bytes of disk via CLI?...

"script3 fails with bs=4" – Because dd seek=, when given just a number, uses bs as the unit; but your calculation uses blockdev --getsz that counts 512-byte sectors, so it only works with bs=512. Does...

View Article

Comment by Kamil Maciorowski on How to change default options for /proc mount...

Does adding an entry to /etc/fstab help?

View Article


Answer by Kamil Maciorowski for Increase stack size for a specific process on...

There is ulimit -s 64M but that sets the stack size for all processes run after itulimit builtin in a shell operates on resource limits of the shell itself. It will affect each future child process...

View Article

Answer by Kamil Maciorowski for bash completion, can one set a default word...

-W wordlist is what you need.complete -E -W nextcloudYou may also find this approach useful: Bash "virtual" prefix terminal.

View Article


Comment by Kamil Maciorowski on How to set a "paste delay per line" with...

pv -qlL 2 | telnet … or maybe better rlwrap sh -c 'pv -qlL 2 | telnet …' with bracketed paste enabled. The problem is telnet is now reading from a pipe, not directly from the terminal; this may limit...

View Article

Comment by Kamil Maciorowski on The tcpdump creates multiple files randomly...

Welcome to Super User. There is no question in your "question", for now the post is just a story. "Why doesn't it do what I want?" is not equivalent to "how can I make it do what I want?", so don't let...

View Article


Answer by Kamil Maciorowski for How to write to last 4 bytes of disk via CLI?...

script3 fails with bs=4It does not what you want because dd seek=, when given just a number, uses bs as the unit; but your calculation uses blockdev --getsz that counts 512-byte sectors, so it only...

View Article

Comment by Kamil Maciorowski on Unzip to stdout with filenames and file delims

(1) In a ramdisk or on a HDD/SSD, temporary directories and regular files were invented to be used. Pipelines are elegant for problems that fit them. There is no virtue in using a pipeline with...

View Article

Comment by Kamil Maciorowski on Why is Excel giving me a wrong solution to a...

Mathematically the determinant of F2:I5 is 0, so MINVERSE(F2:I5) shall not exist; but because of the fact that floating point arithmetic in Excel cannot express numbers like 1/10 without error, in your...

View Article
Browsing all 649 articles
Browse latest View live