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

Comment by Kamil Maciorowski on Byobu: Kill foreground process in current window

Notes (assuming Linux): (1) It's the terminal driver that intercepts ^C or ^Z character and sends SIGINT or SIGTSTP. The terminal may be configured not to do this, so it's not necessarily that the...

View Article


Answer by Kamil Maciorowski for if then statement only acting on first...

Initially the WARN variable contains multiple lines. Still, like any non-array shell variable it's just a single string and the fact there are newline characters inside does not change this.[[ "$WARN"...

View Article


Answer by Kamil Maciorowski for Linux, How to cleanup random duplicates?

<b.txt uniqThe uniq utility shall read an input file comparing adjacent lines, and write one copy of each input line on the output. The second and succeeding copies of repeated adjacent input lines...

View Article

Comment by Kamil Maciorowski on Unable to replace a folder on the USB flash...

Please decide if this question is about making the USB drive writable or about fixing being locked out of the root account. These are two separate issues, your question should ask about exactly one....

View Article

Comment by Kamil Maciorowski on How to identify growing usage on a hosted...

"There is a super huge file /proc/kcore…" – Irrelevant, as /proc is a virtual filesystem, it does not consume storage space; so it's not even "part of the cost of running Linux".

View Article


Comment by Kamil Maciorowski on Byobu: Kill foreground process in current window

Images of text are usually a bad idea.

View Article

Comment by Kamil Maciorowski on Is it posible to recover a partition that has...

I understand the filesystem was mounted at the time. The really sad thing is the default value of allow_mounted_write is a precaution against exactly what happened, still you had explicitly set it to...

View Article

Comment by Kamil Maciorowski on Read EXT4 Partition on USB-Connected 3.5" GPT...

Please do not cross-post. For the record, another other copy is on Unix & Linux SE, yet another on Ask Ubuntu.

View Article


Answer by Kamil Maciorowski for Can I create symbolic link to a partition...

You can mount PARTUUID="c4db5f86-45b2-43d3-8983-fedeb71da5cd" because mount recognizes the format of the argument, extracts the PARTUUID from it and acts accordingly; it does not treat the argument as...

View Article


Comment by Kamil Maciorowski on Can I find from which directory a command was...

ls -l /proc/PID/cwd where PID is the right PID. Still, I think find is allowed to change its current working directory during its run, as long as the results are within specification; so what you get...

View Article

Comment by Kamil Maciorowski on Why is an attempted upgrade of RAM with the...

Note: "Have anyone ever had the same problem?" is not a good question to ask here. This may be an invitation to discussion, but the site is not a discussion forum, we answer questions. The answer to...

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 i want to check how many vnc servers i have...

Please don't post images of text.

View Article


Comment by Kamil Maciorowski on Revisiting how to repair broken JPEG images?

"… but hardly guaranteed" – How can any tool guarantee anything in case of a corrupted file? In general the file may be arbitrarily corrupted. There is always a limit to how much you can recover. If...

View Article

Comment by Kamil Maciorowski on find -type f -iregex...

See my answer to the linked duplicate. Your current pattern should work with -regextype posix-extended. Xor modify the pattern:-iregex '\.\/INPUT.*\.\(mp4\|avi\)$'.

View Article


Answer by Kamil Maciorowski for Use multiple conditions in find regex in shell

With -regextype (GNU find)I need to use -E for extended regex.Invoke find . -regextype help to learn available options. GNU find in my Debian supports few. Other implementations of find may or may not...

View Article

Comment by Kamil Maciorowski on Asus Command USBLock Forgotten Password

Do the USB ports work normally when you boot something other than your full OS? Like a live Linux or Windows Recovery?

View Article


Why is there no UDP port forwarding in SSH?

I know SSH can forward TCP ports, not UDP. I'm not seeking help to circumvent this restriction, this subject is covered here.I'd like to know what is the reason SSH never got UDP forwarding ability. So...

View Article

Comment by Kamil Maciorowski on How to append line which matches pattern to...

The desired output is confusing. (1) Why LAN..56248? A typo? (there is LAN.56248 in the input). (2) About the line containing 2024-10-02,15:23:17.961821: where did the device… part come from? In the...

View Article

Comment by Kamil Maciorowski on How to use SSH key with SCP only and not SSH,...

scp uses ssh as transport, regardless if it uses SCP or SFTP (see "History, SCP and SFTP" in this answer for insight). In ~/.ssh/config you can define two Hosts pointing to the same Hostname and Port,...

View Article
Browsing all 652 articles
Browse latest View live