We’re rewarding the question askers & reputations are being recalculated! Read more.

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

Using an awk script, how do I count the number of fields in which a substring lies in a file?

For example, I have the text document: "Hello, I am the janitor and I have a headache The rabbit jumped over the red brick wall" I want to count the number of fields in which the substring 'he' ...
-1
votes
1answer
21 views

How to do linux snapshots similar to VirtualBox guest snapshot?

I'm still learning how linux works so I'm constantly making mistakes, installing packages in the wrong way and whatnot. A good way of solving this is using VirtualBox and just taking snapshots from ...
0
votes
0answers
39 views

how to prevent files and folder deletion under /tmp

we want to prevent the deletion of files or folders under /tmp on some specific machines we found the following file more /usr/lib/tmpfiles.d/tmp.conf # This file is part of systemd. # # systemd ...
0
votes
0answers
12 views

Fedora 30 Grub Broken after hibernation with low battery

My grub stopped working after an hibernation, I tried to fix it but actually I did the oposite. After that I tried to use the boot-repair within a live usb Ubuntu, but it shows a message that “Please ...
0
votes
1answer
70 views

How to write script in awk that tells average length of fields in each record, without counting whitespaces?

So I need to write an awk script file that finds and prints the average field length of each record in a text document. The text document is this: The quick brown fox jumped over the lazy dog's ...
1
vote
0answers
22 views

Unoconv changes commas to dots/periods in numeric fields

I have converted .xls files to .csv format using the unoconv command on Linux. I have noticed that the decimal separator in number columns values are changed from comma (,) to dot (.). Command: for ...
0
votes
3answers
58 views

how to create a ~/bin folder in all user's home location?

We want to create a personal bin directory in all user's home location. Is there any way to create a ~/bin folder by default, when we create users for the first time?
1
vote
0answers
9 views

Network interface statistics: tx_dropped value always 0

I am writing a program that collects and displays network interface metrics located in the /sys/class/net/ folder. When I was reading about the meaning of rx_dropped value, I came to the conclusion ...
1
vote
1answer
38 views

Setgid strange behavior

I have following files: ----rw---- 1 wojtek users 4 Oct 26 15:56 data.txt -rwx--s--x 1 wojtek users 8864 Oct 26 16:00 fopen_setgid When I run fopen_setgid as daro then everything works as ...
0
votes
1answer
24 views

Restricting users to their home-directory in FTP (ftpd)

I have installed ftpd on my Debian client and I'm trying to setup some restrictions but I'm not sure which way to go. I have 3 users: Bob Alice Max One group called: Clients And a new partition ...
1
vote
1answer
40 views

make mrproper vs make distclean in the Linux kernel

I understood the difference between make clean and make mrproper. make clean will only remove the generated files (.o/.ko) but not the configuration files and the files in include/generated, include/...
0
votes
0answers
33 views

Linux : rebooting on distro from another installed one

Problem On a "Linux only" computer (no Windows at all), I tend to like to have two distributions : a "main" distribution, Manjaro, which I use for mostly everything, because I like it and I'm used ...
1
vote
0answers
22 views

Secure way to update Date & Time of a Linux Embedded Device

I have a Linux (4.9.171) machine running on ARM Cortex-A processor. The system has internet connection and talks to my server over SSL. At the first boot, I can configure the date and time to it. ...
0
votes
2answers
65 views

Linux timer interrupt

I have two questions about the Linux kernel. Specifically, does anybody know exactly, what Linux does in the timer interrupt? Is there some documentation about this? And what is affected when ...
-1
votes
3answers
78 views

Understand the /etc/inittab

I am using the following /etc/inittab file (systemv): # /etc/inittab: init(8) configuration. # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $ # The default runlevel. id:5:initdefault: # Boot-...
1
vote
1answer
17 views

kernel version in boot folder

When I enter "ls" command in the boot folder, the below kernels are shown: kernel-3.16-lts-x86_64-all, kernel-4.14-lts-x86_64-all, kernel-4.19-lts-x86_64-all, kernel-4.9-lts-x86_64-all What does "...
-2
votes
3answers
41 views

how to build stable NTP server

we have in some room ( with no connection to internet network ) , linux redhat servers we installed the NTP clients based on crhony service on all machines to sync to NTP server now we want to ...
1
vote
0answers
24 views

TOP Data inconsistent Centos

One Process Is showing that is it consuming 2000 percent cpu but in the Overall percentage in TOP command , it is showing only 2-3 percent . Some other info : 1. There are total 32 cores in the ...
0
votes
2answers
29 views

BASH - Linking 2 processes, terminate process 2 when process 1 is terminated

I have a process running, which is creating a file clean_db () { while read i do Some_long_process >> output.txt done < input_db I want the other process to run and ...
0
votes
1answer
40 views

Can I use `diff` to display not the different but the matching parts?

man diff says: diff - compare files line by line So diff will compare the files. However, eventually, it will show the difference, if there is any. How can I compare the files and show the ...
0
votes
1answer
34 views

Repurpose a Linux command

Currently, I have the zathura program installed in my system. What I did is writing a bash scripts redefine and program to have the right output. I also updated the $PATH for the scripts. However. ...
0
votes
0answers
17 views

Test linux timestamp_timeout in /etc/sudoers

I changed the timeout password option for sudo Defaults timestamp_timeout=10 How can I test this to make sure it works? When I try to use sudo vim /etc/sudoers I still get asked for my ...
0
votes
0answers
30 views

CentOS/RHEL7 Custom Live ISO

I'm trying to generate a custom RHEL7 boot ISO that will run 'Live' such that the squashfs.img is copied to the ramdisk and the boot media is not required for operation. I have an ISO successfully ...
0
votes
1answer
25 views

how to move files with numeric key words to corresponding folders using bash terminal script

I have a question about how to move files to specific folders according to their key words. Say, I have a bunch of files: R01.fastq.gz R02.fastq.gz R03.fastq.gz R04.fastq.gz ... and I have a buch of ...
0
votes
2answers
58 views

Problem of Using 'sed' to Edit Code

for(int i=0; i<oldmethod(a, 7); i++) { sum += oldmethod(b*b+i-3, i%a); ----> for(int i=0; i<newmethod(7, 0, a); i++) { sum += newmethod(i%a, 0, b*b+i-3); I had sed 's/old(\([-a-zA-Z 0-...
0
votes
0answers
6 views

How do I configure SMTP to be able to send from multiple domains on linux using sendmail?

I have many websites hosted on the same server. I would like to use SMTP to send mail from each domain. Right now, it's restricted to only send from the one domain, seemingly the host name. How do I ...
0
votes
1answer
24 views

is it mandatory to configure the allow in chrony.conf

according to the redhat document - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-understanding_chrony_and-its_configuration allow ...
0
votes
1answer
18 views

How to map and compile terminfo for some terminal?

I have urxvt terminal. It works as it should after manually setting the following: usr @ archlinux ~ : typeset -g -A key usr @ archlinux ~ : key[Home]="${terminfo[khome]}" usr @ archlinux ~ : [[...
0
votes
0answers
11 views

Change name of dual boot system drive to custom name

So I have a dual boot system. One is Parrot OS, and one is a custom ubuntu live boot. Whenever I turn on the ubuntu OS, I can see this on the left hand side of the nautilus window - This is the name ...
0
votes
1answer
13 views

CPU utilisation of Tomcat8 is high in Linux machine

I have a web portal and it is consuming high CPU. We have taken thread tump and checked the Catalina log during the time of issue and we couldn't find the root cause of the same. Is there any way that ...
5
votes
2answers
474 views

is it possible to combine grep -C or -A or -B with something that EXCLUDES the matching line [duplicate]

So with grep we can use -A to get lines "after" the match, we can use -B to get lines "before" the match. Also we can use -C to get lines both before and after. I have some data like this boring ...
0
votes
0answers
15 views

Unable to configure VF 0 of PF 'ens5f1' because the PF is not online.. Need to understand these errors

After restarting the hypervisor, I am not able to start my VMs, and getting following error that is causing the VM to not start successfully: --- messages error causing SBC not to start --- Nov 3 18:...
0
votes
0answers
8 views

Extracting two patterns from a file on multiple lines with output side by side

I have text report data formatted with an a identifier code on one line and then the account code associated with the identifier code on another line. Sometimes there are multiple account codes per ...
2
votes
2answers
59 views

Sharing files/data in Linux between local users, without them knowing each others passwords or having root privilegies

If I have 3 (or more) users on one computer, what's the best (easiest) way to let them share files between themselves? The catch is that UserX should be able to send files to UserY without UserZ ...
0
votes
0answers
36 views

How many memory segments?

I'm having trouble interpreting the output of a pmap command. I want to see how many memory segments are added to the process when one of the libraries (libupper/librot13) implementing a transform is ...
-2
votes
1answer
38 views

Can't reset password

I am currently using a Debian 10 linux VM from Google Cloud Platform (GCP). I changed the configuration to require a password when I use the sudo command, but I forgot to actually set up a password ...
0
votes
0answers
21 views

Is it possible to export/save Docker's full Linux OS system as a rootfs.tar.gz?

I would like to export or save the full Linux OS, i.e, all root directories – /bin, /home, /usr, etc. as a rootfs.tar.gz and to view and access all full root directories. If I mount the Docker's ...
0
votes
1answer
11 views

Execute process with “low” priviliges inside shell with inittab

My goal is to modify the /etc/inittab file in order to execute a spesific program with minimal or customable permissions in an interactive shell with job controls enabled and once it will be ...
0
votes
0answers
6 views

Error while installing redhat 8

Getting this error when installing redhat linux enterprise - any idea why?
0
votes
0answers
41 views

time on machines change after some time in spite chrony service configured

we have machines in cluster before one week we restart the chrony service , and we check the time on all machines after chrony restart time was ok on all machines after 2 days we noticed that on ...
1
vote
1answer
26 views

No wireless connection on Kali installation

I have just installed Kali Linux (64) on my laptop, but I haven't been able to get the Wi-Fi to work. These are what I'm getting when I run the following commands: iwconfig eth0 no wireless ...
0
votes
0answers
27 views

Does var directory in the linux file system hierarchy has any performance implications?

I've been reading the purpose of top level directories in the linux file system hierarchy and it's suggested /var be used for variable data. (Ref: https://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/...
1
vote
1answer
40 views

Is it possible to install applications in docker container permanently?

I am using docker but every time i run it, i should install some important applications for my work and that needs some effort to edit sources.list with cat then installing sudo and nano then ...
0
votes
0answers
20 views

SSH login via jump host using RSA

Consider following three machines in this scenario: Machine_A: my local home Desktop Machine_B: some server I can ssh directly without vpn from Machine A. (remote jump-server) Machine_C: Firewall ...
-1
votes
1answer
26 views

GLib-GObject-CRITICAL **: g_object_unref: assertion Error Got when using evnce comand to open pdf in linux

I have tried to open a pdf Using Evince Command but somehow i got this message "GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed " Help me to know more detail about ...
0
votes
2answers
67 views

Process Ignores Signals + Terminal/Shell Concept

I'm using linux kernel 4.1.8 32bit. My init process (using /etc/inittab and /etc/rd5.d Scripts) run the "Hello" process during boot time: int main(){ int val; printf("Hello\n"); scanf(...
-6
votes
1answer
69 views

Why linux popularity is going down? [closed]

why linux popularity goes down but softwares come to linux more and more?source
2
votes
3answers
135 views

Change date format with sed or awk in file

I have file which has following format ---------------------------------------- Name: cust foo mail: cust.foo@example.com Account Lock: FALSE Last Password Change: 20170721085748Z -----------...
0
votes
2answers
29 views

Filter a file, multiply a value in the lines that contain certain string, return all lines

With grep filter a file, from that filtered lines do a math operation on a specific column, only in the lines that contains a string "value=", return all the lines from the first grep filter and the ...
0
votes
0answers
36 views

What license does ~/.profile fall under?

On Unix & Linux, what license governs usage rights for the '.profile' file? Also what entity can be questioned about compliance?