Unix & Linux Stack Exchange Community Digest

Top new questions this week:

What is the meaning of the angle bracket syntax in `apt depends`?

When running apt depends on some packages (e.g. libgtk3-dev on Ubuntu 24.04), some names are surrounded by angle brackets (<>) and another package name is displayed in a line underneath it: ... ...

debian apt dependencies  
user avatar asked by anol Score of 7
user avatar answered by Gilles 'SO- stop being evil' Score of 10

How can I confirm for sure that a CVE has been mitigated on a RHEL system?

I have this problem, I'm trying to see if a group of servers are vulnerable to the CVE CVE-2024-1086 so what I do in the server is rpm -qa --changelog kernel | grep 2024-1086, and I get this as output:...

rhel kernel vulnerability  
user avatar asked by VaTo Score of 6
user avatar answered by telcoM Score of 11

Predictable Network Interface Names: ensX vs enpXsY

I know that something like eth0, eth1, ... has been replaced for long time by more predictable names. However, I don't understand what rule is applied if comes to Ethernet devices. I have multiple ...

debian devices  
user avatar asked by Tintenfisch Score of 5
user avatar answered by telcoM Score of 14

Are there alternatives to alias I'm not aware of?

Today I started to notice weird behavior running a local command for a binary installed through Go. It seems the command is aliased, but consulting alias, it isn't. The command buf somehow executes cp!...

bash path alias  
user avatar asked by Tim Score of 4
user avatar answered by muru Score of 9

How to check if part of a symlink goes outside a directory in posix shell

I have about 43996 symlinks in a directory and want to check if any of them at any point of their path exit that directory in a posix shell script even if the end destination falls inside the ...

shell symlink  
user avatar asked by Tim_Kritikos Score of 4
user avatar answered by Gilles 'SO- stop being evil' Score of 2

Cut and replace every Nth character on every row

I have predictable piped input, I want to iterate over each row and change two characters. the character positions are 19 and 20 (on every row.) The 19th character is a comma, I want to cut that. The ...

text-processing awk sed  
user avatar asked by XJMZX Score of 3
user avatar answered by terdon Score of 8

git, merge changes from another (related) repo (says already up to date)

This is clearly one of those "I've missed the basic principle" type issues. Luckily since everything is now "on the web" I can be very specific and not need to say "for ...

git merge  
user avatar asked by GraemeV Score of 2
user avatar answered by terdon Score of 1

Greatest hits from previous weeks:

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 536
user avatar answered by heemayl Score of 803

apt-get update failed to fetch debian amd64 packages while building dockerfile from maven:3.5.2-jdk-8

Dockerfile: FROM maven:3.5.2-jdk-8 RUN apt-get update && \ apt-get install -y python-dev python-pip RUN pip install awscli --upgrade Build Logs: Preparing build context archive… [========...

debian apt docker maven  
user avatar asked by Nikhil Menghrajani Score of 53

Execute shell commands in Python

I'm currently studying penetration testing and Python programming. I just want to know how I would go about executing a Linux command in Python. The commands I want to execute are: echo 1 > /proc/...

python  
user avatar asked by Xanmashi Score of 93

How to install Desktop Environments on CentOS 7?

I have recently installed CentOS 7 (Minimal Install without GUI) and now I want to install a GUI environment in it. How can I install Desktop Environments on previously installed CentOS7 without ...

centos gui desktop-environment  
user avatar asked by αғsнιη Score of 217
user avatar answered by αғsнιη Score of 340

Zip all files in directory?

Is there a way to zip all files in a given directory with the zip command? I've heard of using *.*, but I want it to work for extensionless files, too.

command-line wildcards zip  
user avatar asked by tkbx Score of 771
user avatar answered by derobert Score of 1087

How to know number of cores of a system in Linux?

I wanted to find out how many cores my system has, so I searched the same question in Google. I got some commands such as the lscpu command. When I tried this command, it gave me the following result: ...

linux cpu  
user avatar asked by Mr ASquare Score of 358
user avatar answered by user1403360 Score of 145

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 624
user avatar answered by herbert Score of 588

Can you answer these questions?

Modifiers not working when setting "custom" layout through Desktop Environment

I added a custom keyboard layout, noted, to my system using this guide. In a nutshell, I downloaded a file called custom and put it to the symbols folder: curl 'https://dl.neo-layout.org/custom_noted' ...

keyboard-layout xkb  
user avatar asked by Max Görner Score of 1

How to interpret the RSan memory?

From the man page of top, I found RSan is part of RES (resident memory) as follows. Private | Shared 1 | 2 ...

linux memory top  
user avatar asked by Zachary Score of 1
user avatar answered by Zachary Score of 0

Running a program/script before a user logs in on RedHat Linux GUI

I am looking to run a script prior to a user being able to log in on the GUI. Its a basic script, do you accept Ts&Cs Y/N, enter user name, data is captured and stored. Then once complete takes ...

linux scripting gui programming  
user avatar asked by K_Sparky1029 Score of 1
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
-