All Questions

Filter by
Sorted by
Tagged with
0 votes
3 answers
38 views

Bulk rename files using bash

I need to bulk rename files changing .-. to . goal: file.-.txt is now file.txt rename 's/.-./.' *.txt Doesn't work. What's wrong?
  • 113
0 votes
1 answer
16 views

How to take positional arguments in a function in zsh?

I have a function defined as follows in my zshrc function k8sapi() { PREFIX='https://STABLE_URL' if [ "$1" == "prod" ]; then PREFIX='https://PROD_URL' fi ...
  • 103
0 votes
0 answers
6 views

Fibocom L831-EA LTE Modem not accessible / Intel Power Management IC Device for Linux

I own an Intel Atom based Tablet PC and I would like to install Debian 11.5 The Tablet is equipped with a Fibocom L831-EA LTE Modem. Unfortunately this modem is not recognised within Debian, neither ...
  • 121
3 votes
1 answer
47 views

Why are old kernel images not removed automatically to free required space on boot partition on Debian?

I do have unattended-upgrades (2.8) installed and the process is running. Yet it frequently happens that I get this error when trying to install upgrades: Processing triggers for initramfs-tools (0....
  • 3,469
0 votes
0 answers
7 views

How to configure a bridged adapter network using qemu-system-x86_64 in Windows

I want to launch a Centos 7 VM using qemu in Windows 11. I already have a disk image (vmdk) and it works fine if I run it with the following command: qemu-system-x86_64 -m 4096 -smp 2 -drive file=&...
-2 votes
1 answer
43 views

reformat numerical values to two values

I have a huge file with numerical values in many columns and rows. The values in the columns after column 6 are all numerical plus missing as NA (0 or 1 or 2 or NA). I would like to change values in ...
-1 votes
1 answer
31 views

Prevent bash script from exiting with a non zero exit code

I have a bash script that I need to keep from exiting if the exit code of the command is greater than 0. The purpose for this is to echo a custom error message. My current code fails as the exit code ...
  • 173
1 vote
2 answers
28 views

How can I iterate through and insert a line of one file into another file, creating a new file each time?

I have File 1 that contains: "text1" "text2" "text3" "text4" etc, through "text2000". note - the quotes are included. I have another file that ...
  • 11
0 votes
0 answers
14 views

Trying to capture one monitor with maim

I have two monitors and I would like to only screenshot the main one, maim by default screenshots both monitors as one big monitor, and doing maim -x :0.0 doesn't work. I'm trying to figure this out ...
  • 1
4 votes
1 answer
163 views

How to check a value and change other key in JSON with jq?

[ { "name": "user1", "status": "off" }, { "name": "user2", "status": "off" ...
0 votes
0 answers
12 views

No such file using thunar

This is really frustrating. The directory exists. andy@7 /media/andy/5b4b2ae5-9aaa-4559-9f41-afb313998c75/home/andy/bin> How do I fix this? cd: /media/andy/5b4b2ae5-9aaa-4559-9f41-afb313998c75/...
  • 103
0 votes
0 answers
5 views

Can't connect to the Wi-Fi, broadcom issue?

Before saying that I am lazy to search for solution, hear me out. I installed pop os 22.04 LTS on my laptop and I try to connect to the Wi-Fi, typed the password and the system tells me that it ...
0 votes
1 answer
28 views

How to check if minimal Debian was installed after the fact?

Is there a way to check if minimal Debian 11 was installed after the installation was completed? I want to know if standard system utilities or SSH server was selected during installation. The server ...
  • 375
2 votes
0 answers
27 views

Why is my /var/lib/docker dir huge?

I'm a backend software developer, and we use docker at work. On my work machine, if I: Stop and delete all docker containers (even the stopped ones only visible with -a) Delete all docker images (...
  • 223
0 votes
0 answers
19 views

Forward multicast traffic to bridge interface

I am trying to forward the multicast traffic arriving on interface eth1 to a bridge I created with ip link add br0 type bridge. Elsewhere I have done this with a simple ip route add 226.3.2.1 dev ...
0 votes
0 answers
15 views

SD card shows up in dmesg, lsusb, and lswh, but not in lsblk or fdisk

Recently, my Android device has been unable to detect my SD card so I connected it to my PC (running Kubuntu) to figure out what's wrong. These are the results: dmesg correctly detects the card reader ...
3 votes
1 answer
50 views

Why does Ubuntu install continue to fail with 'grub-install /dev/sda failed' error?

Goal: I am trying to install Ubuntu onto a Dell XPS 8900. Problem: I can't get through an Ubuntu install without the install interrupting with Unable to install Grub in /dev/sda, Executing 'grub-...
0 votes
2 answers
9 views

Bind9 on PI with ipv6 reverse zone help needed

I have bind9 installed on a PI. And tried to setup a simple ipv4 and ipv6 config. For ipv4 forward and reverse lookups are working fine. Also the forward lookups for ipv6 are looking good. But i ...
-1 votes
0 answers
13 views

Problem with GRUB cmdline after trying to manually boot from EFI

I have a dual boot with Windows 11 and Kali Linux. This morning, I tried to boot from a particular EFI file in the BIOS, just to see if it worked and what would happen. It did nothing. Now, when I try ...
0 votes
0 answers
8 views

High server load when mounted device freezes

I am having troubles with an NFS mount. The external NFS server went unresponsive and gradually my other servers load kept going up and up. df -h stopped working (froze) Now that I have unmounted the ...
  • 2,699
1 vote
1 answer
28 views

Port Forward in Empty Port. But 'cannot listen to port' And The port is filled

Step 1. Checking Ports netstat -tnlpa (No info could be read for "-p": geteuid()=1000 but you should be root.) Active Internet connections (servers and established) Proto Recv-Q Send-Q ...
1 vote
0 answers
16 views

Hint to investigate some SEGFAULT no longer happening when strace-ing

I get an application (webcamoid in its 8.8 version) that used to be working troublefree and which now segfaults systematically at startup (kde-plasma/X11 do not even get the opportunity to open some ...
  • 3,930
1 vote
0 answers
9 views

How to setup tang/clevis failover on headless debian?

Goal: I want to run a debian host with NBDE/FDE: For decryption it should check for a tang server first. If not available it should fallback to manual decryption via SSH (busybox or the like). ...
  • 121
1 vote
2 answers
51 views

How to cross check one column in a file in another and print the missing values?

I have a file that looks like this. It has 12 columns and 3244343 rows. Lets call this file 1. variant_id gene_id tss_distance ma_samples ma_count maf pval_nominal slope slope_se ...
  • 23
1 vote
1 answer
16 views

How to use the new `pythonOutputDistHook` in nixpkgs?

I've tried a bunch of things to get my project to create a result-dist folder with a wheel I can publish to PyPI. Somehow, even though I'm using a nixpkgs version with pythonOutputDistHook in it, I ...
  • 47.8k
0 votes
1 answer
30 views

getopt and case function not executing

I encountered such a problem when passing a parameter to a script, the function corresponding to the case menu is not executed. The script accepts parameters as input and performs the appropriate ...
2 votes
2 answers
76 views

Fastest way to write bash variable to a file

I want to generate some big files for some experiment. This is my script. It creates a file then reads it to a variable and then tries to write it as many times defined in the loop in files: #! /usr/...
  • 683
0 votes
0 answers
12 views

How to tell which nixpkgs is being used to build a derivation?

I’m trying to figure out why I can’t get nix-build to produce the expected output. Is there some way to check which nixpkgs version is being used to build a derivation? Something like nix-build --...
  • 47.8k
1 vote
0 answers
13 views

How to install a package in Solaris 11 from file?

How to install a package in Solaris 11 from file (not from the package repository)? I am trying to install a .pkg file on a Solaris 11 SPARC machine, however, I get errors: # pkg install mysql-...
  • 31
0 votes
1 answer
18 views

Add function in variables in while loop

I am writing script to run a software. I am trying to add function in while loops to trim text in variable, so that it can be applied as variable in other part of the command. But what should be the ...
  • 191
1 vote
1 answer
12 views

What explains this sftp login success/failure behaviour in conjunction with different ftp directory chmod settings?

If I start off with - sudo groupadd test_group sudo useradd -g test_group -s /sbin/nologin test_user sudo passwd test_user ...(some password)... sudo mkdir -p /testdir/dev And I also have '/etc/...
0 votes
0 answers
8 views

Laptop screen won't turn on unless I plug in external monitors (Ubuntu / NVIDIA)

When I installed my Ubuntu 20.04.4 LTS I had it connected to 2 external monitors (at the time of installation). Now every time I reboot my computer, my laptop screen is off. I need to connect it to my ...
0 votes
0 answers
7 views

Dialog --menu bash

I just started to learn bash and create a gui with Dialog, but I'm having a problem with my program, any help will be appreciate it. Thanx I want to create a program wich will display a dialog wich ...
  • 1
1 vote
1 answer
28 views

How to identify blanks in the last column using awk?

I have a file that looks like this. The first line is the header. "variant_id" "hg38_chr" "hg38_pos" "ref_allele" "alt_allele" "hg19_chr" &...
  • 23
1 vote
1 answer
21 views

Fix GPT after using dd to clone a smaller disk onto a larger disk

I used dd to clone a smaller disk onto a larger disk, however now when booting I'm getting dmesg errors of: [Fri Sep 30 11:48:43 2022] GPT:Primary header thinks Alt. header is not at the end of the ...
0 votes
0 answers
11 views

Wired internet connection suddenly broke

my wired internet connection suddenly broke overnight. I can reach my router. 192.168.1.1 dev wlp4s0 lladdr f8:08:4f:04:db:d1 REACHABLE 192.168.1.1 dev enp5s0 lladdr f8:08:4f:04:db:d1 REACHABLE fe80::...
0 votes
1 answer
23 views

Ubuntu - Run executable with customized name from anywhere

I have installed etcher and I can run it from its installation directory (.../balena-etcher-electron-1.7.9-linux-x64/squashfs-root) with the command ./balena-etcher-electron. Well wonderful ! But now ...
0 votes
1 answer
19 views

ffmpeg re-encoding to h625 with video of Sea Water doubles file size

I know... there are a lot of questions out there already about reducing the file size with ffmpeg. But, here's why my question is a bit different, it addresses having difficult content. I think ...
0 votes
0 answers
7 views

How can I start a playlist from the command line in cmus?

I would like to start playing a play list from cmus with a command line. This is to create a bash alias that would start playing a specific playlist. I tried cmus pl-import playlist_name But it doesn'...
0 votes
1 answer
30 views

Can I backup my machine by just doing "cp -R / /pathToSSD"

I want to completely backup my computer. I got a 1TB drive. Normally backing up is a whole process and I find it would be so easier to just copy the filesystem into the drive then in the event of my ...
1 vote
1 answer
34 views

Piping line-by-line

I have a script that "listens" to amixer events (volume change and mute), piping the volume and mute status to xob. It works great, but the (ab)use of stdbuf -oL <command> looks wrong ...
  • 13
0 votes
1 answer
20 views

How can I reinstall mysql/mysqld on Fedora?

I'm experiencing some issues where the mysqld won't start, so I'd like to purge or (at least) reinstall its files in order to replace the current configuration files with the stock ones so that it ...
  • 1,400
3 votes
1 answer
36 views

locate and updatedb do nothing in Linux Mint

I run Linux Mint 21. Currently the locate command always returns no results, and updatedb always returns immediately. The database is sized no more than a few kilobytes. I have verified that the ...
  • 241
-4 votes
1 answer
26 views

Check if number of bytes of each line in a file is expexted byte or not

to check the number of bytes of each line in a file is not the expected byte then store the record along with its line number in a new file.
  • 1
0 votes
1 answer
23 views

tar archive and checksum empty

On a centos 7 I'm trying to arhive and do a checksum over a directory but at the end the files are empty. localpath=/backup name=$(date '+%Y-%m-%d') tar cvzf $localpath/BackUp$name.tgz $localpath/...
1 vote
2 answers
13 views

GPG error- The following signatures were invalid: EXPKEYSIG

We have a self-hosted Debian repository, from where we are fetching all the packages. While running the "apt update" on target machine, we are getting below error- W: GPG error: http://...
0 votes
1 answer
17 views

Disable port 8910 and then again enable when required in my linux based server

As you see below jsvc.exe is running on 8910 with PID 23943. [root@pxgrid-163 ~]# netstat -tulpn | grep :8910 tcp6 0 0 :::8910 :::* LISTEN 23943/jsvc....
  • 101
0 votes
0 answers
8 views

Error message [40.478378] Dev loop16: unable to read RDB block 8

My parrot OS always shows an error message "[40.478378] Dev loop16: unable to read RDB block 8" When I try to login, and no GUI is comming, only one thing I can do is just login to the ...
0 votes
1 answer
11 views

RHEL 6.10 updated to 7.9, install grub2 issue

After upgrading RHEL 6.10 to 7.9 I'm having issues installing grub2: Transaction check error: file /boot/efi/EFI/redhat from install of grub2-common-1:2.02-0.87.e17_9.9.noarch conflicts with file ...
6 votes
1 answer
625 views

Why jobs lost when after reconnect ssh?

I have a job that runs in the background via ctrl + z and bg, and after reconnecting ssh I cannot find that job in the jobs command but can find it in ps grep. For now, I searched this and I get the ...
  • 63

15 30 50 per page