Questions tagged [linux]

These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

I'm trying to execute a fifo list to enable vm manager in gcp

so the command goes something like this. gcloud compute project-info add-metadata --project projectname --metadata=enable-guest-attributes=TRUE,enable-osconfig=TRUE I'd like to run a command that ...
0
votes
0answers
14 views

Ubuntu php service

this is my myapp.service file [Unit] Description=My PHP Daemon Service #May your script needs MySQL or other services to run, eg. MySQL Memcached Requires=mysql.service After=mysql.service [Service] ...
0
votes
0answers
33 views

mounting a samba share from another linux machine error “bad network name”

I am using OpenSuse tumbleweed latest versions of everything. This command updates the whole OS to the latest build. zypper dup So I disabled all the firewalls, temporarily. mount -t cifs -o "...
0
votes
0answers
7 views

Every X11 (working) app run from shell shows “No protocol specified”

Every X11 (working) app run from shell shows "No protocol specified". It's local environment, everything is working fine, no SSH X11 forwarding. OpenSUSE Tumbleweed, lightdm (DM) and i3 (WM)....
0
votes
1answer
59 views

Reordering a name file in linux/ubuntu

I'm trying for a time now to have the titles of some(1 to 3 hundred) musics changed, using bash script or commands like rename or sed, along with regex, but I failed miserably, probably because I'm ...
2
votes
0answers
78 views

How to detect changes to disk capacity in linux?

I'm working on a program that needs to monitor changes to the system mounts and the size of disks and partitions. While I found out the changes in mounts can be detected using epoll on /proc/mounts, ...
0
votes
0answers
17 views

python make a script that install packages OS for mac/windows/linux

I need to make a python script (python 3), that does I am newbie using python identify the current OS because dev guys work on iPad/surface/windows workstation, Linux servers, some mac minis and so on ...
0
votes
4answers
46 views

reading and discarding lines

I have a question about a problem that I have to solve, I have my lines in this way: Input GTEX-1117F-0003-SM-58Q7G GTEX-1117F-0003-SM-5DWSB GTEX-111CU-0826-SM-5EGIJ GTEX-111CU-0926-SM-5EGIK GTEX-ZZPU-...
0
votes
2answers
36 views

How to use “qstat” and “grep” to list lines containing a range of numbers?

To monitor the job status in clusters, qstat is used to output lines like this job-ID prior name user state submit/start at queue slots ja-task-ID --------...
0
votes
1answer
22 views

How to get open file descriptors/handles using libprocps in c program

I am trying to create a performance display for my IOT device. The device uses Linux so , i want to get the number of file handles programmatically using C program. Currently i am using libprocps API ...
0
votes
1answer
22 views

how to get split commands output to file

I want to print output of below command to file, can you help me I tried 2>&1 even 2>> also dd if=/dev/random bs=1 count=1000 status=progress |split -b 10 -a 10 I have other dd command ...
0
votes
0answers
7 views

network.service Failed to start LSB: Bring up/down networking -contrpol process existed

I can see Network card turns on. I have tried many ways, 1.change file ifcfg-ens33, 2.the top answer touch /etc/sysconfig/network My question is that why it seems control process existed since i have ...
1
vote
1answer
54 views

Does cp (copy) pre-allocate space with fallocate()?

When copying large files (1-2 GB per file) between file systems, file fragmentation can happen if the destination file system is nearly full. Our C++ application code uses fallocate() to pre-allocate ...
0
votes
0answers
20 views

What causes systemd-udev to trigger?

Normally, I find an exact answer to my questions here, or at least, enough "close enough" answers to figure something out, but this problem has had me perplexed for a few months now: Every ...
0
votes
0answers
8 views

Can't input password with Colemak

I've been typing with Colemak layout for the past 3 years. Suddenly at the end of last month, I cannot type any password everywhere (login screen, password dialog, terminal) while using Colemak. I had ...
0
votes
2answers
45 views

Starting a systemd user instance for a user from a shell

I started a shell for another user on my system. However there's no systemd user instance for that user: helloer@host $ sudo -u testusr bash testusr@host $ systemctl --user status Failed to connect to ...
0
votes
1answer
94 views

Adding Headers On A Specific Pattern in a File

I have a file in which I need to add a header on multiple locations in linux. The 'header' is a file and I can add it only at first row; and that's fine but I want to add it now the same header on ...
1
vote
0answers
16 views

“No space left on device” with cgroups v2 writing empty string to `cpuset.cpus`

I'm using Linux 5.11 in the unified cgroups v2 configuration. Following cgroups-v2.rst, I'm trying to reset cpuset assignment of a non-root cgroup (to make it inherit the parent's cpuset). According ...
0
votes
0answers
18 views

Why is endpoint already connected when running mutiple processes [migrated]

I am running the following client: import socket import Utility import threading import os.path import time class Requester: def __init__(self): self.address = "/tmp/device-web-...
-1
votes
0answers
22 views

How can I install Nitrux (cause znx isn't available)

I want to install Nitrux, because it looks amazing. I've flash on my USB and I restarted computer. Than I choose Boot from usb, but I had blank screen and than my OS booted. I tried to install another ...
0
votes
0answers
12 views

Core got switched in Linux OS despite isolcpus being active

I have isolcpus active on my linux machine. There are 2 numa nodes on the machine and cores 1-36 are isolated. I have a process which daily runs on core 10,12 but one day it got automatically switched ...
0
votes
1answer
17 views

What are really the prefix rules for options: - and — ? Why is the find command not compatible with the --name option? [duplicate]

Once, I've learned that options of Linux commands came in two manners: those of one letter, prefixed by a - those of many letters, prefixed by a -- And this works in 95% of the cases. But not, for ...
0
votes
0answers
16 views

Newsboat / Newsbeuter is not loading old feeds

I use Newsboat for quite some time now and I really leared to like it's plain neatness. However, whenever I add a new feed Newsboat it loads only 10, sometimes 20 (?!) articles that are older then now....
0
votes
0answers
19 views

How to route traffic to a gateway on a VPN network?

I'm in a Docker container, on a host connected to a remote network via VPN, and want to route all traffic to 10.43.0.0/16 to 10.148.185.170 (host on the VPN network). sudo ip route add 10.43.0.0/16 ...
-2
votes
2answers
40 views

Showing only the content of a file from a directory(given as parameter ) or his subdirectories which has .txt extension, using grep

I managed to do this using find: find 'directory' -type f -name "*.txt" -print0 | xargs -0 cat I have no clue how can I do it using grep.Tried to do it thousand times.
6
votes
2answers
669 views

Can read() return value exceed the count value?

With the below function signature ssize_t read(int fd, void *buf, size_t count); While I do understand based off the man page that on a success case, return value can be lesser than count, but can the ...
-4
votes
0answers
20 views

Running as root without –no-sandbox is not supported and Running Firefox as root in a regular user's session is not supported

I have created a meterpreter payload, by using this payload I can see the screen of another system remotely by execute the command scrrenshare in msfconsole. If I login to the Linux system as root ...
0
votes
1answer
26 views

Specific sed command understanding

Hey I've been having struggles trying to decipher what a specific sed command would do despite my research I seem to be stumped. sed -E 's/([0-9]+)-([0-9]+)/\2:\1/g'
0
votes
1answer
26 views

Assistance with specific sed command

pretty new to linux and am really struggling to understand what this command will do even after extensive research, any help or explanation will be greatly appreciated sed -n 's/[A-Z]/&e/gp'
0
votes
0answers
19 views

Manjaro GPU Passthrough With AMD APU

I recently purchased a AMD Ryzen 3 2200g. In hopes that I could hijack my Nvidia Quadro k5000 for my kvm, when it tries to launch, there are alot AMD Items, controllers and others in a iommu group ...
0
votes
1answer
33 views

scp -r is duplicating last directory

I have used scp -r in the past and I have never seen this. I am doing the following: dirArr=( /drv1/sample1/dataset1 /drv2/sample2/dataset2 /drv3/sample3/dataset3 ) for f in ${dirArr[@]}; ...
0
votes
1answer
23 views

Does grep -rIL display the binary files from a directory and it's subdirectories?

I tried to display with grep -rIL the binary files from a directory (subdirectories included) but after I tried it I'm not sure if the output is right. Could someone please tell me if grep -rIL ...
-1
votes
1answer
87 views

Counting specific character from file

Could someone explain to me what this part: ~/[bcdfg]/) of the following code: awk ' {for(i=1;i<=NF;i++) {if ($i ~/[bcdfg]/) count++; means? I know that it counts how often b,c,d,f appear but I ...
0
votes
0answers
4 views

Error from dns_master_load & empty label

I don't know why but my zone would not work and have says that it could not load due to errors like my dns_master_load. It says it have an empty label. PS : This is a school exercise. That is why ...
0
votes
2answers
37 views

Can't add default gateway in Kali Linux

I'm trying to put a Windows and Kali Linux machine on the same network. I used sudo ifconfig eth0 192.168.10.3 netmask 255.255.255.0 which worked fine but when I use sudo route add default gw 192.168....
2
votes
1answer
53 views

Is there a way to detect the user's password entry in sshd to warn that they must change it?

I have a box I would like to distribute as a Vagrant box (and eventually Dockerfile). the initial password specified in the README file, I'd like to detect if it is being used (it's very simple and ...
-1
votes
0answers
21 views

Analyze an E01 with encrypted LVM partition

I have an image of a server (.E01) that I processed through x ways. there are 3 partitions and partition 3 is a Linux LVM. It appears the data within the Linux LVM partition is encrypted. Is there a ...
0
votes
1answer
51 views

How to reinstall Xorg on fedora 33

I messed up Xorg & I am unable to resolve errors and I now want to reinstall xorg how do I do this? I tried doing # dnf groupinstall "X Window System" But it didn't work.
0
votes
1answer
73 views

Extract tarball to target directories without overwriting existing files

I am trying to extracting a tarball with this sort of internal structure (simplified) [edit: added toplevel dir] some_tarball.tar └── some_tarball/ ├── bin/ │   ├── a │   └── b └── ...
0
votes
1answer
10 views

.Xauthority, .asoundrc, .bashrc appear out of nowhere in Git repositories

The files .Xauthority .asoundrc .bashrc appear out of nowhere (I don't know when) in Git repositories. The files are not managed by Git. One of the repositories is cloned from GitHub, the other was ...
1
vote
1answer
11 views

Linux collect CPU time per shared library file

Is there a way to -in the background- collect cumulative cpu time stats per shared library? Without modifying applications or libraries? Ideally a solution that'll (also) work on arm (Jetson / Pi). ...
0
votes
0answers
23 views

Organizing systemd services

I have several systemd service/timer units for various applications I've written. I want to be able to organize them under a label so I can quickly see all the service/timer units I have installed on ...
0
votes
1answer
53 views

Docker is not running when trying to create a Laravel application

I am starting with Laravel and I am following the installation guide from the official website. So I had to install Docker with this guide. When I run the last command it works fine sudo docker run ...
0
votes
1answer
26 views

Globing with linux

How do you list only files that have two numbers in the name? I did ls *[0-9]*[0-9]* but it appears that this is not the right one as it shows other files that have 4 digits in their name. How do you ...
0
votes
1answer
25 views

Can't put “/var/lib/dpkg/info” on a new partition with the debian installer

I put /var/lib/dpkg/info on a new partition and put everything else in "/var" on another partition (suggestion 2 in #21941). Every partition was mounted with the defaults flag and nothing ...
1
vote
0answers
13 views

How to handle the same key differently depending on source keyboard?

Background I have a laptop (a Thinkpad P15) that came with a stylus for the touch screen. I'm trying to get this to work under Linux. The stylus has three buttons, and shows up as three devices: two ...
2
votes
0answers
18 views

/sys/kernel/slab/ contents :at-0000016 :t-0000040 :dt-0001024 etc. meaning

While examining some memory leak I found a strange for me contents of /sys/kernel/slab/ directory. It contains a list of directories: :at-0000016 :t-0000040 :t-0000832 :at-0000032 :t-0000048 :t-...
0
votes
2answers
38 views

Get logs for specific date (apache access log)

Can you on advice me on how to get specific time range from a file with output like: 81.200.176.13 - - [23/Mar/2021:09:34:03 +0000] "GET /crx/packmgr/img/thumbnail.png HTTP/1.1" 200 6235 I ...
0
votes
1answer
17 views

How can I make registered extensions for `binfmt_misc` persist across reboots?

How can I make registered extensions for binfmt_misc persist across reboots? Consider the following command, which performs a binfmt_misc registration: echo ':golang:E::go::/tmp/test:OC' | sudo tee /...
0
votes
1answer
28 views

List open files without lsof/fuser at a particular path

On a system that doesn't have lsof or fuser, is it possible to get a list of open files at a particular path? E.g., I'm looking to dismount /volume1 (a software RAID) to run e2fsck and can't, because ...

1
4 5
6
7 8
641