Newest Questions
245,228 questions
1 vote
0 answers
34 views
How to use dm-mirror, or 'dm-raid raid1', with dmsetup only (no LVM automation)?
The goal is to create a mirror (aka raid1) device from two devices (to be mirrored), and (if needed) a third device that serves as the dirty region log / metadata / whatever. That, without using LVM ...
3 votes
1 answer
92 views
Wine cmd automatically escapes quotes, adds backslash
$ wine cmd /c 'echo "hello world"' \"hello world\" Where do the backslashes come from? The command behaves differently in an interactive session: $ wine cmd Microsoft Windows 6.1....
0 votes
1 answer
56 views
Linux doesn't boot. I get a command prompt GRUB2
I tried to restore Grub using Life-CD, but some error popped up during the process. Now I want to boot Linux manually. I enter the following commands: grub> ls (hd0) (hd0,gpt1) (hd0,gpt2) (hd0,...
1 vote
0 answers
22 views
Wayland with multiple GPUs
I have a Vulkan application, I want to use iGPU(AMD) that has no monitors attached for Vulkan while running Wayland on dGPU(Nvidia). When I pick AMD physical device swapchain creation fails with [...
3 votes
3 answers
871 views
How do I ensure a bash script argument is a specific value?
The following script is supposed to check $1 and see if it is a specific value. It only works when one Bash [[... =~ ...]] regex check is passed in an if statement. The error is: When more than one ...
4 votes
1 answer
177 views
Choice of field separator affects sort's ordering
Suppose we have a script named test_sort in our $PATH with the following contents: #!/bin/bash function echo_text () { printf -- "%s\n" "$fc$oc$fs$lc" printf -- "%s\n&...
1 vote
1 answer
30 views
White spacing is causing variable to not contain all text in result
Disclaimer: I am brand new to bash I'm building a dialog box and trying to get some Docker commands to populate results. I am using this to return a result, which works for the most part. result=($(...
1 vote
1 answer
43 views
Debian 12 CLI - Static IP for a 5 Year Old
I've set up a little headless home server on RaspPi Ubuntu and now also a headless Debian 12 PC but remain confused as to the proper way to configure the network (Ethernet, Static IP, DNS[1.1.1.1/8.8....
0 votes
1 answer
35 views
Sorting output from find like tree's output
Here is a sample directory tree as it would appear if it were sorted in character code order (i.e., directories are not listed first): ${PREFIX}/ .bashrc .include.sh.d/ common.sh ...
0 votes
0 answers
19 views
Clonezilla image restoration
So I want to restore two partitions from a clonezilla image, let's call them x and y, to a different set of partitions on a different device, m and n. The issue I currently face is that Clonezilla ...
0 votes
2 answers
58 views
How to replace all `[` and `]` in sed?
Logical way would be to use an 's/[\[\]]/_/g' regexp replace, however it does not work as intended to. It replaces a chain of [ and ] with a single _. $ echo 'x[]x'|sed -E -e 's/[\[\]]/_/g' x_x $ echo ...
2 votes
1 answer
73 views
How to configure multiple credentials in MariaDB for easy access?
I can't find this information. I also use Grok, but his solution didn't work. How can I add multiple accounts/credentials to different MySQL/MariaDB servers to be used with mysql command? Similar to ....
0 votes
1 answer
37 views
Why SMTP command is running always?
Almost always I can see many smtp processes in ps aux command output like this: postfix 924674 0.4 0.0 44460 9212 ? S 18:54 0:00 smtp -t unix -u -c postfix 924675 0.2 0.0 44460 ...
0 votes
1 answer
47 views
Linux - how to hibernate and then start the computer again?
I have a system where I dual-boot linux and windows. When I switch between them, I usually do the following: Hibernate the old os Press the power button Select the new os in grub However, I would ...
0 votes
0 answers
39 views
Why does `chmod 640` prevent group read access on macos?
I'm a student learning UNIX permissions and scripting on macOS. I created a short script that makes a file and applies chmod 640. However, a user in the same group cannot read the file. Here is the ...