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
0 answers
10 views

what's root cause of "A start job is running for Create Volatile Files and Directories"

Stuck at "A start job is running for Create Volatile Files and Directories" after reboot a server(Debian 9.5, 64bit), and solve by this "boot-stuck-at-a-start-job-is-running-for-create-...
user avatar
  • 121
0 votes
0 answers
11 views

How to create a new background screen session with "flush" every n seconds in one line

In this tutorial it shows flush time is modified after creating the screen session but i would like to know how to do it in one line. The below command i tried but failed. screen -dm -L logfile flush ...
user avatar
3 votes
0 answers
18 views

How do I undo copying a file that is ended up in cache?

I have copied a large file to USB drive. The file appeared to be copied almost instantly, but copying operation stalled at the very end. /proc/meminfo is showing large, gigabyte Dirty: entry which is ...
user avatar
  • 5,126
0 votes
1 answer
22 views

Guess my laptop doesnt use my nvidia gpu

Well, my pc's hardware is not bad. But it had a lot of damage in the past and its 7 years old. When it started to crash on windows and literally had times frozen more than normal, i thinked its time ...
user avatar
0 votes
1 answer
33 views

Passwordless ssh - the basics

I'm trying to configure passwordless ssh. I've read the basic tutorials on the web but something is bothering me about the basic process. Let's say I'm sitting at a client and want to log into a ...
user avatar
0 votes
1 answer
44 views

where does linux store downloaded files from servers?

I'm trying to download a file from some server through the Ubuntu terminal using the below line code, and after the file is 100% downloaded, I cannot find it anywhere on my machine. scp username@ip:/...
user avatar
  • 11
0 votes
0 answers
32 views

systemd service not enabling

I need your help to enable a service that starts and executes on boot a program that I have made. The program is a command line one and takes parameters through the flags therefore in /etc the service ...
user avatar
  • 1
0 votes
1 answer
16 views

Fedora stuck on running scriplet: systemd-libs

I used the dnf update command and after some time this happened. It's been like this for half an hour. Not only that, but I can't move my mouse, press any buttons, open something else, the computer is ...
user avatar
  • 1
0 votes
1 answer
34 views

linux contextually process stderr only if present

I want to only have a process called if there actually is a STDERR present, but I don't know how to evaluate if one is actually present or not. This code: errtest() { kubectl get namespace -A ...
user avatar
1 vote
1 answer
52 views

redirecting stderr to a function it appears that 2> is non-blocking and I need it to be

Note I'm including the functions for context of what's happening. The ibmcloud CLI is not itself relevant, it just has a prompt which is the problem. I'm using zsh. I have the following functions: ...
user avatar
0 votes
0 answers
20 views

sftp to webserver behind proxy [duplicate]

I host a couple of websites on a webserver Centos 7 that is behind an ubuntu 20.04 proxy server (apache for http), as depicted in the figure below. Up until now there was no need to have sftp access ...
user avatar
1 vote
0 answers
13 views

Enabling Vulkan in Xplane 11/Steam

So I have two graphic cards, Intel and Nvidia. Xplane also has two versions, OpenGL Vulkan In steam, when I set __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia %command% I can run ...
user avatar
  • 111
0 votes
1 answer
24 views

Is my server using Legacy BIOS or UEFI?

I am little confused about something. I have a server on Digital Ocean, I want to know either BIOS or UEFI used for system startup. I have tried following things: root@debian:~$ dmidecode -t 0 # ...
user avatar
-1 votes
2 answers
37 views

Best way to run child process in C++ if you want to get output of the called command

I am writing an application in C++. In many places in my code I use system() function to run some commands. I am not sure this is an elegant solution and I would like to replace using this function by ...
user avatar
1 vote
0 answers
25 views

hostapd disables and enables interface

My hostapd, after some minutes of execution, it does this: wlan1: INTERFACE-DISABLED wlan1: INTERFACE-ENABLED then, connected clients lose connection and, if i try reconnecting, it wont't connect ...
user avatar
0 votes
0 answers
15 views

Connection Timeout on mounting nfs via azure blob storage

So I am following this document on Mount Blob Storage with NFS and I am having an issue mounting my storage and container. This is the document I am following https://docs.microsoft.com/en-us/azure/...
user avatar
1 vote
0 answers
8 views

softlinks on a shared mount mean different things

Two centos servers having a drive mount shared between them. If there is a softlink inside of that shared mount, pointing to any other location outside the mount, the mount is normally resolved ...
user avatar
0 votes
1 answer
40 views

Automatically restart a process after it exits

I have a javascript program, which runs on nodejs. If I run the following command: node app.js It keeps running but sometimes it exits. But I want to start it again automatically when it exits. Is ...
user avatar
  • 129
0 votes
0 answers
18 views

creating a lot of virtual ethernet devices using ip link add fails

I am trying to create a more than 100 ethernet virtual devices for a simulation. I am working with a virtual machine (x86 using qemu) and using a python script to achieve my goal. When creating the ...
user avatar
0 votes
2 answers
62 views

Copy specific Column from multiple csv file and write it to new csv file. Shell Scripting

I have multiple CSV files from these I want to extract 3rd column and write it new file, in the same manner, the file is sequenced in a folder. Append should be in such a manner that all the columns ...
user avatar
  • 19
1 vote
0 answers
68 views

Issue with Yum update Redhat Linux Amazon EC2

In my scenario , for some reason yum has stopped working in my Amazon EC2 instance, located in the us east -1 region. There seems to be something wrong with the path of the repo metadata, is this ...
user avatar
-2 votes
2 answers
87 views

How does this sed command to extract an IPv6 address work?

I was given a command to extract an IPv6 address: /usr/bin/ip a | grep inet6 | grep -vE 'fe80|host' | sed -e 's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d' Could someone please break down the sed substitution ...
user avatar
  • 9
1 vote
0 answers
102 views

F key doesn’t work in the tty

My “f” key doesn’t work in the tty. I already tried most of my other keys on the keyboard and all of them work fine, even symbols like Ü Ä Ö. The “f” works completely fine on the login screen and on ...
user avatar
0 votes
0 answers
12 views

MPI jobs are not scaling to all nodes

We are seeing strange issue in our SGE gpu queue as we have plenty of nodes available in gpu queue but whenever we launch MPI parallel jobs they always going to one set of nodes only in our case it ...
user avatar
0 votes
0 answers
30 views

Is there any way to achieve prioritized IO operations in Linux 5.xx?

I run a lot of long-lived and io-heavy processes in addition to interactive processes on my machine. Unfortunately, they slow the interactive operations down to a crawl despite my best efforts. I ...
user avatar
  • 219
0 votes
1 answer
11 views

How to find the unique access log IPs

I need to get all the IPs which accessed my server today only. From below command I could get all the IPs ,but I need to get the IPs of today only.. sudo awk '{ print $1}' /etc/httpd/logs/access_log | ...
user avatar
  • 41
0 votes
2 answers
30 views

grep results with spaces and special chars

I am trying to grab results from lshw and add them to a a bash array so I can create a new string. I am using lshw -class disk |egrep -A 7 .'-d' |grep 'product' |cut -b 17- the output looks like this ...
user avatar
  • 1
0 votes
1 answer
34 views

How to add user to have super user permission

I am using OpenSuse linux 12.3 version & i have created new user called jenkinsadmin. with this account i am unable to create a folder/file inside /usr, /opt, /var locations . To enable sudo ...
user avatar
  • 1
0 votes
2 answers
35 views

Unix Time Format with decimals

According to my understanding, Unix time format is the no of seconds calculated from 1970 00:00:00. For ex, if our current time is 1970 00:01:00, then unix time will be 60 (60 seconds has elapsed from ...
user avatar
  • 3
0 votes
2 answers
64 views

Understanding functions (Bash)

I see the below function used in a bash script: LOG_FILE="/root/collect.log";\ date_info() { local cmd; cmd=$(basename $0) echo "$(date --rfc-3339=seconds) $cmd.info: $*&...
user avatar
  • 1
0 votes
0 answers
23 views

Badblocks -b 4096 finds errors, but badblocks -b 512 and smartctl don't

I got a new external HDD (WD Elements Portable 1TB) and wanted to test it with badblocks. I always used badblocks -wsv -b XXX /dev/sdc First thing I did was trying to find out the blocksize, so I ...
user avatar
  • 1
0 votes
0 answers
10 views

Linux suspend device/driver issue

I have an embedded device with Linux 4.14. My question/issue is a general one while resuming the system from suspend to ram and relates to the /sys FS and the device nodes which are present in device ...
user avatar
0 votes
1 answer
17 views

Mount ONLY specific extensions using --bind option? Or alternatives... (Idk if is this possible... )

I have a folder in a partition with lots of files - PDFs, texts, logs, etc. The folder is /mnt/main_files I'm wondering if is it possible to map only the PDF files and direct them to /var/www/html/...
user avatar
0 votes
1 answer
43 views

force stty -echo for all ssh users

I would like to disable TTY echoing for all users that are connecting via SSH. The Linux command stty -echo does the trick, however instead of users having to execute this command on their TTY I would ...
user avatar
0 votes
0 answers
36 views

Linux bridge, trunk and PVID

Following up my other question I'd like to clarify the following: To configure the bridge interface rather than one of its port, the additional keyword self is needed. The routing stack (at layer 3) ...
user avatar
  • 1,409
2 votes
1 answer
27 views

What is meant by "OS resolver libraries" that are used by the "dig" command?

I know that dig queries the DNS server in the /etc/resolv.conf but I read that the difference between dig and nslookup is that dig uses OS resolver libraries. But what are the OS resolver libraries?
user avatar
0 votes
1 answer
44 views

How to set environment variables in Linux which takes effect immediately and for everything?

I want a way to set environment variables in Linux which takes effect immediately and on everything. For example, I set up proxy: export http_proxy=127.0.0.1:42949 That takes effect immediately. But ...
user avatar
0 votes
0 answers
31 views

Program cannot acquire the capabilities it needs (raw sockets)

Note: This is partly a programming question, but my gut feeling is that this has more to do with the Linux' security capabilities framework in general, hence posting here instead of StackOverflow. I ...
user avatar
  • 101
-2 votes
1 answer
54 views

Where and how is the scheduler running? Can I "see" it? [duplicate]

The scheduler is not a thread but it's a kernel function, so there's no way to actually "see" what the scheduler is doing (I assume). These particular kernel parts are kind of invisible from ...
user avatar
  • 211
0 votes
0 answers
35 views

script ping and traceroute

Creation of a script allowing to record the traces (log) of the ping and traceroute according to a list resulting from a flat file listing the various sites of Reunion and Mayotte. For the need, it is ...
user avatar
0 votes
0 answers
87 views

Routing problem shows this Error: Nexthop has invalid gateway

I am trying to route some traffic over a VPN (to certain IPs) and other via my normal connection. To do this I am trying to add a static route to make traffic to some IPs bypass the VPN tunnel. Very ...
user avatar
  • 151
1 vote
0 answers
28 views

/aliases: Reference to non-existent node or label "mmc0"

I'm trying to upstream support for u-boot and buildroot for a SoC, I'm merging some changes into master from the vendor's BSP and am having some issues with their dts. [machinehum@whitebox u-boot]$ ...
user avatar
0 votes
0 answers
13 views

Mariner Linux install override password requirements

When installing Mariner Linux, it refuses to proceed due to the password not being strong enough. This is for a local VM, and password strength doesn't matter. In fact making it different from other ...
user avatar
  • 628
1 vote
1 answer
65 views

Linux: difference between "/usr/bin/env" and "/usr/bin/strings /proc/$$/environ"

I am learning about linux and I have a question that I have encountered in one of the books I read: The following are two different ways to print out environment variables. Please describe their ...
user avatar
1 vote
1 answer
59 views

What happens when the sort command is provided with with key range in descending order?

I am trying to understand something about the "sort" command and I am struggling. I would appreciate some help here. I do have a file called "my_file.csv" with the following ...
user avatar
1 vote
1 answer
27 views

How to pass date variable in SFTP data path?

I need to create a path with a variable value which contains yesterday date. I need to get files using SFTP. Here is my try. #/bin/bash TS=$(date -d '30 mins ago' +"%Y%m%d") sshpass -p '12#...
user avatar
  • 41
-1 votes
2 answers
54 views

How rename files in two subdirectories which have the same name?

I have two subdirectories, s1 and s2, and each has files named file_1 and file_2 in them. How do I change the names of these files into, let's say, s1_file1, s1_file2, and s2_file1, s2_file2, such ...
user avatar
0 votes
1 answer
34 views

A script /etc/profile.d/{script1}.sh doesn't work correctly

cat /etc/profile.d/atlassian-plugin-sdk.sh export PATH=$PATH:/opt/atlassian/plugin-sdk/bin ls -al /etc/profile.d/atlassian-plugin-sdk.sh -rwxr-xr-x 1 root root 48 Apr 17 21:36 /etc/profile.d/...
user avatar
0 votes
1 answer
20 views

LVM installation on existent Debian9 system

I am not very experienced with Linux, and I have to put myself up to date about the below. We have several old Debian9 systems migrated to Azure. I see no LVM installed on the system, but there is a ...
user avatar
0 votes
0 answers
18 views

How to get path of hardware RAID array in lsblk?

I detect list of hardware arrays by next command: lspci -vmm | sed -E -n '/RAID bus|SCSI controller/,/^ *$/p' | tr -d '\t' Example: Class:RAID bus controller Vendor:Broadcom / LSI Device:MegaRAID SAS ...
user avatar

1
3 4
5
6 7
699