Category "linux"

How to check if /tmp and /proc filesysystems are mounted in a chrooted environment?

I have already tried mounting the filesystems without checking like this: sudo -- mount -t proc /proc $chroot_dir/proc sudo -- mount --bind /tmp $chroot_dir/tmp

Show call stack in Bash

To start with, I do not know if this is something trivial and common knowledge; I don't know, so am asking here. I am running a 3rd party app and trying to nai

Query RTC and NTP time in Linux?

The way the Linux kernel handle time is somewhat complicated as it uses different source of time, and regularly resynchronize everything. There are command-line

Why can low priority processes affect the latency of an high priority process?

I have tested the rt process's latency by cyclictest. And found that when I launch a few lower priority rt processes(priority is 40) the high priority rt proces

How to configure an I2c Controller in the PS of the Zynq 7000 as a slave from Linux

I am using a zed board with a Zynq 7000 on it. The end goal is to have the I2c-0 controller in the physical PS of the Zynq7000 to act as an I2c slave device. I

Listening-in tty in Linux

I try to find an easy way to listen to the exchange with the desired tty in Linux. A have hardware device whose interface is exposed as /dev/ttyAMA0 and some d

How to know if htpdate has synchronized system clock?

On my linux system, I use ntp to synchronize the system clock. I also installed htpdate to synchronize it when ntp is not available. To know if ntp has synchron

How to know if htpdate has synchronized system clock?

On my linux system, I use ntp to synchronize the system clock. I also installed htpdate to synchronize it when ntp is not available. To know if ntp has synchron

statvfs wrong SD available size returned

I'm trying to monitor the available SD card size in a embedded linux system (petalinux). After looking for this topic around stackoverflow I learn that a good

select subdomains using print command

cat a.txt a.b.c.d.e.google.com x.y.z.google.com rev a.txt | awk -F. '{print $2,$3}' | rev This is showing: e google x google But I want this output a.b.c.d.e

Linux File Permissions Read Access to Owner

What command could I use to grant read access to the owner of the file? The current permissions are d-w-r--r--. Why is this answer correct ? chmod 644 honey_bea

Writing a putchar in Assembly for x86_64 with 64 bit Linux?

I am trying to use the write syscall in order to reproduce the putchar function behavior which prints a single character. My code is as follows, asm_putchar:

Image.FromStream throws Parameter is not valid error only on linux

I have some Unit Tests made in .net core that checks if the file which is uploaded from angular frontend is actually resized on the backend. I have a service th

Tar ignores compression level, what to do? [closed]

Im using the following command(s): GZIP=-9 tar -cf test9 directory GZIP=-5 tar -cf test5 directory GZIP=-2 tar -cf test2 directory all test*

How can I log messages from an ASP.NET Core application to a specific file on Linux?

I installed an ASP.NET Core application as a Linux daemon. By default .NET writes logs into /var/log/message but I would like the application to write its logs

Tar ignores compression level, what to do? [closed]

Im using the following command(s): GZIP=-9 tar -cf test9 directory GZIP=-5 tar -cf test5 directory GZIP=-2 tar -cf test2 directory all test*

You'll need to upgrade to a newer Node.js version in order to use this version of npm. But Node version is greater than v10

Here is my command line I already have node version higher than the specified 10.24.1 but still gives me this error. Not really sure what is the issue here. I a

In android how to find what /dev/input/event* is used for touchscreen using c function

I am trying to read touchscreen event, in my device /dev/input/event4 is used for touchscreen, while in some other phone, event7 is used for touchscreen. I am l

Can anyone explain how to use OpenACC in GCC?

I am using WSL Ubuntu. And use GCC to compile my C++ code. I am trying to use OpenACC to parallelize my code. I heard that I can use OpenACC with GCC. So after

How to print tree from dictionary in python

I am trying to implement ldd kind of application in python. However, I am struggling to represent the data as a tree like structure. The linux libraries are dep