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.

1
vote
0answers
4 views

82MB of “reserved memory” on 512MB system

I reinstalled a fresh debian 10 on an old x86 system with 512MB RAM (everything works ok). Available memory is 431MB. I don't think that that much memory was "reserved" on an old 3.x kernel (No ...
0
votes
1answer
12 views

Pivot file values

I have a file where the first column is the key. The rows can have up to 2800 delimiters. I need to pivot the data from rows to columns. Below is the sample input and required output. Source File ...
1
vote
1answer
26 views

Grep: Find 3 consecutive char and then follow another char or end of the line

I want to find 3 consecutive characters and then another character or the end of the line. I tried this: egrep '(.)\1{2}' file but I need less results.
0
votes
0answers
12 views

Gnome-keyring: “Automatically unlock this key whenever I'm logged in”

I don't seem to have the option to "automatically unlock this key whenever I'm logged in" when trying to SSH into another computer. This is a screenshot of my prompt: This is an example I found on ...
0
votes
0answers
16 views

How does linux arbitrate access to devices

I would like to know the different methods linux uses to control access to a peripheral device. e.g. for example you have a spi temperature sensor. And multiple threads are trying to get a reading. ...
-1
votes
2answers
33 views

Specifying the range of the arguments to print in every record line

We have a sample data as below EMP_ID|EMP_NAME|AGE|SALARAy|DepId|DepName 123456|XXXXXXXXX|30|10000000|1234|XYZWE I have used below code to split the data as below awk -F\| ' BEGIN { print "EMP_ID|...
0
votes
0answers
26 views

How to run script via cron and get same results as terminal? (Centos 7.2)

I have a complicated question (I understood that's related to environment variables). I'm running a script via termial as follows: "bash install_version.sh" script contains: #!/bin/bash /root/...
0
votes
1answer
37 views

convert string with hidden characters to normal string

is there anyone has an idea about how to remove hidden characters from a string in shell. this is an exemple : #echo $a; [root@localhost ~]# but when i showw hidden characters : #echo $a | cat -v [...
1
vote
1answer
28 views

how to print column names as well while reading the values for that variable

I have below sample data EMP_ID|EMP_NAME|AGE|SALARAy 123456|XXXXXXXXX|30|10000000 Is there a way I can split the record into multiple records and also get header. Example output should be like ...
0
votes
2answers
27 views

Filesystem show up in `/etc/fstab`, but not using `df -a`?

I don't understand why the following filesystem shows up in /etc/fstab, but not using df -a: /dev/sdb1 /var/log/apache_logs reiserfs user,noauto,rw,exec,suid,user_xattr 0 2 ...
1
vote
2answers
17 views

How to Preserve last most directory structure when copying files using find

Using "parents" command help but it copies complete directory structure, whereas I need to preseve only the last most directory find /tmp/data/ -type f -name "*.txt" -exec cp --parents {} /u01/ABC/ \;...
-1
votes
0answers
18 views

CVE mitigation with LSM: Quantitative results?

I'm currently trying to show that Linux Security Modules (LSM) can improve Linux’s security level. Beyond the theoretical aspect, I’d like to motivate my study showing that LSM mitigates some existing ...
0
votes
0answers
6 views

Getting info about particular cgroup

my process is attached to a cgroup /user.slice/lim.scope. How to know how does that cgroup limits my process?
0
votes
1answer
36 views

Get all characters between two double quotes [on hold]

I need to implement the shell script which should return all type of characters between first and last occurrence of double quotes in a variable. Eg: String="The \"hz:"jnz::\\\gb""+₹+_)*s\"hdhz\"...
0
votes
0answers
5 views

Puppy Linux can't start in computer with VIA-based video

My computer, which has a S3 Unichrome video chipset integrated, has problems booting into Tahr Puppy, as it crashes before prompt, as soon as it changes resolution. When acpi=off pfix=nox is used, it ...
0
votes
1answer
20 views

Ubuntu - Can't execute binaries unless they reside in /var/lib/php/session/

I noticed this weird issue in a Ubuntu 18.04 (Bionic Beaver) box and a couple of other Debian-based systems -- I will take statically linked netcat binary (a unix networking tool) for the sake of ...
0
votes
0answers
16 views

BTRFS unknown space usage

I have 1 TB hard drive with btrfs on it used for /home. When moving to new ubuntu (with fresh install), I've moved my @home subvolume to @home-old, installed and configured system, copied needed files ...
1
vote
0answers
28 views

How to deal efficiently with “Address already in use”?

If I attempt to run my own Python program which listens on a particular port, I may get: socket.error: [Errno 98] Address already in use If the program didn't terminate gracefully. While this may ...
0
votes
0answers
15 views

Creating Iptables rules for router in front of several servers

I'm trying to create a test environment for some software I've written and I'm running into issues with creating the right iptable rules. I have a router that the rules are being written too, and I ...
0
votes
1answer
12 views

Remote screen session

This is running me crazy: I want to use 4 screen windows (within the same session) in a remote server (GCloud) to process 4 subjects in a parallel way. Long story short: I first create a detached ...
-1
votes
1answer
36 views

Packet loss on linux but NOT in a vm running on the same machine!

Something seems to be very wrong with my network stack right now. Not sure where to start debugging. I have Ubuntu 18.10 running a windows 10 VM with QEMU/KVM. The network is bridged together so both ...
1
vote
0answers
39 views

3 IP on one ethernet that not exist!

when i run "ip -d addr" show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 promiscuity 0 inet 127.0.0.1/8 scope host ...
0
votes
1answer
20 views

could not insert 'ip_tables': Operation not permitted

I used the Ubuntu 16.04 system and had problems configuring iptables. How to solve this problem? modprobe: ERROR: could not insert 'ip_tables': Operation not permitted iptables v1.6.0: can't ...
-2
votes
1answer
22 views

Find package (OS distribution) manager for automation [on hold]

I want to automate some installation process. For that, I need to know whether it is a DEB or RPM distribution, Im able to find some scripts for find the OS distribution. I need to write a script to ...
0
votes
0answers
22 views

Use of Ctrl key on Linux via remote access [on hold]

I'm trying to access a Linux 64-bit computer via remote access from my Windows 10 computer. I'm unable to use the Ctrl key on Linux via remote access connection. I use Bomgar for remote access. It ...
-2
votes
0answers
18 views

Create an image of a filesystem's “available” space

I want to create a disk image which contains the content of all available space on a filesystem. The hope is to be able to recover deleted files from a large filesystem. Is this possible?
2
votes
1answer
39 views

Repair possible file system corruption in virtual Linux guest OS (Virtualbox)

Background My power went out during some rain recently while I was away from home. When I got back the power was still out and when it came back on, my system seems to have suffered some issues. ...
0
votes
0answers
92 views

Weird behavior of su command

Everytime I run su command on this box, I constantly see the weird messages below. Switching user do eventually continue, but why are these messages showing? <Server>:~ # su - -bash: eval: line ...
0
votes
0answers
39 views

Install private git server on Docker container

I have been trying to install a Git server on a debian Docker container on a virtual machine. I followed a few tutorials about doing it on Linux distributions. Everything is fine until I'm trying to ...
0
votes
0answers
10 views

Could I deal with physical network layer via non-root application without writing networkcard driver? [on hold]

Could I get fast access to physical network layer using GAS or GCC made program running from shell? Are there possibilities to do it without own drivers creation?
1
vote
1answer
36 views

How pressing tab twice listing directories and files

I'm wondering how pressing tab twice is resulting in listening all the files and directories in Linux. I'm specifically interested in where this function is defined.
1
vote
2answers
15 views

Set the password for the first build of openwrt

I want to build an openwrt source and set everything up through the menuconfig section But there are no settings to set the password Which part should I change or which section should I add? I am ...
0
votes
0answers
8 views

Install MX Linux on top Xubuntu and dual boot

How to install MX Linux on top Xubuntu and dual boot Windows 10? $ sudo fdisk -l Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 1126399 1124352 549M 7 ...
0
votes
1answer
31 views

GRUB rescue after deleting linux partition in windows dual boot [on hold]

Using HP probook 6470b I was using linux in dual boot and Bios is in legacy mod. Now i delete partition where linux installed and and then when i restart my laptop my laptop stuck at HP logo and ...
0
votes
0answers
23 views

What Hypervisor can Access my GPU on Arch? [on hold]

I am about to get a fairly capable laptop (lots of ram and cpu) which will be running (Arch) Linux and I want to be able to run a Windows virtual machine for the purpose of playing games. For that ...
0
votes
1answer
43 views

How to enable HTTP/3 support in Linux? [on hold]

Are there some stable open-source libraries need to install?
-1
votes
0answers
19 views

SCHED_FIFO and select

I have a multi-threaded app with the SCHED_FIFO scheduling policy. I send/receive commands through a TCP connection (CAN bus soon). Command reception triggers some work. The basic idea was to handle ...
0
votes
1answer
32 views

I would like to resize my /tmp partition but gparted doesn't want to change anything, nowhere

I use my computer with Debian 9 for Java Spark development. Spark is a Big Data API and these kind of works use more temporary space than the 2G that by default the Debian installation sat. marc@...
0
votes
2answers
40 views

Owner of the file not being displayed properly in LINUX Terminal

I want the terminal to display the user name that created a particular file, so when I traverse all the way to that file and type in the command ls -l filename.docx or even ls -la /path/to/file, it ...
1
vote
2answers
31 views

How to ssh to remote in script without having to provide a password

I am executing the following in my script: ssh pi@192.169.1.89 Which asks me for a password pi@192.169.1.89's password: How do I execute the script to create the ssh connection and then pass the ...
0
votes
1answer
35 views

List lines that are the same in the second part but differ on the first part

Suppose that you have a big file with lines of this format: A, B, C, D (each line has 4 parts comma separated). I need a list of all the lines which have common fourth part (D is the same across those ...
0
votes
1answer
14 views

Find which file is providing the proxy settings to a host

A Fedora system shows incorrectly configured proxy settings on boot. I need to figure out which file has those wrong proxy settings. I checked ~/.bashrc and ~/.bash_profile but they don't have those ...
1
vote
1answer
20 views

Prevent file from being modified or deleted even by chattr [duplicate]

Is there a way to prevent anyone from deleting or modifying a file even with chattr. For example: If I use chattr +I on a file. And another root user or the same root user uses chattr -I they'd be ...
0
votes
0answers
17 views

How to apply iptables nat rules on reply packets only?

I know the following about iptables nat chains. PREROUTING chain are applied for packets that have just arrived on an interface. POSTROUTING chain works on those packets leaving an interface. OUTPUT ...
0
votes
0answers
16 views

In what circumstances i cannot create setuid for file and stickybit for dir? [duplicate]

I am running with Linux RHEL 7. I am trying to understand why I am not able to create setuid for file and sticky bit for directory. I am trying to create my own dir with sticky bit and then some ...
1
vote
1answer
24 views

Locate Large Files - Discrepancy between Parent Folder and Child Folder

System: Red Hat Enterprise Linux Server release 7.6 (Maipo), 3.10.0-957.12.1.el7.x86_64 GOAL: Find files that are large in size to see how they can be remediated. Note: Folders with "application" in ...
3
votes
1answer
33 views

Iteratively adding value to column of text file

I have a 3 column text file (XYZ coordinates) and I need to iteratively add constants to the first column while appending to the end of the original file. I have tried several options but this is the ...
1
vote
1answer
34 views

Linux command that continuously outputs string of text

At some point I used a shell command that continuously sent a very short string of text to the standard output, but at this moment I can't recall it's name. Its name was something very short, like '...
0
votes
0answers
26 views

Fedora30 installed on USB pendrive, seems to took control over my BIOS-UEFI

Notebook Ultrabook Samsung NP530U3C this notebook was working just fine, booting normally, and with the UEFI/BIOS (A Phoenix one) with no problems. Every time I wanted to enter the bios setup, I ...
0
votes
0answers
25 views

Repair a corrupted .odp file

I have a corrupted .odp file that cannot open anymore in LibreOffice Impress. There is no back-up available in LibreOffice (.bak file is missing). I was wondering if there are some powerful Linux ...