Unix & Linux Stack Exchange Community Digest

Top new questions this week:

Are Linux kernels compiled with UBSAN turned on?

For those who don't know, UBSAN is Undefined Behavior Address Sanitizer, and it places a whole bunch of checks in a compiled piece of code to detect mistakes, such as out-of-bounds access and various ...

linux-mint linux-kernel crash  
user avatar asked by Zebrafish Score of 6
user avatar answered by Stephen Kitt Score of 8

Fool a program it has a pty of specific size

I use nethack with ttyrec to archive my funny deaths. My only issue is that nethack uses as much screen space as possible to print log massages. I would like to limit it to only work with 80x24 ...

linux terminal tty serial-console pty  
user avatar asked by jptrzy Score of 5
user avatar answered by Stéphane Chazelas Score of 9

POSIX sh alternative to using [[ ... ]] in Bash

I am using this code to parse the first argument passed to my script. It error handles and it works just the way I want it: if [ -z "$action" ]; then printf "[${c_RED}ERROR${c_RESET}...

bash shell-script shell posix  
user avatar asked by EmberNeurosis Score of 5
user avatar answered by cas Score of 13

How to check for IPv6 colisions in Linux

I understand that IP colisions are incredibly rare under IPv6. Most subnets are at least 64bit, meaning that the risk of true random collision is neglegable. However there are circumstances where ...

linux ipv6  
user avatar asked by Philip Couling Score of 3
user avatar answered by grawity Score of 5

reformat data for PCA with AWK

I'm working on wrangling some data into a matrix format for a PCA analysis. I have attempted a more straightforward version with R, but pivot_wider() fails due to the massive size of this dataset (~4....

awk bioinformatics  
user avatar asked by Matteo Score of 3
user avatar answered by Stéphane Chazelas Score of 5

unison permissions between machines

I have two linux computers: personal (arch, full root access) workplace (ubuntu, no root access). I am using "Unison" to sync some selected directories from one computer to an ext4 USB ...

permissions filesystems synchronization unison  
user avatar asked by arismav Score of 3
user avatar answered by arismav Score of 0

Detect if any ping succeeds

I am trying to ping several IP addresses / hostnames, and determine whether any of them respond. Starting from this question, I'm using the echo host1 host2 host3 | xargs -n1 -P0 ping -c1 -w2 approach....

linux networking ping  
user avatar asked by Michael Firth Score of 2
user avatar answered by Stéphane Chazelas Score of 7

Greatest hits from previous weeks:

How to display `top` results sorted by memory usage in real time?

How can I display the top results in my terminal in real time so that the list is sorted by memory usage?

terminal memory top  
user avatar asked by Theodor Coogan Score of 616
user avatar answered by Ramesh Score of 703

How to copy a file from a remote server to a local machine?

In my terminal shell, I ssh'ed into a remote server, and I cd to the directory I want. Now in this directory, there is a file called table that I want to copy to my local machine /home/me/Desktop. ...

scp cp  
user avatar asked by omega Score of 566
user avatar answered by heemayl Score of 847

How to generate a random string?

I would like to generate a random string (e.g. passwords, user names, etc.). It should be possible to specify the needed length (e.g. 13 chars). What tools can I use? (For security and privacy ...

password string random  
user avatar asked by landroni Score of 666
user avatar answered by herbert Score of 642

How can I replace a string in a file(s)?

Replacing strings in files based on certain search criteria is a very common task. How can I replace string foo with bar in all files in the current directory? do the same recursively for sub ...

text-processing awk sed perl  
user avatar asked by terdon Score of 981
user avatar answered by terdon Score of 1302

How does reverse SSH tunneling work?

As I understand this, firewalls (assuming default settings) deny all incoming traffic that has no prior corresponding outgoing traffic. Based on Reversing an ssh connection and SSH Tunneling Made ...

ssh networking firewall ssh-tunneling remote-management  
user avatar asked by Ali Score of 497
user avatar answered by ghoti Score of 568

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution) libreoffice

Every time I try to upgrade it shows me this message sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --...

ubuntu apt software-installation dependencies libreoffice  
user avatar asked by Carlos tmf Score of 24
user avatar answered by sicvolo Score of 36

How do I copy a folder keeping owners and permissions intact?

So I was going to back up my home folder by copying it to an external drive as follows: sudo cp -r /home/my_home /media/backup/my_home With the result that all folders on the external drives are now ...

permissions cp  
user avatar asked by Psachnodaimonia Score of 596
user avatar answered by guido Score of 726

Can you answer these questions?

Workspaces on Gnome 49

I have Debian Forky (Testing). I have upgraded to Gnome 49: gnome-shell --version GNOME Shell 49.1 The most annoying thing is that my workspaces do not work. If I go to show apps I can see 4 ...

debian gnome-shell  
user avatar asked by tukan Score of 1

Installing Rocky Linux when secure booting in BIOS is disabled

My colleague created a Rocky Linux 10 USB drive to replace Windows 11. However, he can't boot from it because it only seems to accept UEFI 'secure' boot options. He had disabled secure booting in the ...

uefi secure-boot rocky-linux  
user avatar asked by Hari Score of 1
user avatar answered by ianis Score of 0

How to get current scaling of Gnome in terminal?

How to get current Scaling setting in terminal? This is how I can see it and change in Gnome Settings: It's 300%. How to get this value using terminal instead of GUI settings app? This one is ...

gnome  
user avatar asked by Podbrushkin Score of 2
You're receiving this message because you subscribed to the Unix & Linux community digest.
Unsubscribe from this community digest       Edit email settings       Leave feedback       Privacy
Stack Overflow

Stack Overflow, 14 Wall Street, 20th Floor, New York, NY 10005

<3