Category "linux"

Linux - How to get a string specific string from a specific line?

Lets say that I have the following DeletedFiles.txt file: test1.zip - date-removed='6-16-2021' test2.zip - date-removed='6-17-2021' test3.zip - date-remov

Wordpress Add New Post shows this "Warning: Attempt to read property "post_type" on null in /var/www/html/blog/wp-includes/post.php on line 7589"

I recently migrated my website to new AWS ec2 linux instance. Php8.0, MySql8.0, all pages work fine. Wordpress database was exported from Mysql5.7 and imported

Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) on github actions

i have created an github action to deploy the code when pushed. it cause this error when installing the packages. Run npm i --no-optional && cd client &

kubernetes config map - syntax error: unterminated quoted string

I am getting below error when trying to attach shell script as config map. I am not sure what's the issue because script work without adding in config map It sh

Executable gives different FPS values ​in Yocto and Raspbian(everything looks the same in terms of configuration)

In Yocto project, built my project which is running on Raspbian OS. When i run executable, i get half FPS compared to executable running on Raspbian OS. The lib

Is ext4 considered file storage or block storage?

I have been researching the differences between File, Block and Object storage. I've tried to relate the native Linux File System with one of these types of sto

Recursively find files with a specific extension and copy them to a new directory with new names

I tried to find all the .xvg files generated by Gromacs inside a directory as well as its subdirectories and then copy them to a new directory, with new names f

Why live share not work on visual-studio code-oss?

I have installed in my arch system code-oss following this guide https://wiki.archlinux.org/title/Visual_Studio_Code i have also modified product.json ,installe

Hello!, there is a package I need to download

exempi is a package for Linux and I am a Windows user, until now no windows releases have been made but I need it, so my Question is can I install it on windows

Is there a way to find exact location ( adress ) of file on disk?

I'm developing a software using C++ for Windows/Linux. I want to create a file (txt, json, license, you name it) at runtime, and save it somewhere. Is it possib

escape single quote awk command in jenkins pipeline

I get error "awk: fatal: cannot open file `print' for reading (No such file or directory)" when executing this command in jenkins pipeline. sh """ssh -o StrictH

How to create Azure VM with Linux custom Partion using Packer

I am exploring Azure cloud, If I install virtual machine it comes cloud provider enabled partitions, But what I need to achieve is custom partitions and I am P

Can i expose multiple docker containers behind nat to be accessible from the web [closed]

I have a single static ip and want to know if it is possible to run several containers (lets say with ssh and apache) and let them be accessib

How do I restart R in linux using a line of code?

I need to restart an R session running in linux using a line of code. When the R session restarts I need it to load an existing R script and for the new R sessi

How return output in local machine from socat command linux

I have an up and running service ( is an emulated machine or something similar ) on my local Ubuntu machine and i'm able to access it through a serial port and

Escape & character in groovy script while using curl

I'm using bash execution of curl in groovy script: descr = """ curl --silent -k -u test:test "https://bitbucket/rest/api/1.0/projects/test/repos/test/pul

Managed to leak puts function address in libc, but unable to get addresses of other functions

I am currently learning about binary exploitation. Now i am working with a binary (Linux) that is vulnerable to a stack buffer overflow (ASLR and NX are enabled

VSCode using relative paths in build task on remote set up

I'm trying to add a build task to build the current file, just a simple "make path/to/file.o". I'm using vscode on windows 10 over a remote SSH connection to l

How do you correctly cleanup and re-use SysV shared memory segments?

I have been writing some gnarly test code for an API that uses the Linux SysV SHM interface. i.e. ftok(), shmget(), shmctl(), shmat() Unfortunately I am not fre

My Kali linux showing 'No module named importlib' 'from importlib import import_module'

Trying to install build dependencies with pip which is installing in /usr/local/lib/python2.7/dist-packages As I try to install proceed gives an error Collectin