Newest Questions

1 vote
0 answers
34 views

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 ...
Elisa K. K.'s user avatar
3 votes
1 answer
92 views

$ 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....
finefoot's user avatar
  • 3,586
0 votes
1 answer
56 views

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,...
Saimon Bigman's user avatar
1 vote
0 answers
22 views

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 [...
M. Utku ALTINKAYA's user avatar
3 votes
3 answers
871 views

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 ...
EmberNeurosis's user avatar
4 votes
1 answer
177 views

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&...
Melab's user avatar
  • 4,458
1 vote
1 answer
30 views

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=($(...
James Durand's user avatar
1 vote
1 answer
43 views

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....
wepoo's user avatar
  • 13
0 votes
1 answer
35 views

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 ...
Melab's user avatar
  • 4,458
0 votes
0 answers
19 views

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 ...
UNRESTR1CTED's user avatar
0 votes
2 answers
58 views

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 ...
peterh's user avatar
  • 10.5k
2 votes
1 answer
73 views

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 ....
jcubic's user avatar
  • 10.4k
0 votes
1 answer
37 views

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 ...
Mehrdad Seyrafi's user avatar
0 votes
1 answer
47 views

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 ...
jp_'s user avatar
  • 127
0 votes
0 answers
39 views

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 ...
Mamoona's user avatar

15 30 50 per page