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.

-1
votes
0answers
23 views

Expand a filesystems size

I have a preconfigured raspberry pi running a linux os that has several filesystems mounted. Now (I assume for security purposes) the extra modules installed for python are placed on a seperate ...
0
votes
1answer
24 views

Counter in seperate text file

I have a script that processes files based on drop folders, I created a function to do the processing and based on a set of variables I process a folder funtion filedetect { // <some processing ...
1
vote
0answers
29 views

`apt-get`, `dpkg` fails from a bluetooth serial port, but succeed from the physically attached console

On Linux, is there some configuration setting or feature that could explain some commands can work from the system attached console, but not from a serial console? I post here because the remote ...
0
votes
0answers
23 views

sudoers based on Active Directory groups and wildcards

We have many applications in our environment. Each app will have a READ group and an ADMIN group configured in Active Directory and the groups are to be used in the sudoers file for fine grained ...
0
votes
1answer
23 views

Editing multiple iptables rules

i am using iptables to allow certain IPs(users) to allow specific ports. Like so - ACCEPT tcp -- 1.2.3.4 anywhere tcp dpts:4358:4362 So for each IP address I have multiple ...
1
vote
0answers
42 views

PCL to PDF with colors

I need to convert .pcl files to .pdf files. I did some searching and found that gplc6 (from the Ghostscript family) is the tool I need. I ran the command like this: gpcl6 -o test.pdf -sDEVICE=...
1
vote
2answers
77 views

Is it possible to hide an area of hard disk from root user?

Do linux kernel have a feature that can be used to hide an area of hard disk (e.g last 1GB of hard disk) from root user or at least make that area completely unwritable by any means?
0
votes
1answer
28 views

SSH IP access restriction using tcpwrappers is not working. (hosts.allow and hosts.deny not taken into account)

I am using sles-12 server and i am trying to restrict ssh access to my server to my pc alone. I have tried to use tcpwrappers and it's not working..!!. I am able to ssh to the server from any IP in my ...
0
votes
0answers
35 views

Is there any ASCII character based screen saver for server login console

There are plenty of screen savers for desktop environments. Is there any for server console?
0
votes
0answers
15 views

Samba 4.7.1 multiple shares and access (CentOS 7.5)

I have started a file sharing server based on Samba 4.7.1 and CentOS 7.5 My goal is to setup private shares for groups or single users and one public share with only to read permission. I made ...
0
votes
1answer
31 views

What level is the value `ulimit -n`mean? user level or process level? [duplicate]

I want to increase the ulimit -n value,so I add * soft nofile 20000 * hard nofile 20000 in the /etc/security/limits.conf file, but there is a question confuse me all the time. what ...
3
votes
1answer
66 views

Does the root user have read/write access to kernel code?

I want to know if the root user can read from and write to sections of kernel code in memory. Can it?
0
votes
1answer
16 views

Maitreya 7 error: linked to “config directory /usr/share/maitreya6/”

I am truing to run maitreya_textclient (an application to list astrological information in text mode) and I get the following error: WARN: datadir does not exist Fatal error: cannot open Yoga config ...
1
vote
1answer
29 views

Variable inside a curl Array [duplicate]

How to put the variable "user" in this array. The way it is not it doesn't work sadly. The $user variable should be john.smith for example. I have the following output: curl --header "Authorization: ...
1
vote
0answers
30 views

The standard mechanism to switch GPUs isn't undocumented, is it?

My laptop is a normal, uninteresting machine with two standard, unmultiplexed GPUs and an ordinary Debian stretch installation. The secondary GPU (a Radeon) is usually powered down but I can activate ...
0
votes
2answers
40 views

program/application or script that reads /etc/hosts

What is the name of the program or script that opens and reads /etc/hosts when name resolution is needed? and is it different for every linux/unix distro? I read the man page for hosts and tried ...
-1
votes
1answer
57 views

Stability of linux [closed]

I have one "theoretical" question regarding the stability of Linux. Is there a way that somebody verifies it? I recently installed Debian 9 (KDE) and given my experience with other distros, I was ...
10
votes
1answer
715 views

Debian: cannot remove symlink in /sys/: operation not permitted

I ran some commands without completely understanding them while trying to get screen brightness working and now I'm stuck with a nasty symlink in '/sys/class/backlight/asus_laptop' that I am trying to ...
-4
votes
2answers
59 views

Does the existence of a writable regular file with the same name prevent producing a core dump file? [closed]

The manpage of core(5) says one of the reason by which core dump file is not produced is: A (writable, regular) file with the same name as would be used for the core dump already exists,...
0
votes
1answer
45 views

How to cat and read white spaces from file

I have a file named "rules.txt", this file contains the following below: Jones 2 IP1 1P2 The thing now is that "Jones 2" is supposed to be one word. How do I get my script to understand this? ...
0
votes
1answer
29 views

How can i copy files from any usb stick to user's home directory using terminal commanld line?

As i mentioned in my question title above i have a usb stick that contains the folders "theme" and "icons". I want to copy those 2 folders in the folder home/andrew/.config folder of my computer or ...
0
votes
1answer
23 views

smartctl megaraid,N ( how to find the right value for N ? )

we run the smartctl on sdb disk smartctl -a /dev/sdb smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www....
0
votes
1answer
59 views

Is there a way to prevent root user from modifing kernel and boot loader?

Suppose that a regular linux machine is compromised by an attacker who obtained a root shell, he can modify the system kernel or modify boot loader to load another kernel. Is there a way to prevent ...
-1
votes
1answer
39 views

how to add words before line on all the scripts in current folder

under /home/scrript , we have 187 bash scripts all the scripts have the following line: kill -PIPE $PID we want to add the following words before this line on all the scripts as the following [[ $...
0
votes
1answer
33 views

Script that input files starting with dash and has space in center [closed]

I have a shell script that converts a .md file to .pdf using pandoc. When executing the script for example: ./script *file.md it doesn't detect the files needed to be converted because they ...
0
votes
1answer
45 views

Linux + how to know which CPU Cores was active last day

recently , we upgrade our redhat server ( version 7 ) from 4 CPU CORE to 32 CPU CORE is it possible to know which CPU was triggered during last day ? I mean how to know if the additional CPU that we ...
0
votes
1answer
15 views

Making DNS permanent in Docker's containers [closed]

I have container1, I have edited the /etc/resolv.conf and put nameserver 8.8.8.8 to ping google.com. It works fine. But I need to make this permanent, when I restart my docker's container using sudo ...
0
votes
1answer
29 views

How do I create a new user and a new file in its directory?

Introduction I need to create a new user, and it needs to have a custom file named "config.sh". Question So far what I do when creating a new user is: sudo useradd –c "New User" –md /home/NU ...
0
votes
1answer
22 views

Lightweight application to send files via browser with http

I have a server allowing traffic only on port 80 and 443. I need to upload a file to said server. Isn't there any application allowing me to upload a file to a server folder via browser?I have apache ...
0
votes
2answers
67 views

Is there a way to predict or count the number of page faults?

I am working on hardware performance counter (HPCs) and I seek to use these counters to measure some events accurately. I have found that the non-determinism in hardware performance counter (...
1
vote
0answers
27 views

How to diagnose a slow network on Fedora 28?

Experiencing very slow network throughput on my linux Fedora 28 box. Barely getting over 4 MB/s down (~39 Mbps) using speedtest-cli, I can sometimes get near 8 MB/s down using wget to download test ...
0
votes
0answers
25 views

How is it possible to trace all command executions in linux? [duplicate]

I want to log all commands (with args) that are executed in linux with their parent process name. For a single command one can wrap the command with a script that logs the the call to the command and ...
1
vote
1answer
17 views

DWM Unicode Support

I'm in the process of creating a nice looking statusbar with DWM and I want to implement unicode symbols with font awesome. Supposedly I can use the Pango patch but its out of date (for version 6.1) ...
0
votes
1answer
71 views

How to identify GPIO pin numbers? Is GPIO driver loaded?

I am trying to get the GPIO pins on my mainboard working but I don't know the numbers/descriptions of the pins and if a driver is loaded or not. I found this guide where it says that I should echo ...
1
vote
0answers
8 views

Is it possible to modify Ubuntu 18.10 System Monitor to include GPU statistics? [closed]

I think I can throw together a fairly simple script to poll the usage data every few seconds. I am fluent enough with node/react that I could get that data and display it in a live graph that polls ...
0
votes
2answers
34 views

How to change string values to index value to use in Array?

I tried to change an string to index to use for an array but I have been unable to get it to work. This is my file $ cat file1.txt 101,Harish,BAN 102,Srinu,HYD And this code: #!/bin/bash IFS=',' ...
1
vote
1answer
14 views

Ansible command returns change instead of success

I'm learning ansible and encountered a situation which is not clear. Running the following module command the result is a 'Changed'. ansible agent.example.com -i inventory -m copy -a 'content="Node ...
1
vote
1answer
65 views

Can we find out server/daemon and client processes from each other on the same machine?

On Ubuntu, I often run some server/daemon and some clients both locally. The server/daemon and clients can be arbitrary programs (emacs daemon and clients, Screen daemon and clients, server and ...
0
votes
0answers
13 views

How does udev get devlink information for kernel device events?

I understand how the devlinks are created for linux devices by udev via udev rules. The one piece I don't understand is when the kernal emits an event that a particular device went down, how does udev ...
-3
votes
1answer
35 views

I want to execute man command on another command that I get as input from a file

I have a file that contains multiple commands, ls,echo,ps etc. I want to find with a terminal command which command occurs most (have the most appearances on the file) and then execute man to it. For ...
0
votes
1answer
44 views

What is /dev/vcs* on Linux?

man vcs(4) is Greek to me. I'm running Lubuntu 18.04 with the LXDE graphical user interface. When searching for an answer to my other question, Where is terminal output stored?, I found that /dev/...
0
votes
0answers
18 views

Arch linux tries to initialize non-existent network interface after moving to new motherboard

I moved my linux drive to a different computer and was able to set up the new (appropriate) "eno1" network interface. But when I boot up, after connecting to that interface, it tries to connect to "...
-1
votes
0answers
31 views

User limit of inotify instances

I have a java app that won't start and I'm getting the following error: java.io.IOException: User limit of inotify instances reached or too many open files Is there any way to tell what on my system ...
0
votes
0answers
9 views

How to disable custom icons for program in XFCE

I use many File manager (for some reasons) but they all have the same icon (besides Nemo), making it hard to recognize. Is there a way to disable this so that every File mnager use it's own original ...
0
votes
1answer
21 views

Slicing JSON with JQ to Create Arrays for New Relic Ingestion

sorry for the long title. I need to take some JSON, slice it using JQ so New Relic can parse it properly as it only takes a specific format when pushing JSON to their dashboards. I am using a bash ...
1
vote
2answers
28 views

Sed Output needed from Linked Folder

I am able to get the Below answer starting with 21. I need to get rid of the beginning, and the end. I only need to get the "/apps/java/default_jdk" What is the best Sed Command that will get me ...
0
votes
1answer
46 views

How is the number of accessible virtual consoles decided?

My Ubuntu 18.04 has /dev/tty{0..63} (and /dev/ttyS{0..31}). Does it mean I have 63 virtual consoles (/dev/tty0 isn't an independent virtual console, and /dev/ttyS{0..31} are perhaps not virtual ...
0
votes
2answers
28 views

Question about login logs using “sudo su - username”?

Introduction Not so long ago I step upon this great endless voyage that it's Linux and UNIX systems learning. Question While doing my training I found this curiosity: If I do "sudo su - username" ...
1
vote
0answers
22 views

multiple lines into one [closed]

Input file is :- 300100000,4358 67 2 48 1000 And the output is supposed to be as: <exception conflicting="ABC" entity="s-c" id=...
0
votes
2answers
44 views

Batch rename media files

I have an Enigma2 FreeSat recorder that I've now hooked up to my Plex Media Server. Plex can see and play the files from the Enigma2 just fine, but the file naming makes this unattractive. How can I ...