Newest Questions
244,775 questions
0
votes
1
answer
30
views
Invalid characters in ssh sessions
I'm opening an SSH session from Fedora to Raspberry Pi OS. Accented and special characters are replaced with question marks. Preferably I would like to learn to solve this without changing the server'...
1
vote
0
answers
19
views
How does the Linux kernel decide whether to deny memory allocation or invoke the OOM killer when a cgroup exceeds its memory limit?
This question comes from my curiosity about how Kubernetes handles resource requests and limits, especially memory constraints defined for pods.
I understand that Kubernetes uses cgroups under the ...
-2
votes
3
answers
67
views
Insert a character after every 2 character but discard first 2 characters
I want to print a colon after every 2 characters of alphanumeric Value and I found something like below. But I am not sure how to remove initial 2 characters and what is the meaning of 1 in last of ...
2
votes
1
answer
106
views
Is it possbile to replace the disks in LVM raid with larger disks?
Currently I have a file server running Centos 9 Stream. The operating system is on it's own disk and own logical volume group and logical volumes. The are a further 3 disk attached to the motherboard ...
3
votes
1
answer
58
views
buildroot: zgrep + zless not working
I've noticed that zgrep and zless are not working in Buildroot 2025.05.
I managed to fix zgrep by adding a symlink from /usr/bin/grep to /bin/grep.
zless is a script and I suspect the issue is that ...
1
vote
1
answer
18
views
How to send a mail with text file as content and image as attachement
I want to send the content of file.txt as the body and file.png as attachment.
I only have mail cli (mail (GNU Mailutils) 3.10). No other software package can be installed, so Mutt is out of the ...
-1
votes
0
answers
35
views
scp from local to blackhole [closed]
I expect I can do this
scp localfile.tar root@server:/dev/blackhole
Which is actually performing write to a destination in root@server:/root/whitehole.
So, the scp user cannot perform.
ls /dev/...
0
votes
1
answer
66
views
get rid of "Can't Update Brave" message
I've been using Brave as my browser for a while, and whenever I start the browser it opens a message box "Can't Update Brave". This is a minor thing, but it's kind of driving me nuts.
Like ...
1
vote
1
answer
37
views
What is the `Xorg.0.log` file used for on SteamOS in Desktop Mode?
I'm busy running very low on storage with my Steam Deck and so I went into Desktop Mode to see what's taking up all the space on my device and I found a file called Xorg.0.log and the file is almost ...
-2
votes
1
answer
30
views
What is the `sddm.log` file for on SteamOS in Desktop Mode?
I'm busy running out of storage on my Steam Deck and so I went into Desktop Mode to see what's taking up all the space and I found a file called sddm.log and the file is almost 15GB in size.
What is ...
-3
votes
2
answers
84
views
Linux kill command returns "No such process"
In the below shell script I have list of process IDs which need to be killed. When killing a process I am getting kill: 1234567: no such process error even after checking if the process id existence ...
1
vote
1
answer
59
views
why is rsync slow compared to cp
I asked the question yesterday of why is NFSv4 so much slower than scp.
I narrowed down things a bit, my real question now is why is rsync slow compared to cp ? as I don't think NFS is a factor. I've ...
-2
votes
3
answers
74
views
How to pass an array as an argument to a function
In the below shell script I am passing an integer and a string array to a print function which should print each parameter separately, but I'm not able to. I don't want make a reference of passed ...
1
vote
0
answers
20
views
Regular CPU overload on videocalls
I have this reoccurring problem in a variety of videocall platforms. When I'm in a call the CPU usage repeatedly goes up to 100% for around 1 or 2 minutes. During these episodes, the whole system is ...
0
votes
0
answers
25
views
ALSA devices disappeared from OBS Studio after reinstalling it under Flatpak
I have been using OBS studio under Manjaro (archlinux based) OS and it worked all well so far.
Recently I started streaming on Youtube but I noticed that the button "Connect Account" wasn't ...
-1
votes
3
answers
97
views
Generate hashes automatically and continuously with a script and stop by pressing a key?
I need a part for a script in bash where hashes are generated automaticaly and continuously and when I press a key the generation stops and the last hash at which I stopped is displayed.
I've cobbled ...
0
votes
1
answer
20
views
USB Drive Read/Write Errors, Rasbperry Pi 3A+, Reproducable Error
Use Case
I am using a SanDisk Ultra USB 3.0 Drive (128GB Capacity) with a Raspberry Pi 3A+
The drive is mounted using /etc/fstab:
UUID=c85... /home/user/Videos/YouTube ext4 defaults,noatime,nofail 0 2
...
2
votes
2
answers
106
views
Monitor continuous blanking issue on Ubuntu 20.04
I have a workstation at work that was given to me for a project and it's on my desk with my work's laptop. Not liking the idea of having 2 mice and 2 keyboards on my desk and all, I decided to buy a ...
0
votes
1
answer
61
views
How to pass an argument by reference to a function in KornShell (PDKSH 5.2.14)
In Bash I can use
local -n ref_name=$1
to pass an argument to a function by reference, but the same syntax in ksh throws an error saying
typeset: -n: unknown option
I tried nameref ref_name=$1 ...
-3
votes
0
answers
37
views
Soft link to mount point
Need to write a script that will create a soft link to the mount point created by udisks2 and delete it when unmounting.
Make it so that the mount point is in /media, or to a custom directory that ...
0
votes
1
answer
18
views
OBS Studio 31.1.2 does not show Youtube "Connect Account"
I have installed in my Linux machine OBS Studio version 31.1.2 and I'm trying to make a Youtube live with it but it only shows the Stream key option but the option "Connect account" is not ...
1
vote
2
answers
64
views
How to pretty print one column of piped input?
bash 4.4.20 and jq-1.6 on RHEL8
I get this nice output from jq and column. Hard to read, though.
pgbackrest info --output=json \
| jq -r '.[] | .backup[] | "\(.type) \(.label) \(.info.delta)...
-2
votes
0
answers
24
views
Sending an input to another workspace
I want to send an input to a workspace without having to switch from the one I have in focus.
I have a designated input device which I would use for nothing else.
I am using Gnome 42.9
Thank you for ...
5
votes
4
answers
329
views
Remove new lines and everything after comment symbol with awk or sed
How to remove comments and newline symbols without using two pipes.
I have bookmarks.txt file with comments.
https://cookies.com # recipes cookbook
https://magicwands.com # shopping
I can copy link ...
0
votes
0
answers
54
views
why is NFSv4 so much slower than scp
why is NFSv4 so much slower than scp?
mellanox 100gbps switch
no load on two servers, just me, no load on the switch
RHEL-8.10 x64-64
scp *tar 192.168.2.1:/data/
a.tar ...
1
vote
2
answers
67
views
How can I temporarily bypass an alias of a keyword in Bash?
If I alias a keyword, I can't figure out how to bypass it.
$ alias if='echo "GOTCHA!"; if'
$ if true; then echo y; fi
GOTCHA!
y
The usual tools for bypassing an alias, like escaping, ...
1
vote
0
answers
40
views
Mount program did not pass remote address: NFS client is debian 13, server MacOS
My mac is exporting an NFS file system, as best I can tell. showmount -e on the mac shows an export.
➜ infrastructure git:(bim-typo) showmount -e
Exports list on localhost:
/Users/bensonmargulies ...
1
vote
2
answers
179
views
Check if a given function name exists in a sourced shell script file
In Bash I can use $(type -t function_name) = "function" to check if the function by name function_name exists or not in a sourced file which is sourced using source file_name command. I'm ...
6
votes
2
answers
935
views
How to quickly wipe ext4 superblocks on a NVMe SSD? Secure erase?
Based on this question: How to erase/wipe all ext4 metadata, not just the filesystem signature 53 ef?
My SSD is under warranty and I shall hand it over today, so excuse me for the hurry now.
It ...
0
votes
0
answers
12
views
NetworkManager error in raspberry using Dispatcher.d events
Our goal was to create an AP mode on a Raspberry Pi easily, so we could connect to it from outside, connect to a webserver, send form details about the WiFi network, and then connect to that WiFi ...