Category "linux"

Linux getenv() could not get $PS1 or $PS2

My home world is to write a shell. and I must use $PS2. but when I write a code like this: char *ENV_ps2; ENV_ps2 = getenv("PS2"); I just found ENV_ps2 was

BASH: Filter list of files by return value of another command

I have series of directories with (mostly) video files in them, say test1 1.mpg 2.avi 3.mpeg junk.sh test2 123.avi 432.avi 432.srt test3 asdf.m

How to delete or clear all the messages from the POSIX message queue in c?

I want to delete all the messages from the POSIX message queue. I searched on the internet but I didn't find any way to do it instead I found the way to delete

llvm/Support/TargetRegistry.h: No such file or directory

I have this error when I make project in WSL(Ubuntu 20.04). And I have installed LLVM and Clang.Hou should I do? Kconfig Makefile README.md build configs i

npm error installing truffle for ethereum development

When I try to install truffle using npm, the following output appears: npm WARN deprecated [email protected]: This package is broken and no longer maintained

How to undo extracted files by 7z

I was trying to install aws cli. I executed the following command curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" It downloade

when i open unity and make something project then the error is coming that " no usable version of libssl was found "

i am new to linux ubuntu . i am using ubuntu 22.04 . recently i downloaded unity and it is showing error " no usable version of libssl was found " How to fix t

HBase Shell - org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet

I am trying to set up distributed HBase on 3 nodes. I have already set up hadoop, YARN ZooKeeper and now HBase but when I launch hbase shell and run the simples

How to run multiple "docker cp" commands at the same time in the same Linux VM?

I executed "docker cp" to copy 2 different folders inside a container application to the host. Both the size of the folders are big. However, I found that only

Relationship between shared memory and files

Ignoring some details there are two low-level SHM APIs available for in Linux. We have the older (e.g System V IPC vs POSIX IPC) SysV interface using: ftok shmc

Error installing dotnet-skd-2.2 on virtual linux machine. E: No installation candidate exists for package "libicu"

i try to deploy my .net web application using this guide When i try this command sudo apt install dotnet-sdk-2.2 i get the following error message. The followin

Running commands on remote server transparently

I am developing a number of applications that need a bit more power than my local machine has. So I'd like to run them on a remote machine. This is all fairly s

AWK return/print as associative arrays in Bash

With this command I am trying to filter through my firewall. In order to extract the firewall rule ID number and the IP address. existing=($(ufw status numbered

Cannot install .NET on Ubuntu 18.04

I followed the official installation page for installing .NET 6.0 on Ubuntu 18.04 but I am not able to succeed. The page told me to do: wget https://packages.mi

Where does mount API implemented in Linux source code?

I am newbie for Linux kernel, I cloned the Linux source from its repo on GitHub. I cannot find the file sys/mount.h nor the mount function. Do you know where is

booting Arch stucks with Reading supported feature failed (-16)

My new Arch installation always stucks after rebooting with the Message [x.yz] Bluetooth: hci0: Reading supported features failed (-16). It is just doing nothin

Can anyone help fixing my error on installing isolated-vm?

I run into the following error installing the npm package isolated VM on Debian 11: https://www.npmjs.com/package/isolated-vm The log doesn't help me that much.

Clion / Cmake can't find boost on linux

I recently changed to Linux Mint Debian Edition and cannot include boost to Clion using cmake. Yesterday I tried every option I could find, including on stackov

Awk get 2 columns and count repeated values in new column

The following script is made to create a new csv getting the gender and state columns and counting the repeated values and grouping them by states, but it doesn

Keep an app running and if it crashes, restart it. Ubuntu 16

I'm running an Ubuntu 16 server. Mainly I have an application running. I use Plesk, WinSCP and PuTTY to manage the server, the files, and to run this app. The a