Stack Exchange Network

Stack Exchange network consists of 174 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
3answers
60 views

Syntax error near unexpected token ` | '

I keep getting this error line 3: Syntax error near unexpected token `|' This is the script at the moment: for filename in $(ls $1) | grep -v ".old" do mv "$1/$filename" "$1/$filename.old" done ...
0
votes
1answer
17 views

how to show battery , wifi in jwm status bar

am switching to JWM window manager , but the problem is that it does not have a battery percentage or network connection , also i cannot increase screen brightness ? is there any way ?
0
votes
2answers
30 views

What and usage of shell function? As listed using declare -F

I'm trying to jump start my Linux (Centos) knowledge and trying to understand what is "default" Shell Functions listed by declare -F. No idea what these functions is called, I just label them as "...
0
votes
1answer
33 views

What is the actual sequence of steps during rm -Rf on a very large folder?

Let's say I run rm -Rf on a very large folder with many files and folders of different size, user permissions etc. I would like to know, does the rm command first accumulate the list of files to ...
-1
votes
2answers
28 views

How to find files containing set of words on linux [closed]

I have number of text files line fruit1, fruit2, fruit3, fruit4 and so on in one directory. Now I want to find the files which contains all three words "Appale" , "Banana" & "Orange". All three ...
0
votes
1answer
42 views

Rsyslog alter log line before forwarding

being on Ubuntu 16.04.5 LTS with rsyslogd. We have the following situation: (1) An appliance forwards syslog to the Ubuntu host. (2) Ubuntu Host stores those forwarded messages in a separate logfile ...
2
votes
0answers
24 views

Sound on multi-seat system? [closed]

I have set up a multi seat system, distribution of input devices and displays is working. Now I want to assign Audio devices to the users. Audio is supposed to be played over HDMI, so the displays ...
0
votes
0answers
32 views

How to append a new disk to an existing folder

I have a server with a program which rapidly writes data to a folder. I attached a new disk to the server, mounted it and now I want it to expand or replace the folder with data. The program works ...
1
vote
0answers
22 views

login system on a buildroot linux router [closed]

I have a Gemtek WVRTM 127ACN router / modem, If you do not touch any key during startup, linux starts automatically. It's a linux version created with buildroot, the problem is that there is not a ...
-1
votes
2answers
25 views

SELinux is preventing $_POST variables on Amazon Linux 2

I began playing with RPM based OSes and I am really impressed. Amazon Linux doesn't include setroubleshoot in any of their repos. I want to use official repos for everything, otherwise I would ...
1
vote
3answers
36 views

How to create a recursive manifest directory

I need to create a manifest of thousands of files and their directory paths recursively. Here is an example of how i need the manifest to output This_is_an_example/of_how/i_want_to_display/...
0
votes
1answer
14 views

curl command from a linux system to access https://ssl-failure.thousandeyes.net results in an error

while Using the curl command from a Linux (not a Mac) system to access https://ssl-failure.thousandeyes.net results in an error. However, opening this site in a web browser such as Chrome appears not ...
1
vote
3answers
81 views

Drive won't boot from its Grub, but will from another drive's Grub, after cloning, why?

It was a month ago, so if you ask me on details, I might still remember, but better act on information that can be given as of now. Due to the lack of time, I did not ask for help here. I have cloned ...
0
votes
0answers
10 views

Samba access denied

I've created new section in smb.conf file like: [users] path = /test/ read only = no force create mode = 0600 force directory mode = 0700 Created that /test directory with chmod 777 rights. ...
-3
votes
0answers
18 views

How to get last command with date range in Linux [closed]

How to use last command to get login information on a particular day in Linux and send an email alert at the end of the day
1
vote
0answers
20 views

How to dump stack trace for all processes in Linux?

I am trying to track down a bug on an Android device that involves IPC between several native processes. At a given point in time I would like to dump native stack traces for all threads in some or ...
0
votes
1answer
23 views

How to enable hostname resolving in Debian? [closed]

I have installed Debian on a dedicated server. The company that leases this server gave me 3 addresses: DMZ IP Mask Gateway The server cannot resolve hostnames. So when I use ping with IP- it works. ...
2
votes
1answer
29 views

Easy way to change compression level of a zip file [duplicate]

On linux, is there an easy way to recompress a zip file (changing compression-level) with preserving as most meta-data as possible (timestamps etc.)?
-1
votes
1answer
49 views

Installation conflicts with httpd on Amazon Linux AMI

When installing 'yum install -y php70 mysql56-server php70-mysqlnd' on an Amazon Linux AMI server, I'm receiving these conflicts: Error: httpd24-tools conflicts with httpd-tools-2.2.34-1.16.amzn1....
2
votes
1answer
28 views

systemd restart service automatically only after crash

Is it possible to make systemd automatically restart a service only if the service did not return 0? As far as I have understood, a service returns 0, when a correct end occured- say when a user ...
0
votes
0answers
13 views

Any way to “forward” an IM from jabberd2 to users on Cisco XMPP?

I use a jabberd2 MUC to monitor server status from Graylog and Nagios. The helpdesk guys would like to be able to join the MUC, however they are on Windows (I'm on Linux) and have a Cisco jabber ...
0
votes
0answers
29 views

Require a yubikey AND (publickey OR password) for SSHD auth

I am attempting to configure OpenSSH on a Debian based system to always require a yubikey TOTP AND either a publickey OR password. I realise other combinations are possible through ...
0
votes
0answers
11 views

Boot on aufs layered root file system

I would like to have a root file system composed of several aufs branches mounted on /. My Linux is a custom one created using buildroot and deployed on a board with a SAMA5D2 processor. The mmc of ...
2
votes
0answers
61 views

Several Linux distros freeze [closed]

I tried to move from Windows to Linux but at the time of installation it always freezes when you enter the login password, while the mousepad is disabled, I have tried it with Mint, Ubuntu and Deepin ...
0
votes
1answer
28 views

CUPS - Add a parallel printer connected to serial port?

I'm trying to add an HP LaserJet 6L printer to CUPS, that is connected to linux printing server via a homemade serial - parallel adapter based on this diagram: Adding a printer as a serial printer ...
0
votes
0answers
16 views

Add a Key Value Pair in JSON Object Using JQ and Bash

I have a script that crawls through a directory and pulls info from WP sites and builds a JSON array of objects that will eventually be fed into a visual dashboard. The script works perfectly but I ...
0
votes
1answer
50 views

Must SIGKILL (and SIGTERM) be explicitly sent to a specified process?

Reading Gilles' answer, SIGHUP is about the same as SIGTERM in terms of harshness, but it has a specific role because it's automatically sent to applications running in a terminal when the user ...
0
votes
0answers
16 views

Using Displayport over USB-C (Thunderbolt 3) to drive external 5120x2160 monitor; resolution not detected, cvt mode not working

I bought a shiny new LG 34WK95U ultra-wide screen, which has a native resolution of 5120x2160 at 60Hz. When connecting the monitor via a Thunderbolt 3 USB-C connection, it gets picked up, but it ...
0
votes
4answers
42 views

How to extract word which has only numbers separated by 'dot'

From below lines abcd efgh ijhk lmn opqrs 9.0.8.2c tuv wxyz abcd efgh ijhk lmn opqrs 8.1.3.9b How to extract only 9.0.8.2c 8.1.3.9b
0
votes
1answer
32 views

Does software threads include user threads?

From this answer - software threads vs hardware threads, software threads are threads managed by OS. But I also learn another term called user threads, which are threads that's not kernel threads, i.e....
0
votes
0answers
13 views

gpg-agent fails in mysterious way

I start gpg-agent.service with option --homedir to use my authen subkey, restart on-failure, gpg-agent work well, but if when I do push/pull/clone on remote repo, when gpg's asking for passphrase with ...
0
votes
0answers
26 views

linux shell array create difference using between parentheses and declare

In a Linux shell, there are two ways to create an array. declare -a array array=() but when I check if an array is empty using if [ ${#array[@]} -eq 0 ] when an array is created using the ...
0
votes
1answer
20 views

Store Single Variable from Input File into Array

I am trying to create a logon program for users listed on a file. When I try to store the names into and array and check to see if they exist, I only return the header. So if I put NAME as the fname, ...
0
votes
1answer
26 views

reusing home directory [closed]

I am using linux mostly for programming in python/go/C++ from vim in a shell. It always takes me sometime to set my environments right when installing a new machine. Any tips on how I can reuse an ...
-2
votes
1answer
21 views

How to add an app using a repo [closed]

Find an application that does not already exist within your Centos VM. 2) Install the application. 3) Please provide the commands used to complete this along with the which repo you got the app from....
0
votes
1answer
16 views

How to fix my excruciatingly slow VNC connection? [on hold]

I'm starting Xorg on a headless server while trying to take advantage of the Intel iGPU. my .xinitrc: #!/bin/sh userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/etc/X11/xinit/...
-1
votes
2answers
39 views

How do i compile linux kernel 4.19 on centos [closed]

I am trying to compile the linux kernel into a binary (Trying to make a linux distro) on centos. I need a step by step walk through on how to do this.
0
votes
0answers
23 views

Pipe with multiple child process [migrated]

I want to create N processes from one parent and this child processes have to read that parent write, but what i have only the first process reads correctly: #include <stdio.h> #include <...
0
votes
1answer
33 views

wget download regex pattern files from remote URL

I want to download all *httpd* RPM file from remote CentOS mirror and I am trying he following command but it doesn't seem to work [root@yum foo]# wget -r --no-parent -A "*httpd*" https://mirrors....
-2
votes
1answer
21 views

My Problem With This Laptop ASUS R541U [closed]

I bought this laptop (asus r541u) and comes with win 10 , I've tried install any Linux distro(mint-elementary-ubuntu-fedore ..) but did not accept . I've Searched at YouTube Google and more but no ...
0
votes
0answers
26 views

How the process hierarchy is maintained in Linux? [closed]

Is Process Control Block (PCB) the only major factor in it, or other concepts of Init process can explain this? Is there a diagram that explains it in details?
0
votes
1answer
17 views

Check if autorepeat is enabled

For the purposes of an app I'm developing, I need to temporarily disable autorepeat (with xset r off), and then restore it back to its original state. Can I easily (like with a terminal command) check ...
-1
votes
1answer
31 views

Network capture using ethtool points to problem?

Issuing this: ethtool -S <network device> | egrep "err|fail" I get the following errors: tx_lost_interrupt: 225 rx_alloc_fail: 36297 What is, tx_lost_interrupt and rx_alloc_fail ? Do ...
1
vote
2answers
54 views

How do I align columns at common elements but give differing elements their own rows?

I am using paste to merge three text files (which do not require sorting) into a single document with three columns. paste a.txt b.txt c.txt I'd like elements that the columns have in common to ...
2
votes
1answer
69 views

How essential are usernames ( compared to uids )?

Background: I recently read about a freedesktop.org-bug which allowed executing any systemctl command for uid > INT_MAX. Thus I ran: root@host$> useradd -u 4000000000 largeuiduser root@host$&...
0
votes
1answer
31 views

How to force GPT partitions in kickstart for Oracle Linux 6

I want to configure OL6 kickstart to install a system that boots from BIOS but uses GPT partitioning instead of MBR, even for disks <2TB. The relevant part of my kickstart file looks like this ($...
0
votes
1answer
26 views

using local dns to allow domain based transparent proxy

I am from iran and some websites are blocked for iranian ips (like nvidia and intel and so on). there is this website that advertise that I can access those domains buy just changing my dns to theirs. ...
1
vote
1answer
59 views

What's the process scheduler in Linux?

I read wikipedia about process scheduler: The process scheduler is a part of the operating system that decides which process runs at a certain point in time. I don't really understand what that ...
1
vote
0answers
22 views

Understanding Network Statistics [closed]

I'm trying to understand how and what should one infer and know how is the network performing, are there any issues or any other details from the network metric values of eth0 and lo. I understand ...
0
votes
1answer
41 views

Can we execute the pro-c file which is compiled on UNIX on Debian 9? [closed]

I have a pro-c file which is compiled on UNIX. The script logins to oracle DB and interacts with DB and update some values there in some tables. We are migrating from UNIX to Openshift Container ...