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.

learn more… | top users | synonyms

3
votes
0answers
27 views

Why does the OOM-killer not log details to be visible through dmesg?

I want to make kernel oom_killer run and provide the related log entries in dmesg. I set the following settings echo 1 > /proc/sys/vm/overcommit_memory and tried to fill up the RAM to it's max, ...
1
vote
0answers
29 views

How to test new user login?

I've done some searching on Google and SE and have not found what I need using my search terms. Accessing RHEL 5.10 (Tikanga) from Windows 7. I am making a new user and need to make sure their ...
1
vote
1answer
41 views

List *all* IP routes to a destination in the Linux routing table

ip route get 2607:f8b0:4005:804::200e will show me the best (longest prefix) route to google.com, but it does not show all routes that can take me there. Right now I am using ip -6 route show | grep ...
0
votes
0answers
23 views

checking inline argument [closed]

I am passing some parameter as inline argument. on deploying as chunk of code it is working but after inscribing it inside a function and then calling it from main section then it is not taking inline ...
2
votes
1answer
28 views

Can I tell whether a block device is in use?

Let's assume this is based on device-mapper. How can I tell if a given block device is already in use? (For example, a PV of a currently in use VG, or a encrypted LUKS device that is currently ...
0
votes
3answers
30 views

how can I supply negative value to nice() and run without error even if I am not the superuser

how can I supply negative value to nice() and run without error even if I am not the superuser can I do system("su"); nice(-1); it is asking for password which I do not want?
0
votes
1answer
30 views

Processor affinity not respected by iperf threads

I'm running iperf in server mode on a Ubuntu box (14.04 LTS). The hardware is quad core with hyper-threading, so I have cores 0-7 available (0 is paired with 4, 1 with 5 and so on). I've set the ...
0
votes
1answer
31 views

How to run a perl script inside another perl script

I have two Perl scripts and want to use one script from another. The scripts are called script1.pl and script2.pl. I want to run the below command inside script1.pl : /home/user/script2.pl /var/log/...
0
votes
0answers
42 views

Cannot boot; “failure reading sector 0x802 on hd0”

I recently installed Peppermint 7 on my pc. Everything was working as it should. I've been using it now for over a month. I turned it on today to find that it couldn't boot. It says "failure reading ...
0
votes
0answers
32 views

Is there a more efficient way of defragmenting Linux memory other than rebooting?

I am running Gentoo Linux with kernel 4.4.8-hardened-r1, QEMU-KVM version 2.5.1 and 3227 MB of system-visible RAM (without considering RAM taken by BIOS and my AMD APU's graphics). I have a VM that ...
0
votes
0answers
23 views

ssh: permission denied (publickey) after restoring to a backup that was known to work at the time of backup [duplicate]

So I have a few servers set up behind a bastion. I usually hop from bastion -> server A -> server B using agent forwarding. One day I try to log into server B and for no reason apparent to me I gives ...
0
votes
0answers
42 views

Program execution in Linux [closed]

I would like to know what sequence of events are followed when a program (Say a C code image) is executed in Linux based OS. The memory map of the executable image of program is made using structure ...
0
votes
1answer
32 views

Installing custom packages on Linux

I am currently using Kali, sometimes clean Debian, and sometimes I want to install a package, which is not on my sources list. And you can't find those, and add to sources file. I mean f.e I download ...
0
votes
0answers
14 views

device-mapper: table: 253:3: snapshot: Failed to read snapshot metadata

I used Clonezilla to restore a Linux system. After the system restore finished, the system failed to boot, showing the following error message: Reading all physical volumes. This may take a while... ...
-1
votes
2answers
54 views

Running a program after system startup directly from the linux kernel

I am trying to run my application directly from the linux kernel (without using cron or something similar). I've tried using ./init/init.c, but it runs too early: $ dmesg ... [ 0.605657] TEST!!! ...
3
votes
0answers
60 views

Performance Optimization

I have one script which roughly has to read 1.5 million lines and process the lines and print out output in cvs file. This script is current taking more than 8-9 hours to process 250 thousands lines. ...
0
votes
1answer
41 views

After installing Manjaro, windows is not showing in boot menu

I was dual booting windows 10 and Linux Mint 17.3 Mate. Everythig was fine, I was able to dual boot. Last night I decided to install Manjaro Linux and I did so. After installing Manjaro, all I get in ...
0
votes
1answer
31 views

Delete Photos from My Pics Directory

I have photos uploaded that need to be deleted. These photos all have names. I have entered the following language to begin the process of removing the photos. vs2:/u/p/jjones % cd www.thetether.com/...
1
vote
1answer
28 views

Cannot save changes made in gnome-settings

I have a fresh install of fedora 24. I have some issues with not being able to change anything in Gnome. Ex: I go to All Settings -> Power and want to set the time to go to blank screen to: Never. ...
4
votes
1answer
21 views

Get block device parent

Given a block device, how can I get its "parent"? A example would be a LUKS virtual decrypted device (/dev/mapper/decrypted), whose parent would be the encrypted block device (/dev/sdb)
0
votes
2answers
28 views

Is there a way to split a usb thumb drive into 3 partition with different live distros

I've a small laptop with eMMc 32gb, and I want to keep it w/ windows installed. I've also 64gb USB 3.0 thumb drive, and is it possible to, split that into 3 partition with different Linux distros ...
1
vote
1answer
44 views

SCP through multiple hosts

The question describes how to SSH into a machine that can only be accessed through one or more hosts (that can also be SSH'd into). Is there an equivalent way of using scp? That is, copy a file to my ...
0
votes
0answers
33 views

unable to login into Windows 10 and also my Linux

i tried to login into one of the OS but failed.it stays at the login screen and doesn't notify any error(its like continuous loop...enter the password but comes back to login prompt).this is happening ...
0
votes
1answer
19 views

How to interpret VFS usage chart

I'm monitoring an old laptop running as LAMP server. I have trouble understanding this VFS usage chart (sorry can't include images yet) from monitorix (the monitoring tool I'm using). I don't ...
0
votes
0answers
30 views

How To Create Soft Links To An Entire Directory Structure Which Has Sub-Directories, Files Etc! [duplicate]

I'd like to: Create a soft link for a directory or file. But have a scenario where I need to create soft links, to a directory which has multiple sub-directories, files etc. I wanted to loop across ...
0
votes
2answers
33 views

How to delete files in directory

I have to delete one particular file in each directory. Can you help me with any shell script to do? Example: MKRUW, DKRUW, TKRUW In each of these directories I need to enter MKRUW/default/file and ...
1
vote
0answers
33 views

enabling ECMP in linux

if i want to use ECMP (Equal Cost Multi Path) in a linux machine acting as a router, is it sufficient to have just multiple next-hop addresses in the routing table for the same destination with equal ...
1
vote
2answers
74 views

Timestamp not getting updated

I've written a piece of code but time stamp is not getting updated. It displays the time when the script runs and keep on displaying the same time even when loop is running and time is getting changed....
1
vote
0answers
20 views

Can we specify percentage value for RuntimeMaxUse attribute in journald.conf

From man page of Journald.conf I came to know that, by default Journal use 10% of file system size for storing journal files. I have configured below values in journald.conf. RuntimeMaxUse=10 #...
0
votes
0answers
19 views

udev rule not executing the script specified in RUN

I have the following in /etc/udev/rules.d/40-swallowpv.rules: ACTION=="add", KERNEL=="sd[a-z]+", RUN="/var/tmp/swallowpv sdc" (I've also tried with RUN+= to the same effect). The first thing the ...
-3
votes
2answers
50 views

Bash scripting using #1 & #2 params but if files not found reverting to read from user [closed]

So if my user types in bash copy.sh copysource.txt copydest.txt - and the files are valid I want copysource to append to copydest and then show the file via cat -if the files names are NOT correct or ...
3
votes
1answer
58 views

tried creating duplicate root user, can't connect to server anymore

I'm new to Linux so keep that in mind when offering advice. I became over zealous and ran the command here: http://www.shellhacks.com/en/HowTo-Create-USER-with-ROOT-Privileges-in-Linux useradd -ou ...
1
vote
1answer
39 views

Bcm43142 driver wifi open-suse

i have a problem with my wifi that isn't working on opensuse tumbleweed, when i open the NetworkManager, i see only ethenet interface : 0d:00.0 Network controller: Broadcom Corporation BCM43142 802....
0
votes
1answer
42 views

storage performance test [closed]

So we have some operational Red-hat Linux on physical servers and company are we decided to migrate them to VM's. I wonder if they have same performance on writing and reading from disks. they are ...
0
votes
2answers
427 views

Could not find rake-11.2.2 in any of the sources Run bundle install to install missing gems

I'm using Kali Linux and after I done apt-get dist-upgrade I keep receiving this ''Could not find rake-11.2.2 in any of the sources Run bundle install to install missing gems. '' When I do ''bundle ...
-2
votes
4answers
70 views

Transforming letters in columns into numbers

I want to transform the letters in two columns into numbers. In the following example I want to change the letters in column 2 and 3 for numbers, so that A is changed to 1, B into 2, C into 3 and G ...
1
vote
2answers
40 views

Increase swap space in linux through terminal

While installing Oracle DB in linux machine, I face a problem like swap space is not sufficient. How can I increase the swap space?
1
vote
1answer
75 views

Limit a directory to have only 1 file?

Is there a way to restrict a directory to have only 1 file? I created a specific directory for a user and I would like to limit that directory to have only 1 file. If that user wants to store new ...
2
votes
1answer
48 views

how to append words of two files word by word [duplicate]

sorry for my newbie question. I have two files with the same number of words and column fields in each line. I want to append these two files word by word. For example: File 1: A1 B1 C1 D1 E1 B1 C1 ...
0
votes
1answer
25 views

What is Alternative of initlog (present in RHEL5) but deprecated in RHEL6?

I am using initlog tool in a cron file to write the output of ntpq -p command in syslog.. But initlog command has been deprecated in RHEL6. Now, I want know the alternative of initlog command in ...
0
votes
1answer
39 views

How to boot to and run Linux from Chromebook with removed SSD?

I have an Acer C740 Chromebook. I am not sure if this is a hardware or a software issue, but the Chromebook refuses to boot properly. The display powers on, but remains blank white with only the ...
0
votes
0answers
16 views

Set GRUB `elevator=deadline` scheduling to a single device

I'd like to set my secondary drive to deadline. Is it possible to do it via GRUB, but leaving the primary drive as cfq? A script after booting would suffice in my case, but I'm interested in the GRUB ...
0
votes
0answers
21 views

ffmpeg-php is showing in phpinfo but not working

Php info result ffmpeg-php version 0.7.0 ffmpeg-php built on Jul 13 2016 22:27:57 ffmpeg-php gd support enabled ffmpeg libavcodec version Lavc57.50.100 ffmpeg libavcodec license nonfree and ...
0
votes
0answers
25 views

eth0 not present in OpenFiler on Hyper-V

I have installed OpenFiler storage sollution (based on rPath Linux) on Hyper-V VM and after booting into it message displays: You do not appear to have networking. Please login to start ...
0
votes
1answer
35 views

When arch linux boots on my mac, I can execute commands, but the screen is completely black

I have tried to boot both ubuntu and arch on my iMac (21.5-inch, Mid 2010). Both seem to boot, for example ubuntu makes its little bongo noise, and I can type zsh commands when arch boots. But the ...
0
votes
0answers
20 views

Set variables into script before or after SCP [duplicate]

I have two scripts out and disk_check.sh. The main script is the out which exports multiple variables but I need two variables set in disk_check.sh which are: VOL and VM_VOLUME. So my out script ...
3
votes
2answers
65 views

How do I download a file from a host i'm already connected to over ssh [duplicate]

I'm trying to download a file from a linux server i'm already connected to. I know you can use scp to connect to and pull down a file from a host, but that requires still being on local. I could scp ...
2
votes
1answer
26 views

UDEV Rules Interfere

I am working on Raspian OS (Linux) for Raspberry Pi 3. I am trying to do a simple task say when I connect any USB to the port it should copy the data from a particular location to the USB and clear ...
0
votes
0answers
26 views

Forcing current user to switch account without root privilege

Is there a way (inside a shell script) to force the current user to switch account (or re-login) without super user privileges ? The user shouldn't be able to cancel it. EDIT: What I'm looking for ...
1
vote
3answers
64 views

Is there a Linux utility to halt all user processes, including a VM?

I know of the killall5, system V kill command. Is there something similar where I can send a SIGSTOP to all user processes, a Host OS and guest OS included? Possibly killall -SIGSTOP??