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
votes
1answer
22 views

problem when generating backup of the root folder with rsync

I have almost an entire day trying to create a mirror backup of the root folder of my ubuntu linux. Install the rsync and create a script with the following content: #!bin/bash rsync -rtvpl / /home/...
0
votes
0answers
20 views

Usage details of ahostsv4 in linux

There is a term called ahostsv4 in the Linux documentation of man getent. What is the usage of it?
0
votes
0answers
10 views

Install Services and applications (Wordpress, Vtiger CRM) [on hold]

I need to install some applications like Mailtrain , WordPress and Vtiger CRM. I want to know : What are all the services needed (apache ...)? I want to use MySQL , Can all applications use the ...
-1
votes
0answers
67 views

Linux malware that tries to connect to random IPs [on hold]

My wife's laptop, with MX17 linux, tries from time to time since a few months to connect to apparently random 192.168.1.* IPs; at least that's what my home router warns me about (message from the ...
-3
votes
0answers
42 views

How to become a self-taught professional? [closed]

i need to kick start a carrier as a software developer. so what are my options and what are some demanding and trending languages .. (im also little bit familiar wit java and c++ .sort of you know .....
1
vote
2answers
68 views

find a pair of words that appear the most of the times together

I have 10 text files, in each file i have a chapter from a book, i want to find the pair of words that appear the most of the time together in a line i.e: chapter1: hello world good boy green sun ...
0
votes
2answers
21 views

How to page up and down in the Ctrl + Alt + F3 virtual terminal window? [duplicate]

I'm using Ubuntu 18.04 LTS. Every now and then, I like to escape the noise of windows by pressing Ctrl + Alt + F3 where I login using to one of the ready to use terminal windows. If I cat a file and ...
1
vote
0answers
13 views

How to view ICMP Redirect Logs

I have read on multiple sources that there is are logs for rejected ICMP redirect messages, one of them being "Understanding Linux Network Internals: Guided Tour to Networking on Linux" By Christian ...
-1
votes
0answers
18 views

How do I convert the following script to recursively search for .ts files and only change the permissions and move them when the file is not in use

!/bin/bash unlock and move video sudo chown 777 -R /mnt/usbdrive sudo chmod 777 -R /mnt/usbdrive find . -mindepth 2 -type f -name '*.ts' -exec mv -t /mnt/usbdrive {} + I attempted to use fuser ...
0
votes
1answer
13 views

Copying files from Bootable USB to local Drive in %post script of kickstart

I have created bootable USB with custom folder in it, After installation i want to copy files from USB to local directory, Following is kickstart file %post section %post --nochroot --erroronfail --...
0
votes
0answers
33 views

How to use the bash shell with Python's in place of /bin/sh

I have commands to execute in the terminal but I want to execute them directly from my python script except that my script it launches the commands on /bin /sh and my terminal on bash: just an ...
0
votes
0answers
18 views

Grub menu booting issue

I tried reinstalling Ubuntu on my laptop. After doing so it messed up the boot loader and brought me to this black screen (I think it’s the grub boot menu). I have to manually type in the commands ...
0
votes
1answer
40 views

Openssh Questions

I was reading about OpenSSH and I have the following questions: What is the difference between ssh and slogin? What is the difference between scp and sftp? Does sshd (on server side) provide separate ...
2
votes
0answers
19 views

Oracle VirtualBox on Linux host with Windows guest running terribly slow

I recently got myself a new, more powerful workstation. With Linux Mint (now in version 19.1) as my main system and some programs (that my business depends on) only running on Windows, I also ...
3
votes
0answers
11 views

How to disable suspension in Linux Kernel 4.x

I am using full disk encryption, through LinuxPBA and sedutil (https://github.com/Drive-Trust-Alliance/sedutil). In short, at boot, a BIOS-independent piece of code requests the disk passphrase. If ...
1
vote
1answer
17 views

Block MAC for a port iptables

I'm trying to block a MAC address for a specific port. iptables -I FORWARD -p tcp -m mac --mac-source 40:00:00:74:0A:00 --destination-port 80,443 -j DROP
0
votes
1answer
23 views

How to automate a series of keystrokes involving two GUI applications

I have two windowed applications that I need to send a series of keystrokes to. I need to Alt-Tab back and forth between the apps, and I'd like to be able to reduce the number of keystrokes from six ...
0
votes
1answer
39 views

Issue with correct syntax of /etc/fstab

The next command works: sudo mount -t nfs4 10.10.1.10:/Data /mnt/data How do I reformat this to /etc/fstab to add in? I can't get it mounting on boot.
0
votes
1answer
78 views

Rename filename from weird character [duplicate]

While editing I saved a file as file.p;l instead of file.pl. Now when I try to rename it this happens: $ mv file.p;l /home/mc/file.pl mv: missing destination file operand after 'file.p' Try 'mv --...
2
votes
1answer
55 views

Run multiple commands after pipe

I am piping streamer ouput to mpv player which works fine. streamer -o - | mpv - But before starting mpv , I want to kill one program and then pipe to mpv. streamer program takes some time to ...
1
vote
1answer
22 views

cp multiple files do not work in bash script

I would like to run the below command in a bash script but, it doesn't work. command: cp /tmp/first/{abc.conf,xyz.conf} /tmp/backup/ bash script: firstDir=/tmp/first #secondDir=/tmp/second ...
-2
votes
2answers
28 views

Script to take arguments, sum numbers

I'm trying to complete a script that will take 3 numbers from the command line and sum them, then display the output as "1 + 2 + 3 = 6". Here's the code I have: clear echo for count do echo -n "$...
-1
votes
1answer
18 views

Installing applications to a different drive having more space, other than the one containing the home directory for ubuntu 18.04.2

I have a 128GB SSD and a 1TB HDD. Now I have installed Ubuntu 18.04.2 in my SSD. The problem is as the SSD does not have much space and I deal with a lot of huge applications, it is impossible to ...
1
vote
1answer
37 views

Unable to find regular file with default shell as bash but works when it's ksh

We have script file FileChecker.sh where it checks whether file exists or not FileChecker.sh content: #!/bin/ksh FILE=$1 FILE2=$2 if [[ "$FILE" == "" || "$FILE2" == "" ]] ; then echo "[ERROR] ...
-1
votes
0answers
14 views

Apache - Many virtual subservers or one subserver and htaccess subdomains

I have small VPS with one core and 1GB of RAM and I am hosting few websites. Half of them is PHP and second half is Node.JS. It is little bit slow last few weeks and I am trying to find out why. My ...
0
votes
0answers
41 views

How to tune Linux machine in order to improve CPU load average and CPU utilization

We are working with a huge Hadoop cluster. We have 736 datanode machines and each node has 16 cores × 2 threads. On some machines we saw CPU load average (98-128 for 5 min). After deep ...
0
votes
1answer
43 views

Does changing Linux username give any problems?

I've installed Linux Mint on my old laptop. I created a username with the temporary use in mind so it is not that good name and I want to change it. I know how to change username and rename the ...
0
votes
1answer
37 views

Debian freezes after some time

I have Debian Server, which apparently freezes after some time. When this happens the only way is to hard shutdown it by long pressing the power button. I don't know where to look for the reason of ...
1
vote
1answer
34 views

Git init in wrong directory? How to recover? (theoretical situation)

This is completely theoretical, but I'm new to Git and Linux so I want to know. If I accidentally manage to do git init inside e.g Desktop or Home directory, how to prevent any possible disaster from ...
0
votes
1answer
16 views

UFW Syntax to find and delete ONE rule among 4279 UFW REJECT IN rules

I've setup Fail2Ban to use UFW actions to permanently ban IPs after 1 failed attempt. What seemed like a good idea are now causing me problems as I need to remove one IP among all those ufw rules. ...
1
vote
0answers
20 views

Is there a power manager for text consoles?

I use XFCE on my laptops. When I'm working inside X11, xfce4-power-manager works well, and the system goes to sleep after 15 minutes of inactivity. But when I switch to a Linux text VT (i.e. by ...
0
votes
4answers
59 views

How to extract the CSV file name from each line of this file

I have a file which contains lines like those: -rw-rw-rw 1 root root 6379 May 24 2016 test1.CSV -rw-rw-rw 1 root root 23249 May 25 2016 test2.CSV -rw-rw-rw 1 root root 2995 May 26 2016 test3.CSV ...
1
vote
0answers
27 views

Create own ovpn file from using certificate and key

I installed OpenVPN on a RPi server. For sample certificates I used the command pivpn -a, as suggested by OpenVPN. But now I want to create my own certificates because I need to insert on them an ...
0
votes
1answer
25 views

For loop to refer a file, search for matches on the first column and print the matching rows

I have two files: File 1 an input file with 191 lines in only a column. File 2 is a master file with 712 lines in 2 columns. Output = find the match between Input_File and the first column of ...
0
votes
1answer
13 views

No IP4 connectivity over bond; slaves listed as “routable” instead of “enslaved”

Bond settings: root@gentooserver /etc/systemd/network # tail -n +1 * ==> bond1.netdev <== [NetDev] Name=bond1 Kind=bond [Bond] Mode=802.3ad MIIMonitorSec=1s LACPTransmitRate=fast ...
0
votes
0answers
40 views

OVH Arch Linux Locale Cannot Set LC_CTYPE & LC_ALL cannot change locale & NextCloud set locale failed

After booting into the recovery system and backing up the files, the locale for my NextCloud broke. It says "Setting locale to en_US.UTF-8/fr_FR.UTF-8/es_ES.UTF-8/de_DE.UTF-8/ru_RU.UTF-8/pt_BR.UTF-8/...
1
vote
1answer
26 views

stop force save on a file with read only permission

I have a script file that is currently in sudoers, and for security I want this file to be read only... so I issued the following chmod: chmod 555 test.sh Now the permissions on this file are -r-xr-...
1
vote
0answers
21 views

How do I vsync in bash (or the Linux framebuffer)?

I was trying to see how fast I could fill/swap on /dev/fb0 with something to the effect of: while :; do head -c $SIZE /dev/erg > /dev/fb0; head -c $SIZE /dev/zero > /dev/fb0; done (Where /dev/...
2
votes
0answers
31 views

ssh to the same user but work isolate from each other

I want to set my ubuntu server that everyone can ssh with the same user and at the same time. But they will work isolate from each other. e.g. If someone create a file at their home directory, other ...
-1
votes
1answer
18 views

Virtual Box, Vagrant, Docker - vmdk ssh damaged?

CentOS 7 host o/s, guest o/s. VirtualBox-6.0-6.0.4_128413_el7-1.x86_64 Virtualbox Guest Additions 6.0.4 Host kernel 3.10.0-957.1.3.el7.x86_64 Guest kernel 3.10.0-957.10.1.el7.x86_64 Guest file ...
-1
votes
0answers
30 views

add prefix to the recursively expanded variable in shell

I have : COMP_FILE+=docker-compose.con-etl.yml COMP_FILE+=${USE_DIRECTORY}/docker-compose.abc.yml COMP_FILE+=${USE_DIRECTORY}/docker-compose.cde.yml COMP_FILE+=${USE_DIRECTORY}/docker-compose.efg.yml ...
2
votes
1answer
43 views

How to have memory/cpu limits only for forked children and not for the parent process?

Is there a way to have limits for (let's say) apache2, that limits each forked child worker process to use max X memory, and not the entire process tree (apache2 and all of its forked children) to max ...
1
vote
1answer
32 views

XFS, GlusterFS v5.5 and the Year-2038 problem

I tried out default retention periods e.g. to set the Retention date to 2071. When I did the WORMing, everything seems to be OK. From FUSE and also at Brick-Level, the retention was set to 2071 on all ...
-1
votes
0answers
22 views

How to setup USB-Stick for booting from Hard-drive installation

I have a laptop with a busted screen, which I'd like to use with an external screen. It'll boot fine from USB, but after having tried to install two GNU/Linux variants (Ubuntu and Devuan), it won't ...
0
votes
0answers
15 views

ebtable rule to disable packet(other than BPDU) flood/forward on bridge device

The configuration has one bridge device and two ports attached to it. The requirement is to disable flooding or forwarding of any packet from bridge device to other associated ports. How to achieve ...
2
votes
0answers
52 views

overall HIGH CPU utilization, but top is not showing process which is contributing to that spike

Below is the output of a top command, which is showing "57.6%us, 24.0%sy" overall cpu utilization at a particular moment, but there is no process which is contributing to this spike of cpu usage. ...
-3
votes
2answers
55 views

Combining two text files [closed]

I want to combine two text file in a certain fashion as shown below using Linux terminal: Rule is that I add two files such that every line of file 2 comes alternatively except for 6 under which no ...
1
vote
0answers
16 views

Change format of syscall event trace output to ftrace

I enabled ftrace event tracing for sys_enter_openat syscall. The respective output format given at events/syscalls/sys_enter_openat/format is print fmt: "dfd: 0x%08lx, filename: 0x%08lx, flags: 0x%...
0
votes
1answer
44 views

Notify when file read [duplicate]

How can I register to event that let me know when specific file is read in linux? Can implement in c or in bash /shell script
0
votes
0answers
23 views

how to find out which llinux I'm using AI [closed]

I'm stuck at the firs line for three weeks now' what is the first line asking for (what is the meaning of this (1stdonwill5@penguin:~$)?