Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

4
votes
3answers
56 views

mkdir permissions do not correspond to umask (change depending on location)

Whenever I create new directories in my home (or its subdirectories) they do not have write permission, even though umask is set correctly. Files I make DO have write permission. [mmanary@seqap33 ~]$ ...
2
votes
2answers
31 views

Is there any Syscall table just like Interrupt Table?

Are the system calls like fork(), exit() saved in some kind of function pointer table , just like the Interrupt Descriptor Table ? where does my OS go when I call my fork() or exit() ? I guess this ...
6
votes
1answer
66 views

Is it possible to enlarge the / partition without rebooting?

I can enlarge the root (/) partition with fdisk without rebooting (deleting an recreating it with the same 1st sector, but greater last sector). However, I cannot make the kernel to re-read the ...
2
votes
2answers
72 views

How to batch resize all images in a folder (including subfolders)?

I have huge, 12GB, gallery on the server, full of images in various subfolders. Those files are too big and not used in full resolution. I need to resize all the images down to 820px wide (keeping ...
0
votes
0answers
14 views

ubuntu 14.04, error regarding package file read issue

E: Malformed line 58 in source list /etc/apt/sources.list (dist parse) E: The list of sources could not be read. I am getting this error every time I am trying to run the update command.
0
votes
0answers
7 views

installing r8168 driver in centos 4.8

I have installed cent os 4.8 and I am not able to connect to internet from that system. After searching on the net I found that the system has r8169 driver instead of r8168. Now I am trying to ...
0
votes
1answer
36 views

how to write a shell script to run multiple programs

I want to run two programs ssh -f mike@c15-0330-02 'cd /home && nohup Rscript L_1.R> L_1_sh.txt ' AND ssh -f mike@c15-0330-03 'cd /home && nohup Rscript L_2.R> L_2_sh.txt ' I ...
1
vote
2answers
40 views

how to use ssh command to connect to multiple computers and send different commands to each computers at same time

I need to connect multiple computers to run different programs. For different computers, I need to send them different command. How to use ssh command to connect to multiple computers and send ...
2
votes
0answers
9 views

Scripted write-then-read from Unix domain socket using socat

I have a simple server listening on a Unix domain socket (on a CentOS box in case that's important). When I send the command "DATE" to the socket it writes back a welcome message and then "APRIL 15 ...
-1
votes
1answer
36 views

How to remove duplicate lines from file? [duplicate]

I have file for example 'a' aaa aaa bbb ccc ccc bbb ddd After executing uniq a c i get file 'c' aaa bbb ccc bbb ddd How to delete duplicate bbb lines?
-2
votes
0answers
16 views

How can I get lease database output [on hold]

egrep "lease|hostname|hardware|\}" /var/lib/dhcp/dhcpd6.leases # The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1-ESV-R4 ...
0
votes
2answers
31 views

Confusion about Linux/Redhat source rpm

I have following 2 packages installed on a Redhat Enterprise 7.0 instance bind-license-9.9.4-14.el7_0.1.noarch bind-libs-lite-9.9.4-14.el7_0.1.x86_64 The "repoquery -i" command tells me that the ...
1
vote
1answer
17 views

Sharing the loopback interface across network namespaces

I'm interested in using a separate namespace for running a VPN client, so that every process I run into that namespace accesses the Internet through the VPN. That part I've managed to accomplish. ...
0
votes
1answer
18 views

How to force nm-tool to update its DNS servers

Using Ubuntu 14.04LTS and having a problem with changing DNS. I can change servers in the /etc/resoolvconf/resolv.conf.d/base and head files and restart resolvconf using sudo resolvconf -u and it will ...
3
votes
5answers
427 views

How to find out if a system uses SysV, Upstart or Systemd initsystem [duplicate]

Is there a simple way to find out which initsystem is being used e.g by a recent Debian wheezy or Fedora system? I'm aware that Fedora 21 uses systemd initsystem but that is because I read that and ...
0
votes
0answers
21 views

Software raid problem

We have a software raid on our server and we have a problem with disk performances. From time to time disk i/o freezes. During those periods iostat shows that one disk is faster than another. Both ...
0
votes
2answers
27 views

change ksh shell path in linux

present ksh path in linux is as below -bash-4.1$ which ksh /bin/ksh -bash-4.1$ uname Linux -bash-4.1$ uname -i x86_64 i want to change this path to /usr/bin/ksh. could you help me in this?
0
votes
0answers
9 views

Different types of pageouts - Data?

In Linux, pageouts are controlled by the following properties /proc/sys/vm/dirty_expire_centiseconds /proc/sys/vm/dirty_background_ratio /proc/sys/vm/dirty_ratio Thus pageouts can happen due to ...
0
votes
1answer
38 views

shell script unable to set environment variable with the grepped value

In the shell script, I want to grep a value from the log file and set as the value of one environment. In the log file, there is one line like this: SOME_PATH=/some/specific/path In my shell ...
0
votes
0answers
26 views

URXVT network issues

So yeah. Whenever I maximize URXVT my friend's computer's League of Legends client, while in-game, latency goes up to around 3,000. Wireshark, ntop and tcpdump do not reveal any outgoing packets ...
0
votes
1answer
11 views

Changing manifest values in RPM built with FPM

I'm using the delightfully–named Effing Package Manager (FPM) to build RPMs and DEBs for a project. After publishing the generated RPM with createrepo, I noted the following lines in the generated ...
1
vote
1answer
25 views

Linux DST confusion

My question is about Daylight Savings Time (DST), and whether or not the following is behaviour is normal under Linux. I am using the POSIX TZ variable to specify the timezone. Using the example ...
3
votes
0answers
24 views

Automatically restarting process in the X server

I would like to know how to have a process that starts with the X server and automatically restarts when it stops running. I am running Ubuntu 14.04 with a KDE 4.13.3 desktop. I am running the ...
1
vote
1answer
32 views

Half Solved | Grub error: unknown filesystem. (all partitions are unknown)

So, there are thousands of questions related to this all over the internet, but, after days of searching, I still can't find a solution! I have a Turnkey server that was pre-configured with MineOS, ...
0
votes
1answer
14 views

Finding vmstat's swap (si/so) data anywhere in /proc

Is it possible to find (or derive) the amount of data swapped in our out per second from information contained in the /proc filesystem? I'd like to get something like what vmstat provides in its ...
1
vote
1answer
19 views

How to undo and revert an accidental `7z e`

I accidentally typed 7z e archive.7z and all the files ended up in my home directory when I wanted to extract them in a subfolder. How can I clean the mess and remove all those files?
2
votes
2answers
39 views

Unable to mount root filesystem rw with journal

Trying to understand the whole journalling setup and from what I've read and tried, it's eluding me somehow. The root filesystem is ext3. Examining it via tune2fs -l /dev/root shows that ...
0
votes
0answers
6 views

Changing portname mount

I'm using a custom Cubietruck board. Currently, a serial port and a bluetooth port both get mounted to /dev/ttyS1, so i cannot enable both of them. How can I change the mounting drive to one maps to ...
0
votes
0answers
19 views

Bro-IDS CSV conversion

I have Bro-IDS currently operating under Centos 7. I need to convert the output to CSV format. The documentation that I have seen on this is not clear to me. Has anyone done this successfully? I have ...
1
vote
1answer
18 views

Where (the directory) should I put my newly created module in the kernel?

I have created new module code. And want to compile it for my kernel. But I am not sure about I thing. Should I copy it to some designated directory before I start the compilation? Or I can just ...
1
vote
0answers
25 views

Running a systemd service file after the network is up to bypass an OpenVPN default gateway

I would like to add a static route using a systemd service file on system boot. I have a DMZ network on a separate 192.168 class C network reachable via my default gateway. I also use OpenVPN to ...
1
vote
0answers
13 views

ext4 formatted sd card with rootfs.squashfs

I have an embedded system with an sd card that has an ext4 filesystem on it. I have a rootfs.squasfs that is placed in the ext4 filesystem and I am trying to boot to it. I built an initramfs where I ...
0
votes
0answers
24 views

Linux boot up screen image + progress bar [closed]

I have a Linux system on which I want to have my own boot up image and a progress bar to indicate the progress. I made my own theme and added it using plymouth-set-default-theme -R 'name-of-theme'. I ...
0
votes
0answers
11 views

SMS Notifications in Nagios XI

I am using Nagios XI in order to monitor many servers across our infrastructure. I have been getting email notifications successfully, but wish to configure SMS notifications in Nagios XI. The main ...
21
votes
3answers
2k views

What is the difference between these commands for bringing down a Linux server?

Reading "What is the difference between Halt and Shutdown commands?" , I generally have an idea what does the command shutdown does, with or without -h/-r options. The "halt" command performs ...
-1
votes
0answers
18 views

In GNU/Linux how do you put a pdf email attachment on a weblink from either mutt or RMAIL? [closed]

In GNU/Linux how do you put a pdf email attachment on a weblink from either mutt or RMAIL ?... to make the pdf available for other folks.
0
votes
1answer
26 views

Accidentally ran mkfs.vfat on my backup drive [duplicate]

I ran mkfs.vfat /dev/sdb (whole device, not just one partition) on my backup drive, ironic, right. Is there any way to recover my files.
-1
votes
0answers
16 views

Is netcat or socat zero copy

netcat or socat could run like a broker in messaging systems. For example: a one-line forward server socat TCP4-LISTEN:www,fork TCP4:www.domain.org:www Are they zero-copy under the hood?
1
vote
1answer
25 views

How to display a Image on a remote linux machine through ssh

I have two computers, one running windows(WIN7) and the other running linux(SUSe). I'm wondering if there is a way to ssh(Putty) into the linux machine and run a command to have a image display on the ...
0
votes
1answer
21 views

Can I use a login manager to choose different window managers?

I'm working towards an Arch install with a tiling window manager (probably i3) but was wondering whether it's possible to use a login manager and have the Gnome 3 desktop available as a fallback. So ...
0
votes
0answers
33 views

How to enable Ease Of Access controls (comment activer les touches clavier) [closed]

Approximate translation: I'm disabled/handicapped. On Windows I know about Sticky Keys, etc. How can I enable these on my Linux system? Bonjour ! Je suis une personne handicapé , et ne peut ...
0
votes
0answers
23 views

Unable to mount hard disk partition in ubuntu 12.04

I accidentally unmounted my hard disk partition, and then clicked on "edit partition" to further break the partition. Now there's no option to mount and fdisk -l says: Disk /dev/sda: 160.0 GB, ...
1
vote
1answer
34 views

List all regular files containing (in their name, directory or their content) a specific (sub)string

Like in the title, and also I want to print the number of the line in each (text) file where the substring occurs. So far I have: find /sys | grep "filesystem" But it appears to only look at the ...
1
vote
1answer
42 views

ifconfig not showing ip address under eth0

Usually when I connect my raspberry pi to my laptop using an ethernet cable, the ifconfig command in each computer would show the ipaddress of each computer under eth0. I recently got a new raspberry ...
0
votes
1answer
19 views

How to redirect all request to specific ip address in ubuntu

How to redirect all request to specific ip address in linux I have tried following command but its not working sudo iptables -t nat -A PREROUTING -d 0/0 -p tcp --dport 80 -j DNAT --to-destination ...
0
votes
1answer
28 views

Installation of Linux mint from cd makes it stuck on splash screen.

I am installing Linux mint Rebecca cinnamon onto a Windows XP Professional computer. I burned the ISO file using windows burner (Windows XP Professional) The menu loads correctly. Let it boot ...
1
vote
0answers
23 views

redirect all wifi user to specific page in debian

How can I forward all incoming traffic (http request on port 80 & 443) to a fixed IP address? I am using raspberry Pi B+ model, tp-link WiFi adapter. I have tried, among others, these two ...
1
vote
0answers
17 views

Linux Mint 17.1 shutdown option doesn't work

Sometimes when I use the shutdown option in cinnamon the system closes some of the running programs and then just sits on the desktop until I tell it to shutdown again. The shutdown and poweroff ...
3
votes
3answers
157 views

How do I determine a file's original location?

I used mv to move all files matching a specific pattern into a folder. How can I determine (after moving files) where a specific file came from? Is there any chance of determining the location after ...
0
votes
0answers
33 views

CentOS 7: Can't connect wifi using wpa_supplicant

I recently got a new wireless card, specifically Intel Dual Band Wireless-AC 7260 WiFi Bluetooth Half Mini Card. Previously I had been connecting with ethernet so this machine has never been on the ...