There are four entries in /dev/disk which I am interested in. by-id by-label by-path by-uuid Which of the entries contain immutable names for physical drives? By immutable, I mean that the name shouldn’t change if I change the usb/pci port used to connect to the drive. destroy and create partitions (GPT…
In-script approval screen, keeps showing signatures for approval although it was already approved
I have jenkins container which runs pipeline, and fails on script approval: Although I went to in-scriptApproval screen, and approved it, on the next run it shows them again. The same job works perfectly on other VM Jenkins. Answer The issue was with the wrong UID and GID of the user. after I’ve changed…
Weird Backtrace in Perf
I used the following command to extract backtraces leading to user level L3-misses in a simple evince benchmark: As it is clear, the sampling period is quite large (10000 events between consecutive samples). For this experiment, the output of perf script had some samples similar to this one: At the bottom of …
What is the size in bits of a file descriptor in an x64 system running Ubuntu 19.10?
What is the size in bits of a file descriptor such as standard input and standard output, is it a 32-bit integer? Answer If you are talking about the actual file descriptors returned by (and used for) Linux syscalls, then take a look at the manpage for open etc. as @JonathanLeffler suggests. For instance: The…
Using sed/awk to extract multiple strings from each line
I have a file that contains 30million lines(so big file) On each line I have this kind of data: I need to extract both the title value and the rank value so: Little help? 🙂 I have tried my little heart out and nothing, can only extract one piece of data from each line Answer Except in the case there
What does the number in sysctl configuration file denote? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
does linux kill() return after the process excute signal handler?
I want use kill() to kill a program. does linux kernel ensure that the program is killed before kill() returned? If not, I have to check whether the program is killed already. Answer does linux kernel ensure that the program is killed before kill() returned? No, kill merely sends a signal to a process or grou…
Looking to do a simple script for compressing and decompressing a file in linux
I need to take a 7z file and uncompress it, then recompress it with zip, and I’d like to do with this with a script, what’s something quick and basic I can use? It’s centos if that would make a difference. Answer Please refer to repack-7z-files-to-zip-files-in-linux: Personally I use the 7z …
error while loading shared libraries: libgmock.so: cannot open shared object file: No such file or directory
I am currently facing an issue with a project of mine foudn while configuring CI. Resume The problem faced is the following: error while loading shared libraries: libgmock.so: cannot open shared object file: No such file or directory. For the problem above I am not installing the google test/google mock frame…
cron command not found – CentOS 7 [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …