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

Comment by Kamil Maciorowski on Why does QDiskInfo report a "Caution" status...

I believe the story with the threshold is different. SMART parameters work (or are supposed to work) this way: the firmware of the disk itself takes the raw value and calculates the current value in...

View Article


Comment by Kamil Maciorowski on Some apps in terminal emulator select tabs as...

Research: printf 'A\tB\tC\n' > /tmp/tbs; more /tmp/tbs; tabs 5 8 20; more /tmp/tbs; tabs 3 18 22; more /tmp/tbs; tabs -8; more /tmp/tbs. I guess full-terminal editors like vim do not want to rely on...

View Article


Comment by Kamil Maciorowski on In the searchbar in windows how do I show all...

[Edit] the question and add information there, do not hide it in comments.

View Article

Comment by Kamil Maciorowski on Clone ntfs partition (with linux) over network

"No wonder that this won't work" – I do wonder. A TCP connection from nc to nc is bi-directional (e.g. if you type and hit Enter where nc … | … runs then you will see the text printed where … | nc …...

View Article

Comment by Kamil Maciorowski on How to manually close ssh ports / port bindings?

Side note: the site is not just for helping you right now. It's also for helping other users with similar problems in the future. In this context "a current <something>" is not as meaningful as...

View Article


Comment by Kamil Maciorowski on Why don't I recover disk space after a btrfs...

(1) "Any other snapshot is 20 times smaller at least" – How about the original subvolume? Is the original subvolume what you call "the active system"? How exactly have you got these "several tens of Gb...

View Article

Comment by Kamil Maciorowski on Accessing directory pertaining to owner fu...

"This is also the case if fu and bar are superusers" – What do you mean by "superusers"? If each has UID 0 like root then they should behave in the same way. Is the filesystem FUSE? If so, see this...

View Article

Comment by Kamil Maciorowski on How to derive the username from the original...

The most elegant solution would be to make User support %n. I gave thought to the problem and I think that while some tokens cannot be used in some directives (e.g. because the value of the token is...

View Article


Answer by Kamil Maciorowski for How to reload sudo users without reboot...

Why you need to log in anewYour /etc/sudoers most likely contains a line like this:%sudo ALL=(ALL:ALL) ALLIt is this line what allows users from the sudo group to run commands with sudo. When you run...

View Article


Answer by Kamil Maciorowski for /etc/sudoers.d in eagle Linux 32-bit not working

Preliminary noteI don't know AutoDesk EAGLE at all. I was not able to trace "eagle - 12.1" to see if it's very old, new or what. For this reason the answer is general.AnalysisSee the comment in the...

View Article

Comment by Kamil Maciorowski on Where is the path of slurmd binary in a HPC...

@Martin grep 'slurmd' can find slurmd, slurmdwhatever, anythingslurmd and anythingslurmdwhatever. I don't know the relation between slurmd and slurmdbd, but obviously slurmdbd is not named slurmd. What...

View Article

Answer by Kamil Maciorowski for Starting multiple iperf server instances with...

I'm sure you did not want to pass --bash and -c as options to gnome-terminal. Probably you wanted to use bash -c … as a command to run in GNOME Terminal; but there is no point of bash -c when it's...

View Article

Answer by Kamil Maciorowski for Close SSH connection if no key is pressed for...

does OpenSSH or the alternatives have a way to automatically do this?Yes, but there is an obstacle. The way is by ChannelTimeout and UnusedConnectionTimeout options for sshd (the server)....

View Article


Answer by Kamil Maciorowski for Change Tmux background colour of zoomed pane

Take this one-liner (split into multiple lines for readability) as an example:tmux set-hook -g after-resize-pane \'if "[ #{window_zoomed_flag} -eq 1 ]" \"run \"tmux select-pane -P bg=red\"" \"run...

View Article

Comment by Kamil Maciorowski on How to total all purchases from a specific...

Investigate pivot tables.

View Article


Comment by Kamil Maciorowski on How to redirect output to both a file and...

The problem is unclear. First you say "I cannot get the output of the internal make to be present in both"; then you try something and "this redirects make output to the output file". I know how tee...

View Article

Comment by Kamil Maciorowski on How to set run specific command by root /...

There are ways to exclude from NOPASSWD, but security-wise this is pointless: I believe one can run a shell command from vim; and there are other commands that can give the user an elevated shell, thus...

View Article


Comment by Kamil Maciorowski on Cloning faulty hard drive

Please don't post images of text.

View Article

Comment by Kamil Maciorowski on How do I grep the first 50 lines of each file...

grep -q "matching string here" < <(head -n 50 "$1") is a somewhat convoluted, non-portable (almost-)equivalent of head -n 50 "$1" | grep -q "matching string here". The latter syntax is...

View Article

Answer by Kamil Maciorowski for How can I efficiently use ddrescue to read...

Preliminary notesIf you just want to mount the filesystem directly from the disk then see that other answer of mine. If you want to ddrescue the filesystem then keep reading.Most commands in this...

View Article
Browsing all 656 articles
Browse latest View live