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

Comment by Kamil Maciorowski on Is there a device class that acts as a...

Additionally your OS/tool is not obliged to show you only the name the device has given to itself. E.g. in KDE I can locally rename a paired device, so even for devices with identical names I could...

View Article



Comment by Kamil Maciorowski on Make sftp-server return a banner/disclaimer

"If I configure it via Banner…" –Banner is shown before authentication; the client chooses a subsystem after successful authentication. Once the client requests sftp subsystem, it expects messages...

View Article

Comment by Kamil Maciorowski on Systemd fails to locate executable although...

There is something fishy here. In the file there is ExecStart=/opt/toto.sh, but the error message mentions /opt/toto/toto.sh which is obviously a different pathname. Additionally we're dealing with...

View Article

Comment by Kamil Maciorowski on How to insert argument separating space into...

Some tools treat -c whatever and -cwhatever equivalently. If ./some_command is one of them, then use ./some_command -croot.{foo,bar,baz}.

View Article

Comment by Kamil Maciorowski on How to insert argument separating space into...

I don't see the point of the first part of this answer. First you correctly notice that {"-c root."} in {"-c root."}{foo,bar,baz} does not expand, then you deal with this "problem" by introducing {"-c...

View Article


Comment by Kamil Maciorowski on shell helper function wrapping `find` and...

Consider firejail (compare: chown -R exclude some directory). This will also allow you to keep the list of hazards in one place as a profile.

View Article

Comment by Kamil Maciorowski on What path to write a Windows ISO to create a...

If it's a real ISO (e.g. downloaded from Microsoft; as opposed to an image of a USB (properly created with Media Creation Tool) just freely named .iso while it's not an ISO), then simply dd-ing to USB...

View Article

Comment by Kamil Maciorowski on Installing Windows 11 with UEFI Firmware

Explanation from a developer of Rufus.

View Article


Comment by Kamil Maciorowski on Why does DD'ing a raw image change the image...

What is the output of </tmp/image.dd.raw wc -c? What is the output of </tmp/image.raw wc -c?

View Article


Comment by Kamil Maciorowski on Why does DD'ing a raw image change the image...

@bearrito This means my hypothesis is false, it does not match your case. I still think it's a plausible hypothesis in general.

View Article

Answer by Kamil Maciorowski for How to check if busybox has a command?

busybox --list | busybox grep -qF md5sum && echo yes || echo no(Tested with Busybox v1.35.0 in Debian 12.)A shell function that implements the above solution:_busybox_has () { busybox --list |...

View Article

Answer by Kamil Maciorowski for Is there a `man/` equivalent of $PATH (which...

The "equivalent" of $PATH is $MANPATH. See man 1 man:MANPATHIf $MANPATH is set, its value is used as the path to search for manual pages.See the SEARCH PATH section of manpath(5) for the default...

View Article

Answer by Kamil Maciorowski for tmux: Chaining `send-key Enter` and `refresh...

It's a race condition.Expanding #{pane_current_path} requires the tmux server to learn the current working directory of the process being the "main one" in the pane. It doesn't matter how the tmux...

View Article


Answer by Kamil Maciorowski for Recursively find files with specific hard...

In find there is the -links primary:-links nThe primary shall evaluate as true if the file has n links.(source)To find regular files that have a hardlink count of 1, use:find . -type f -links 1The...

View Article

Answer 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 Article


Answer by Kamil Maciorowski for Grep search for text in an ISO-8859-1 encoded...

How can I prevent the grep output from stripping the accented characters?grep itself does not strip accented characters, it outputs matching lines as they are in the input file. It's your terminal...

View Article

Answer by Kamil Maciorowski for Need to expand a variable in a HEREDOC that...

TL;DRUse <<EOF instead of <<'EOF'.This is what POSIX says about here-documents [emphasis mine]:[n]<<word here-documentdelimiter[…]If any part of word is quoted, the delimiter shall be...

View Article


Answer by Kamil Maciorowski for why fdisk -l /dev/sdX not show under system...

The id 83 in a dos partition table is a generic one for Linux filesystems; 8e is a more specific one for Linux LVM.The id of your /dev/sda2 was a choice of whoever created the partition. The choice may...

View Article

Answer by Kamil Maciorowski for How to vertically mirror a layout in tmux? Or...

I don't know how to mirror an arbitrary layout, but in case of C-b, M-4 it's not that hard.The tmux command bound to C-b, M-4 is select-layout main-vertical.To get from main-vertical to the layout you...

View Article

Answer by Kamil Maciorowski for Can I use a partition as ddrescue destination?

Short answerYou can use a partition as the outfile of ddrescue and the tool will not "format the whole disk", but almost certainly working with such copy will be somewhat complicated. If you don't want...

View Article
Browsing all 185 articles
Browse latest View live




Latest Images