Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
3 views

Replace VI macro with Linux equivalent

My file arrives on a linux server and contains ^M characters when seen in VI and the file format = unix, (ff=unix) I want to turn lines 1-4 into line lines 9 - 10. My vi marco solves my problem. /\r/...
1
vote
0answers
9 views

Can't connect to network when creating two network namespaces for two NICs

I'm exploring A.B's comment in this question as a workaround to my issue. As a summary, so you don't have to read that whole question: I try to setup two NICs in two separate network namespaces to ...
1
vote
0answers
14 views

How can I send duplicate packets, one instantly and one with a delay?

For testing on Linux, I can create duplicate packets where both are sent instantly with the following command: sudo tc qdisc add dev IFACE root netem duplicate 100% How can I create duplicate ...
0
votes
2answers
24 views

Searching whole system for files with specific inode

I technically know how to do all these things, but combining it is problematic. Inode is saved in first line of text file (I can eventually read it directly from file), I need results saved to the ...
0
votes
2answers
29 views

How extract row based on some value in columns?

I have a bam file as below (it is only a subset), I would like to extract rows based on chr (2 in the third column) and start position (13107 to 14348 in the fourth column). Input: D00823:135:...
0
votes
3answers
22 views

How to Pin Point Large File eating space in Fedora 18

This is taking up my time, and I can't determine exactly what file is eating up my disk. Firstly I used df command to list my directories: devtmpfs 16438304 0 16438304 0% /...
-1
votes
1answer
20 views

Is it ok to combine machines with DNS server management and machines that do host lookups through a hosts file?

We have a cluster of Linux machines. DNS of these machines is managed by a DNS server (a Windows machine with DNS records). Now we want to add an additional cluster with Linux machines that would do ...
-1
votes
0answers
25 views

Can not ssh server with `debug3: fd 1 is not O_NONBLOCK`

I have a CentOS 7.5 Dedicated Server, I found it can not ssh login now: and I checked the sshd service and firewalld is closed. this is my login in my PC ssh root@x.x.x.x -vvv: debug2: channel 0: ...
0
votes
2answers
20 views

Linux Memory Allocation/De-allocation

will the pgfree/s command happen without pgscand/s? How and what is the difference between pgfree/s and pgscank/s?
0
votes
0answers
16 views

Need to convert output to curly braces and quotes [duplicate]

host1:3183,host2:3183,host3:3183 I got above output from a different command. But I need to convert it to below { "host1", "host2", "host3" }
0
votes
1answer
20 views

Set Linux from dynamic to static ip temporarily - IPv4

I am trying to change my IP address behind my router to a specific port. I want it dynamic. But having someone try x.y.z.136 first really makes trouble-shooting easier. Even if it is only a 90% ...
0
votes
0answers
9 views

How can I disable Zathura's statusbar by default?

I'd like to hide the statusbar by default when opening Zathura (Which is normally done with ^n)
0
votes
0answers
2 views

What could cause slow binfmt-support.service during boot?

I have a Fujitsu LifeBook with Lubuntu 18.04.2 which is booting very slow. Here's the output from systemd-analyze blame | head -n20 28.869s systemd-journal-flush.service 24.957s dev-sda1.device 14....
1
vote
0answers
12 views

Move (mv) file that starts with a hyphen (-) [duplicate]

I have a file called -my-file-name.txt. I'm trying to move it using the mv command, however it fails because the hyphen in the name is acting like an option. mv -my-file-name.txt /some/new/folder ...
0
votes
0answers
50 views

How to stop bash script from running at login

OS Debian Stretch The script below was executed and I can't find out how to stop it permanently. The script starts a few programs at login. script is saved in home/usr/audio-scripts and the script'...
1
vote
1answer
10 views

Installation of Firefox on Alpine Linux

I'm trying to install Firefox on Alpine Linux. I ran $ sudo apk add firefox And a few hundred MBs later, it installed. However, when I ran firefox, it crashed with symbol not found errors and ...
2
votes
1answer
14 views

How to utilize Windows 10 Connection Sharing to Access ZScaler protected Websites on Linux / Ubuntu 18.04

How can I use ZScaler to access protected websites via Ubuntu without a dedicated Ubuntu client?
4
votes
1answer
10 views

How to robustly switch pulseaudio output device from command line?

In Ubuntu and probably other distros there is a graphical thing to switch the audio output device. I have tried to write a command line tool that does the same thing, but it doesn't always work. What ...
1
vote
2answers
34 views

Save output of multiple commands to the same file [duplicate]

For example whoami and date. I can do this that way whoami>/home/user/folder/file date>>/home/user/folder/file But i'm sure it can be done in one line without typing path two times. I have ...
0
votes
2answers
32 views

Windows on SSD, Linux on HDD. No dual-boot. Separate bootloader devices. Will there be problems?

I have a 1 Terabyte HDD which is currently empty storage space for Windows which is on SSD. I want to split the HDD to two 500GB partitions and use first half as Windows storage space and the other ...
0
votes
0answers
41 views

CentOS Moved entire root directory (mv -v /*) [duplicate]

Dont laugh at me but I ran: mv -v /* /home/dropbuyexpress instead of mv -v * /home/dropbuyexpress Luckily my ssh is still on. Is there any way that I can get mv/cp working? OS: CentOS 7 Below ...
-1
votes
0answers
29 views

I want to start an email hosting solutions on my own server [on hold]

I want to start an email hosting solutions on my own server. Something which Migadu ( https://www.migadu.com/en/index.html ), google apps(email) for business or Zoho does. I am not sure how to get ...
0
votes
0answers
16 views

Systemd service to restart only 5 times on failure

Below is my service, I have a simple utility which upgrades the service, I have enabled this to run on boot [Unit] Description=Firmware Update Service [Service] StartLimitBurst=3 StartLimitInterval=...
0
votes
0answers
18 views

How to download wine-tkg manually to play FIFA 19?

I am using Linux Mint 19.1 and I want to install FIFA 19 in it. I went to lutris.net and I found out that I have to install wine-tkg for esync features. The download link provided in there doesn't ...
0
votes
2answers
12 views

Tomcat9 Enable Manager Page for multiple services

To enable manager page for some webservice running on port 8999, i have copied the manager directory from webapps to port 8999's appbase i.e., webapps2. The manager page opens fine on port 8999 but ...
0
votes
2answers
59 views

Linux awk grep from file 1 into file 2

I have regex in file 1 .*8912.*.*.*.*81415444.* .*8912.*.*.*.*81415444.* .*8912.*.*.*.*81415444.* .*8912.*.*.*.*81415444.* .*8912.*.*.*.*81415444.* .*8912.*.*.*.*81415444.* .*8912.*.*.*.*81415444.* .*...
0
votes
1answer
16 views

Getting the right file permissions when building packages in /usr/local/src

As far as I understand, when you build a package foo located in /usr/local/src you shouldn't need to be root. However, when I extract the package and try to run the build script it fails because it ...
0
votes
0answers
7 views

Sharing internet using Network-Over-USB in Raspberry Zero based on ( BeagleBone Black method)

need to connect my pi via USB Ethernet to my WIFI PC (Linux Mint LMDE 3 Cindy) to connecting to the internet. I have changed my pi IP to 192.168.7.2 by this instruction. After that, I have done the ...
0
votes
1answer
30 views

fetch line in a file if first column match from another file?

I have two text files (tab delimited). I am looking to fetch a line from file 2 if first column or ID matches in file 2. Example is below: File 1: 115 147 222 322 File 2: 0 ...
0
votes
0answers
11 views

Live CD/USB distro with most recent (or mainline) kernel [on hold]

Out there in the Linux kernel, and related camps, impressive progress is constantly made with regard to support for new and shiny hardware. And I am wondering why there is no (at least no popular/...
0
votes
3answers
24 views

How to write a bash script to trigger next command if and only if the previous command's process is completed

I have a command like this which will trigger a process ./extract.sh 1553212800 1554854400 & This will give a process id for example 1234 and I want to run next command only if 1234 is ...
-7
votes
0answers
28 views

Creating A new filesystem [on hold]

one linux server has been installed fedora with lvm now you need to create a new filesystem with 500gb mounted on /doc. Assume there is 700gb free space on disk /dev/sda. As a system Administrator, ...
0
votes
1answer
21 views

I am not able to update a variable through sed command

I have assigned two variables but not able to update x=$(cat /scratch/env.properties | grep ConfigPath) y=$(ConfigPath=/scratch/a/b) then sed to replace ConfigPath in env.properties sed 's/$x/$y/' ...
0
votes
0answers
28 views

Continuously detect a change of chksum of files under folder with inotify-tools [duplicate]

I just installed inotify-tools. I would like to continuously detect change of chksum of files under folder /path Once a change was detect ( under /path ) then it will print echo “chksum of files ...
3
votes
1answer
55 views

Extract Kernel from Running System

Is it possible to get the kernel image (bzImage, vmlinuz, etc.) from a running system by reading through the system's memory?
1
vote
2answers
35 views

Can I Increase raid 1 capacity by changing to raid 5?

My initial raid setup was 2x2TB RAID 1 using mdadm. I have bought a 3rd 2TB drive in the hopes to upgrade the RAID's total capacity to 4 TB using mdadm. I have already run the following two ...
1
vote
1answer
24 views

Firewall Blocking NATed Traffic Suddenly after adding a NIC

I have home a server that used to have one NIC, but I added a second one to give a dedicated link to the TV tuner. I went from having eth0 (the onboard NIC) to enp7s0 (the new NIC) and enp9s1 (the ...
0
votes
0answers
10 views

Automatically java run if it stopped [duplicate]

Can i check java process using crontab (or other way) and if java process does not exist automatically perfom command: nohup java -jar /home/ec2-user/sringTestBoot-1.0-SNAPSHOT.jar
-1
votes
0answers
25 views

how to know if files chksum was change under folder

under /home/app/Jars we have files ( many jar files ) we want to restart the /home/app/kasandra.sh restart once chaksum of files under /home/app/Jars was change how we can do it? example how to ...
0
votes
1answer
16 views

Range of dates with minutes

I am trying to create a series of dates from 01/01/2010 to 01/02/2010 with the minutes at uneven distances, like so: 2010 1 1 00 00 00 2010 1 1 00 20 00 2010 1 1 00 30 00 2010 1 1 ...
0
votes
0answers
16 views

Linux command to decompress the files in directories and add them back to one archive

Is there a way to decompress gz files in the directory, sub-directory and then add them back to a new gz archive with the same directory and sub-directory structures. There are more than 8k files and ...
0
votes
0answers
54 views

how to cause ssh delay between two Linux machines

we have redhat machines - version - 7.2 as all know ssh between Linux machines should be fast ( couple m seconds ) but for testing we want to cause ssh delay between machine - linux 1 to linux 2 ...
0
votes
1answer
32 views

How to segregate data from long sized csv file in linux terminal?

I have a .csv file around 30GB of size. I wanted to grep some lines which should follow multiple string matching condition. What could the correct way to do it using grep, awk or sed? I tried ...
0
votes
0answers
16 views

Network Team name is not getting set properly with kickstart

I am configuring team with kickstart file on CentOS 7.6, All working file except Name of team I put following code in kickstart network --device team0 --bootproto static --ip=192.168.127.11 --...
0
votes
0answers
6 views

journal_async_commit is not compatible with older kernels. What would you see in this case?

man ext4 mentions a mount option called journal_async_commit. Commit block can be written to disk without waiting for descriptor blocks. If enabled older kernels cannot mount the device. This ...
0
votes
2answers
33 views

Linux routing flow

I want to know how Linux uses routing table when reaching out to another ip. As i know for example when we run "ssh 192.168.21.2", system will create the tcp packet with destination ip as 192.168.21.2 ...
-1
votes
1answer
9 views

Linux - After reboot, I get a Keyboard Interactive Authentication error. All Network traffic closed it seems

I'm running Centos connecting with Putty. Starting today, every time I reboot, It forces me to log in as root before it will let me log in with my su. I log into Root, then run su username and then ...
0
votes
1answer
17 views

Remote carriage return if there is only one column

A proprietary command similar to "df" returns me this : FOO_vol6 1714236984 1685700840 28536144 98% /root_vdm_10/FOO_vol6 FOO_vol4 253851840 64818424 189033416 26%...
0
votes
0answers
4 views

PDI jobs not getting triggered in Linux after using SWAP

I have few PDI jobs scheduled in the morning. Initially the jobs were failing due to this error "Cant Allocate Memory". It was when we decided to add Swap memory. We have tried setting Swappiness = ...
-1
votes
0answers
10 views

Unable to set jupyter notebook password on Linode

Following the Linode documentation to set jupyter notebook server on my linux machine using Apache web service. While setting password for Jupyter notebook I am getting an error [C 06:18:46.762 ...