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

1
vote
0answers
10 views

Reasons for IPC control in Linux

Linux OS has several IPC mechanisms like named pipes, sys V, d-bus etc. Each of these mechanisms always has senders and receivers of IPC; each mechanism uses some way to control IPC between senders ...
0
votes
0answers
10 views

DEtecting Comments in Flex [migrated]

I am just learning flex.I have written a simple program to check the words of a given text file is verb or not and print them. I want to detect if there is any single or multi line comments in the ...
13
votes
4answers
332 views

Making Linux read swap back into memory

The Linux kernel swaps out most pages from memory when I run an application that uses most of the 16GB of physical memory. After the application finishes every action (typing commands, switching ...
1
vote
4answers
32 views

Regarding awk command

Can any one tell me how can i add a particular word in whole file using awk command. data look like this: Organism: ahy matching miRNAs miR156a miR156b miR156c miR159 miR167 ...
0
votes
0answers
31 views

Set the TCP window scaling option to 4 & the TCP window size to 65535 [on hold]

I want all TCP packet (linux system) to be sent with: TCP window scaling option set to: 4 TCP window size set to: 65535 (0xffff). How I can configure my linux system to do that?
1
vote
2answers
31 views

How to put output to a different text file in flex

I have written a simple program to check the words of a text file is verb or not using flex. But I want to put (print) the output to a different text file. Is it possible? How will I do that? My ...
9
votes
2answers
244 views

practical usage of /etc/networks file

What is the practical usage of /etc/networks file? As I understand, one can give names to networks in this file. For example: root@fw-test:~# cat /etc/networks default 0.0.0.0 loopback ...
1
vote
2answers
15 views

How can I configure /etc/kmscon/kmscon.conf to use specific a) font and b) keyboard layout?

I recently installed kmscon on my system. Now I want to configure it to use a different keyboard layout (neo2) and, while I am at it, a different font, too. I stumbled across this question here when ...
1
vote
0answers
11 views

Is it possible to make the right mouse button do something else in Linux Mint?

I have a cheap 2 button mouse so wanted to turn the right mouse button into my gesture button (with Easystroke). Perhaps making a double right click act as a normal right click.
1
vote
0answers
24 views

Change screen resolution without monitor under Linux?

I got a GUI program which will be executed along the OS (CentOS 6.6) boots. The resolution configuration is programmed in the init part of the GUI program, my solution right now is get the resolution ...
2
votes
2answers
51 views

How to know the source of a process in Linux?

In our firm, we are using Fedora 14. Our developers are using Python code to process documents. All are running as root. Somehow they did something and a file came inside which makes lots and lots of ...
0
votes
0answers
12 views

Is there a method of installing debuginfo package without registering RHEL7?

My RHEL7 isn't registered just for test. Now I want to install python-debuginfo rpm package. But according to this, it seems that I can't install python-debuginfo rpm without registration. Is there a ...
2
votes
0answers
17 views

is THP good or bad for MySQL Server?

Linux kernel new feature called Transparent Huge Pages (THP) which is by default enabled on CentOS 6.x and above OS. Is THP good for MySQL DB machine? I am trying following to disabled THP but seems ...
0
votes
0answers
31 views

USB Stick created on one machine not working on another [on hold]

I have a 8 GB usb stick and just want to tranfer files from one debian machine to another. same version and 32Bit. but when i create a partition on machine a, copy files to the drive and try to ...
0
votes
0answers
25 views

How to write your own exception/interrupt handler? [migrated]

Any simple and basic example to write the exception? I've been searching the web for the past few days. Couldn't find any good site. :/ I got this as an assignment - Write an "Assembly handler" ...
0
votes
1answer
25 views

Recommend a Python book [on hold]

I'm a Linux system administrator and will be learning Python. I'm a ksh/bash expert. I never became good at perl, so I don't want a book oriented to perl programmers. What book would you recommend I ...
-3
votes
0answers
31 views

What exactly “wiphy” is?

I am wondering if someone could explain to me: what does "wiphy" mean? I have searched already but with no success :| Thanks in advance
0
votes
1answer
23 views

What is a UART port

I have a .fex file for Cubietruck. Supposedly, the bluetooth pins are defined in the uart_para2. With the current config, I have uart0 and uart2 enabled, and everything else is disabled. Bluetooth ...
1
vote
1answer
8 views

Openvpn stops responding

I've been trying to set up openvpn with a vps and raspberry pi. The raspi is natted while the vps is public. I've tried connecting to the openvpn from mint laptop as well, but it's no use: Server ...
0
votes
0answers
16 views

quick question about kernel modules [migrated]

I'm very familier with linux (been using it for 2 years, no windows for 1 1/2 years), and i'm finally digging deeper into kernel programming and I'm working a project. So my questions: Will a kernel ...
1
vote
0answers
28 views

Linux - iptables - get YouTube streaming bytes usage

How do I get bytes usage using iptables for a particular IP, including YouTube streaming videos? Currently, I am using the following IP tables rules to get data usage by IP address: sudo iptables -I ...
1
vote
1answer
25 views

Can't write on recently created EXT4 partition

On a new external hard drive (Intenso 05-1204-18A), I made (with GParted) two partitions : Disk /dev/sdc: 931.5 GiB, 1000204883968 bytes, 1953525164 sectors Units: sectors of 1 * 512 = 512 bytes ...
2
votes
1answer
36 views

Can someone explain in detail what “set -m” does?

On the man page, it just says: -m Job control is enabled. But what does this actually mean? I came across this command in a SO question, I have the same problem as OP, which is "fabric cannot ...
1
vote
0answers
25 views

How to diagnose display issues in linux?

I have recently upgraded my system to Debian Jessie (testing) and everything went smoothly, except the occasional distortion when the screen is updating. When a part of the screen needs to update, ...
0
votes
0answers
12 views

build X11R7.7 from sources - in which order

Is there an automatic way to understand the order in which individual libraries of the X11R7.7 package should be built when I want to build all of util, lib and xcb?
-4
votes
1answer
22 views

I would like to copy some files from a usb to a ssd hard drive running CentOS 7 How do I do this? [on hold]

I would like to copy some files from a usb to a ssd hard drive running CentOS 7 How do I do this? is it different then centos 6.5 instructions?
0
votes
1answer
46 views

How can I get a shell script to change directory for me? [duplicate]

here is a small test I ran, to try and move me back to root: #!/bin/bash pwd cd / pwd It returns the current working directory, and then the correct new one, but when the script finished executing, ...
0
votes
3answers
7 views

How to remove directory from rsync share completely

Is there any rsync command that can remove some remote directory from rsync share completely? I mean delete not only directory content but the directory itself. And without rsyncing the entire parent ...
2
votes
1answer
16 views

SSH demon not installed in linux embedded device

I have an embedded device which runs linux(arm). I am trying to update the executable through ethernet using scp command. But I got to know that sshd is not running in the device . I need to install ...
0
votes
0answers
11 views

Hard disk power cable possibly slipped out during copying - now directories empty, error shows “dir: cannot access .: input/output error”

I am pretty sure the powercable to one of my harddisks fell out during copying. The result was two personal backup directories are now empty, but still extant, while the rest of the directories are ...
-2
votes
0answers
16 views

Script help! Storing a list of services/ports [on hold]

Need help making a script. Script needs to store a list of services/ports, hard-code an email for notification, and to log the info STDOUT.
0
votes
2answers
19 views

Unable to connect to certain IP address, but able to connect to other IP in same subnet

I'm running a 14.04.2 LTS ubuntu box in a DMZ with IP of 10.10.30.35 and I have the following network mystery. I'm trying to connect to another unix box outside the DMZ but in our internal network at ...
1
vote
1answer
50 views

wheel groups and permissions

I'm new to a lot of things Linux, so this might be basic stuff. We're thinking about setting up a wheel group and removing permissions from root. Not even sure that's possible. We are having a ...
-5
votes
2answers
57 views

How to average a column in a text file without using ' character? [on hold]

I need to do it without using the ' character. I could do it like this: awk '{sum+=$5} END { print "Average = ",sum/NR}' except this contains a '.
-3
votes
1answer
16 views

How to create different device names in one terminal as shown in fig

The image contains 3 names i.e 1)HNHBMaster 2)HNRRegion1 3)HNRRegion2 can anyone please explain how to get it. THANK YOU
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
65 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
34 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
17 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
421 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 ...