Category "linux"

To replace a immediate text after pattern match in Linux shell using sed

Content of a json file "iso_checksum": "md5:32fdf4fef4ef" I have stored value of new checksum in a variable v = "4dfv45ffdf" I want to replace the value after

Process swap usage with use ID

I've been trying to get a one liner working updated to add the user name for the processes consuming swap on the system but having a hard time getting it to wor

Git repository for multiple Linux users

after reading some of topics I still cannot find solution for this problem. Lets say this is my infrastructure: Two types of servers: dev and prod Two types of

Powershell running .NET Core on Linux RedHat giving SSL error connecting

I am currently trying to use dotnetcore to run a script over Powershell. This script uses a library that will authenticate with Azure using a service principal

Why are "--slave" and "--no-restore" being used by commandArgs when I call my R file with Rscript

I am running an R script using Rscript from the command line (linux) like this: Rscript myscript.R inputfile1.csv inputfile.csv integerArg My command args are

bash output with extra newline within the string

I use the following command to output PID and FD related to CLOSE-WAIT sockets. sudo ss -p | grep CLOSE-WAIT | awk '{ print $7 }' | sed 's/,pid=/ /' | sed 's/,f

Converting Makefile to CMake cannot find linked shared object

I am attempting to convert a working Makefile into a CMake and need a little assistance. I am trying to cross compile a small program for a yocto device from a

How to set LD_PRELOAD in systemd

I want to hook some functions in libssl with LD_PRELOAD in systemd. In systemd file I put ExecStart=/etc/myscript.sh and in /etc/myscript.sh I put #!/bin/sh LD

Cant find the background apps tray in Pop!_OS

All apps like "Steam", "Slack", "Anydesk" and etc. They were all displaying in black/white in a tray at my panel. The update for POP!_OS was pending for a few w

weird visual studio to linux results

I have this project where we have to convert a made up simple coding language given through a txt into a c++ language and currently I am having a problem with c

Multiple process curl command for urls to output to individual files

I am attempting to curl multiple urls in a bash command. Eventually I will be curling a large number of Urls so I am using xargs to use multiple processes to sp

Snort3 docker container cannot start DAQ with "permission denied" on interface

I have installed snort3 via the official docker container. When I use docker cp to copy in pcap files snort scans the pcaps just fine. However, when running IDS

Send email using mail or mailx or sendmail containing two different html files - One as body and other as attachment - in RHEL 6.10

I am trying to send an email from linux machine to my Team's DL. The email should contain one html file as an attachment and one html file as a body. I am using

Cross-platform method to detect whether /dev/tty is available & functional

I have a bash script from which I want to access /dev/tty, but only when it's available. When it's not available (in my case: when running my script in GitHub A

How to stop the execution of a running code in x11

I have a program that draws on a x11 window and I'd like to quit it as soon as I press any key. With the code I have, I cannot stop the program with a keypress

Linux ffmpeg utomatic encoder selection failed for output stream

I'm having an issue with doing basically anything in ffmpeg. When I input basic ffmpeg -i filename.mp4 filename.mp3 or ffmpeg -i video.mp4 -b:a 192K -vn music.m

Compilation Failing for xalan-c in Ubuntu

I am trying to build xalan-c (version 1.12) with icu in Ubuntu but it fails. Could anyone help me with this. Environment : Ubuntu 20.04 Steps to reproduce : Cl

generate random number and fill them in array

i want to generate 10 random number between 1 and 100 and store them in an array #!/bin/bash for ((i=0; i<10; i++)) do done

Kubernetes nfs-subdir-external-provisioner stuck in ContainerCreating / Unable to attach or mount volumes: unmounted volumes=[nfs-client-root]

I'm trying to install a nfs-client-provisioner and run a mongdb with it. Unfortunately, the nfs-client-provisioner hangs in ContainerCreating and says "Warning

How to check if a filesystem supports hard links in linux?

What's going on here is I have a construct that goes something like this: if (link(source, intermediate)) { if (pathconf(dirname(source), _PC_LI