Category "linux"

How to Add Two Columns of DataFrame and Rename it with Prefix Name using bash

The original Data looks like ID,kgp11274425_A,kgp11274425_HET,kgp5732633_C,kgp5732633_HET,rs707_G,rs707_HET,kgp75_T,kgp75_HET 1,C,T,G,T,C,A,0,0 2,C,C,T,G,A,A,G

Print out value of stack pointer

How can I print out the current value at the stack pointer in C in Linux (Debian and Ubuntu)? I tried google but found no results.

How do we install rustc, cargo for all the users in the same linux machine?

I have a ubuntu machine with multiple users some of whom have and have not root privileges. Above that I have a limited storage for the same machine. I really d

How do we install rustc, cargo for all the users in the same linux machine?

I have a ubuntu machine with multiple users some of whom have and have not root privileges. Above that I have a limited storage for the same machine. I really d

Jupyter notebook Application launch error

When I try to launch Jupyter notebook from Anaconda3 I get this Application launch error: Fail to get yarn configuration. /root/anaconda3/lib/python3.8/site-pac

Get file modification time to nanosecond precision

I need to get the full nanosecond-precision modified timestamp for each file in a Python 2 program that walks the filesystem tree. I want to do this in Python i

SCP doesn't transfer files when using multifile bracket expansion

I'm attempting to use the scp command: scp user@remotehost:/dir/to/\{file1,file2\} . But when I run this, it prompts for password and then ends without tr

ideviceinstaller not connecting with network option

the option just outputs the usage of ideviceinstaller but with no error and does nothing. own@penguin:~$ ideviceinstaller --network 172.20.10.3 --install dark.i

My Ubuntu does not boot, and the the error during that is "UNEXPECTED INCONSISTENCY, RUN FSCK MANUALLY". If i run "fsck /dev/sda2" it works,but why? [closed]

i had an error at Ubuntu 17.04 before booting. It said: "UNEXPECTED INCONSISTENCY, RUN FSCK MANUALLY" . So i typed after finding the problem's

Azure + Terraform + Grabbing a variable and passing it along

Hopefully someone can push me in the right direction. I have a Terraform plan that currently stands up a Linux VM in Azure. I am attempting to run a bash script

Node.js File Permissions are set at 000 when I create a File. How can I create a file with read write permissions, or change permissions?

I am trying to create a file via Node.js, and would like to specifically use the the FS.openSync() method if possible. Currently I have a very simple class buil

Linux Command , how to find files by size larger than x?

I'm trying to find files with size larger than "x" , ex: 32 bytes But what I found in ls --help was only ls -S , that just sort by size and not satisfied my d

PostgreSQL out of memory: Linux OOM killer

I am having issues with a large query, that I expect to rely on wrong configs of my postgresql.config. My setup is PostgreSQL 9.6 on Ubuntu 17.10 with 32GB RAM

Uncommon baud rate on serial port - Linux

I'm currently trying to make a programm to read a serial port. On this port I receive data with a baud rate of 875000. It's really uncommon and I don't succeed

How to check if a user disconnected, if it's a new disconnection and the server on which the action was made?

I have to create a shell program, such that each time certain users (given as parameters) connect/disconnect from the system, it will save in a text file if its

Crontab in Raspberry pi doesn't run a very simple script

I'm new to Linux and I've been struggling with this issue for a while in my Raspberry Pi and had no success. First I wrote a simple script in /home/myfile.sh l

Installing docker-compose on Amazon EC2 Linux 2. 9kb docker-compose file

First of all, let me state I'm not the most virtuous of Linux users, so bare with me... Below is a brief run-down of all the steps I took. Ultimately the questi

Restart Tomcat Service on AWS EC2 instance, on a schedule

I have an instance on Tomcat running on EC2. Based on some resourcing reasons that I don't want to get into, I'd like it to restart each evening at 11:00pm. I

docker.sock permission denied

When I try to run simple docker commands like: $ docker ps -a I get an error message: Got permission denied ... /var/run/docker.sock: connect: permission

How to write a single line shell script with a while loop and if statement

I am trying to figure out the syntax for having a while loop and an if statement that checks for more than one condition, in a single-line shell script. Execut