Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
2
votes
2answers
50 views

Link which receives updates and original folder doesn't

Is it possible to have a link to origin When user try to update the original folder, all link folders will receive the new files, but any change to the files will not be in the original. The user ...
0
votes
1answer
19 views

How can I get “pip show” to show the date and time when module was installed?

how to know when module for example requests was installed - in date and hour and min for example pip show show only the following details without time pip show requests --- Metadata-Version: 1.1 ...
-2
votes
0answers
17 views

Free UNIX and Linux Computer-Based Teaching Software for Review [closed]

I recently released some software that teaches the basics of the UNIX command system and I'm inviting comments. (Linux and the Mac operating system are both versions of UNIX so everything I say here ...
4
votes
4answers
103 views

How to write bash script or automate the open vi and edit document?

I'd like to write a bash script that essentially automates this process: vi filename.sh (open "filename.sh" using vi) add the following 2 lines: export GRADLE_HOME=/opt/gradle/gradle-5.2.1 export ...
3
votes
0answers
33 views

Processes started through SSH add up to limit of SSH Daemon (systemd)

on a productive server there are (background) processes started by users which connect through SSH and run some scripts. These processes are daemons and keep on running. Each started process is found ...
1
vote
0answers
19 views

Manipulating preseed options during debian-installer

Currently I am trying to build a more or less dynamic preseed. This means I am creating custom templates/question and depending on the answers I want to set specific "d-i" options. My environment is ...
3
votes
1answer
54 views

How to mount overlayfs where lower has child mounts?

I'm trying to setup an overlayfs for a chroot environment. The environment is made up from multiple read-only squashfs file systems (lower) and a single writable directory (upper). The tricky part ...
1
vote
1answer
15 views

How to get the value i required from a single line

the line is like shown below in a file how to get the value I required nam=1554354154(pe85461) i)how to load the value inside the brackets to a variable. ii)how to load the value of the nam to a ...
3
votes
0answers
41 views

Cannot mount LV after reusing disk as PV [duplicate]

I have a weird situation: I had a disk on a Debian 9 server that had one partition with an ext4 filesystem mounted to /opt/foobar. I then unmounted the partition and deleted it using fdisk. I then ...
1
vote
2answers
70 views

Text processing of unix file

I have following data in a unix flatfile and I want to suppress duplicate values in first two columns and convert it as shown below: 1:x:4:3:2:y 1:x:7:9:l:z 1:0:3:j:k:m 2:9:r:s:6:u 2:m:y:5:7:9 2:u:7:...
0
votes
0answers
13 views

Issue in installing the Letsencrypt due to DNS propagation delay

We run the following command to install letsencrypt for domain. /usr/local/letsencrypt/./certbot-auto certonly --authenticator webroot --webroot-path $file_path --agree-tos --non-interactive --...
14
votes
3answers
1k views

“traversal failed: u: Bad message” when deleting an extremely large directory in Linux

I am trying to remove some extremely large directories, however no success. Here are some observations: # cwd contains the two larger directories $ ls -lhF drwxrwxr-x 2 hongxu hongxu 471M Oct 16 18:...
1
vote
0answers
21 views

Boot from grub2.cfg an other bootloader… in same disk

In my USB multiboot i have installed grub2 and edit the first file grub.cfg... now, have created an second partition with an other iso(dd if=file.iso of=/dev/2)...The second iso then created the MBR ...
-4
votes
0answers
31 views

My apache2 wont start anymore

After new install, i tried to modify the root folder location and things went downhill from there.. Now i got this: ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/...
0
votes
0answers
15 views

tree --dirsfirst -fihan * -o filelist without lines showing exclusively folder names, and without '*' at the end of each filename

I need to make file lists with the following command: tree --dirsfirst -fihan * -o filelist Example output: 00.-ScriptHookV [1.0.1737.0] [128K] 00.-ScriptHookV [1.0.1737.0]/dinput8.dll* [1.2M] 00....
0
votes
0answers
22 views

Failing to refer to multiple files in a bash script using brace expansion [duplicate]

I'm not experienced with bash scripting at all. Here's my simple script to use on my workplace's server (hence PBS). #PBS -lwalltime=24:00:00 #PBS -lselect=1:ncpus=1:mem=20gb export PATH=$PATH:$HOME/...
0
votes
1answer
11 views

Set specific umask for .Trash-* folder

We are working on CentOS and our data servers are running FreeNAS. We have a few shared projects automounted in /shared_projects folder. Each times a user delete a file in those shared projects, it ...
1
vote
0answers
17 views

Debian 9 with Mate does not discover the second monitor

I have a laptop with devices inxi -Fi System: Host: Precision Kernel: 4.9.0-8-amd64 x86_64 (64 bit) Desktop: MATE 1.16.2 Distro: Debian GNU/Linux 9 (stretch) Machine: Device: ...
1
vote
2answers
42 views

extract everything between character

I have multiple text files, e.g., sample1.tsv ## index of replication (iRep) - thresholds: min cov. = 5, min wins. = 0.98, min r^2 = 0.9, max fragments/Mbp = 175, GC correction min r^2 = 0.0 # ...
0
votes
0answers
5 views

Is there a updated kernel driver to resolve “esas2r: request failure” error messages?

For almost two years now, our server with an ATTO ExpressSAS 6Gb SAS/SATA RAID controller has been using the OpenSource kernel driver. This server is running CentOS 7, has been using the ELREPO ...
1
vote
1answer
22 views

Can't open ssh connection because max socket reached

I've a VPS and about 100 headless device connected to VPS througth ssh inverse connection. In the last days, the VPS reject ssh connections few minutes after reboot it with this message ...
0
votes
0answers
12 views

Rsync remove-source-files , is taking too much time to delete source?

Im using NFS server to store some big datas. There are 10k+ of files ( 1 file is around 10MiB+ ) there in the location. In my host system i mounted nfs share , and tried to rsync from mount point ...
-1
votes
0answers
18 views

How can i replace nth occurrence of a character in file A by nth line of file B using shell or python?

I am having a file A in which an sql query is present, there are column names separated by commas. i want the commas to be replaced by some text written in another file, but line by line. For ...
2
votes
0answers
24 views

Monitoring directory using incron

I am using incron to monitor the file creation event of a directory. It working fine but once for 4 or 5 days its getting freeze. Once it's freeze, it's not monitoring the file creation event. It ...
-1
votes
2answers
99 views

How reboot process works in linux?

I have searched how Linux reboot process work and everywhere found only the booting/start-up process. Suppose for a illegal reboot how machine recover my running processes/services (for example, if db ...
2
votes
1answer
30 views

Looking for a convenient way to create hard links

I'm looking for a convenient way to create hard links. Sort of like a drag and drop method. I was looking for such a feature in Midnight Commander but I couldn't find it. If there's a CLI-based file ...
0
votes
1answer
36 views

Remove spaces in between words and change from upper case to lower case then transfer to new file

First year learning with Linux a gameshell made by the teacher on a terminal. We are asked to remove spaces in between words horizontally ( besides \n ), change the letters from upper case to lower ...
1
vote
0answers
15 views

Display turns black after closing and re-opening lid. How can I fix this?

I'm using the Linux Mint - Cinnamon distro. Everytime I close my lid and reopen it, my display stays black, no matter what I press. This forces me to manually reset the laptop, which I heard is bad ...
0
votes
0answers
19 views

there is any linux disturbition for hdd data recovery or for repair?

there is any linux disturbition for hdd data recovery or for repair ? i found seagates tools for hdd recovery but didnt solved my problems my data isnt too important but i wanna try recover. btw i ...
1
vote
1answer
20 views

Persistent System on Memory-Stick

On our university we are used to have several GNU/Linux systems running as virtual machines for different courses. Because I personally do not like VMs for several reaseons, I have often 1-2 USB-...
-1
votes
1answer
33 views

How to Search & Replace a phrase in many HTML files at once? (Using a terminal)

How to delete the words "display:none;" from 100 html files at once?
3
votes
1answer
35 views

Changing LUKS password

I tried changing my LUKS password. Source I used: https://www.linuxexperten.com/content/how-do-i-change-my-luks-encryption-password-and-more I have separate partition’s for Boot, Root, Swap & ...
0
votes
0answers
8 views

Set up nfsroot for GRUB PXE

Ahoy friends. Some time ago i had a similar question but now im closer to the solution. I set up a simple grub menu on my tftp/pxe server. I want clients to be able to boot iso files in efi as well as ...
0
votes
0answers
31 views

Inconsistent CPU Usage in Top

I'm experiencing very strange behaviour with some hardware we're working on. My setup consists of Linux 4.9.87 w/ SMP & PREEMPT RT on a dual-core iMX6 CPU. The application running on this setup ...
0
votes
1answer
23 views

sed command giving Argument List too long error

I am new to shell scripting and working on script. In which I need to create a html report and attach this html report content in json request filed.Then we are using that request to call an API. I ...
1
vote
1answer
13 views

pppd says no ifupdown configuration found

I am using openfortivpn to connect to a remote network. Unfortunately the remote infrastructure has a lot of subnets, some of which conflict with my local ones. There are only a couple of subnets I ...
2
votes
2answers
32 views

How to delete a record, a special value in Unix with the comma separated file n

How to delete a record, a special value in Unix with the comma separated file n My data 100,india,*,*,P,45000,location 200,india,*,*,*,45000,location 300,india,*,*,P,45000,location 400,india,*,*,*,...
0
votes
0answers
46 views

Want the terminal output (stderr and stdout) of the previous command executed in terminal

I'm trying to store both stdout and stderr from the terminal (and if possible stdin given by user) in a file for every command. So I started creating a trap function to execute every command in an ...
0
votes
1answer
27 views

Problem with LVM2 VolGroup on Rebuild Software Raid

I'm struggling with the weirdest LVM problem ever. I'm running a small server at home with a Software Raid 5 from 4 3 TB Disks. (There is no space for a Hardware Raid Controller in the Case). From ...
1
vote
0answers
16 views

How to make the php extension(.so) file portable with dependent libraries?

I need to make an php extension(.so) file which can be made portable. The created library works fine on one of my machines, but, when I send it to other machine, it does not load properly as a ...
1
vote
0answers
59 views

How to enable text color in vim? [duplicate]

I have a file that I report to daily using shell script. There are also colored texts in this report. Normally, when the file is executed, color text is displayed, but when the result is saved to a ...
1
vote
1answer
25 views

Replacing contents in a file using sed or PERL

I would like to run this regular expression https://regex101.com/r/9LJAjZ/1 using sed or perl to replace the contents of a file. If I am correct this will never work with sed because sed is always ...
-4
votes
0answers
21 views

Install customizing softwares in Linux [closed]

Which Linux distribution gives us the customization of installing their software? And how we can install these softwares ? Thanks
1
vote
1answer
20 views

Network file transfer not going through

Trying to transfer a file from my raspberryPi to my laptop (in the same network) via the terminal, but it takes a while and then says ssh: connect to host 192.168.1.121 port 22: Connection timed out ...
2
votes
2answers
47 views

How to calculate n values in a column and the overall average?

I would really appreciate some help with this as I am relativity new to Linux. I'm using grep but I also want an average of all of my extracted values (irrespective of which column they are in) and ...
1
vote
0answers
11 views

Anabel Mouse: couldn't find an input interrupt endpoint

I have a very weird problem ;) I used to Debian 10 about 3 month and every things OK until today, when my colleague put a new router on my desk. when she power-on the router my mouse stopped and I can ...
-4
votes
0answers
53 views

Write a script to archive files with some conditions [closed]

The script must archive files specified as parameters on command line into a single file. note: it should be specify any number of files it should check for missing parameter and deal them with ...
0
votes
0answers
12 views

How to create iso file of my current MX linux?

I wanted to create a copy of MX-Linux that I'm currently running on one machine(64-bit) with all installed app, default app preference, docker, display resolution and other default settings. Which can ...
0
votes
1answer
18 views

Unable to remove the unwanted messages(especially Auditbeat) in my centos server

I need your help in solving the below mentioned Issue. I have Installed Auditbeat-7.3.1 as a part of ELK setup in my centos server. Everything was working well, But i was facing problem while ...
0
votes
0answers
19 views

Finger command (which file, finger command getting the line of text) [duplicate]

If I execute the finger command as the following: finger Jenifer The output will contain the following line of text: Project: My project 1 is complete. So, from what file in the home directory is the ...