Trending questions
244,120 questions
0
votes
1
answer
23
views
Receiving " syntax error near unexpected token `then'" from remote Linux server with if, then, fi
Good day.
I need help in determining why I get "syntax error near unexpected token `then'" from the following command:
for vm in {20..30} ; do ssh -q -o "StrictHostKeyChecking no" ...
0
votes
1
answer
30
views
How can I fix badly broken permissions on root directory
I accidentally changed the permissions of everything in my root directory with
sudo chown -R martin:www-data /
by hitting enter too early. I stopped this command is it starting throwing errors about /...
0
votes
1
answer
35
views
Unix or Linux command to compare binary files
I'm looking for a command that compares binary files.
Of course, I know about diff, but it is not very good at binaries.
I have two files from a error-prone source (scratched dvd) which should be ...
0
votes
0
answers
35
views
bash variable substitution inside heredoc delimiter: how does it work? [duplicate]
For a school project, I am tasked with making my own (simplified) shell, with bash being the reference point. This includes replicating heredoc behavior which was fun until I stumbled upon variable ...
0
votes
0
answers
10
views
Get the output filename(s) for a running slurm job
If I run a Slurm job with sbatch, I can specify output and error filenames with a custom format. But how can I look up these filenames, given the job ID (e.g. 123456) of a running job?
For example:
...
0
votes
1
answer
50
views
How can you run two scripts one by one but on repeat? [closed]
I have a backup script and a deletion script for old data, I want to basically run these two on repeat.
Once deletion is complete, start the backup. Once the backup is complete, start the deletion.
...
4
votes
4
answers
775
views
Is mkswap hw dependent?
I'm setting up Home Assistant, on a Raspberry Pi, to use Network Boot with a Ubuntu x86 server.
The initial bootup seems to be working. The systemd process is now creating a swapfile on the NFS mount. ...
0
votes
1
answer
55
views
Why doesn't LibreOffice update to the latest version on Debian 12? [duplicate]
I am unsure why apps aren't upgraded to the latest version even after updating and upgrading from the terminal.
For example, I have version 7-something of LibreOffice, but the LibreOffice website has ...
0
votes
1
answer
74
views
Opening Vim under script(1) breaks output. Can Vim detect script?
Opening vim while recording with script causes script to go wild (my screen starts filling up with a bunch of crap, some of which says "script", and I also believe it is colored neon green).
...
0
votes
1
answer
31
views
How to run a host linux command tool from wine?
Inside cmd.exe from wine, how to run /bin/ls and get output into cmd.exe, no DISPLAY, cli only. I know start /unix exists, but this attempt to launch an external job/window. I am in terminal only, and ...
-2
votes
1
answer
25
views
Kali install rootless edition on termux failed with error 404
I'm trying to install Kali rootless edition on my smartphone within termux but I get error 404 when launching install-nethunter-termux
I've follow the official site: https://www.kali.org/docs/...
0
votes
1
answer
26
views
Duplicate an audio channel and re-route it to another channel in real time
Let's say I want to have my Left channel copied and overwritten to the Right channel. Is this possible, in real time?
3
votes
0
answers
27
views
Mount Solaris 9 (Sparc) drive in Solaris 11 (x86)
Need help please to mount a Solaris 9 disk via USB in a Solaris 11 VM. This is so I can get my files off the Solaris 9 disk that I haven't seen in years.
Following this doc:
https://docs.oracle.com/cd/...
0
votes
0
answers
5
views
Help please with KVM VM bridging and Netplan configuration
First off, let me say that to me, networking is a black art, practiced by strange men in hooded cloaks, chanting strange incantations. I can 'do' basic networking.
The background is that I have ...
3
votes
1
answer
128
views
Multiple selection with fzf and vim having new lines in path/file names
I have a Bash function that follows the fzf key-bindings in key-bindings.bash.
# shellcheck disable=SC2206
__fzf_edit_file__() {
builtin local -a opts
builtin local edit_file file
opts=(
&...