Category "linux"

What is difference between arm64 and armhf?

Raspberry Pi Type 3 has 64-bit CPU, but its architecture is not arm64 but armhf. What is the difference between arm64 and armhf?

Including <termios.h> and <asm/termios.h> in the same project

What I want to achieve: I want to set custom baud rate values for some tty*-like UART-mapped terminals. How: The only way I found by far is to use the struct t

Running parallel jobs in slurm

I was wondering if I could ask something about running slurm jobs in parallel.(Please note that I am new to slurm and linux and have only started using it 2 day

replace special character [ and ] including . using sed

I would like to replace the [sample]. with space in all my document.Could someone let me know how can I do this.I tried the below command but it doesn't work.th

How to replace "00" in data with "N/A" skipping first row in sed?

I'm working with GWAS data, My data looks like this: IID,kgp11004425,rs11274005,kgp183005,rs746410036,kgp7979600 1,00,AG,GT,AK,00 32,AG,GG,AA,00,AT 300,TT,AA,00

SystemD service script will work on Systemctl start {service script} but not on reboot

I am trying to right a systemd service script to perform a task on reboot. Below is the script and it works when I run 'systemctl start script.service but not w

Dependency error while installing mysql workbench on ubuntu 12.04

I am trying to install mysql workbench. I am getting below error. It seems that it looks for mysql in some default directory. I have all the required things ins

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