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

0
votes
1answer
11 views

how to edit 1 line in /proc/net/tcp

I need to edit 1 line in the file /proc/net/tcp while the file is also used by the linux kernel for updating other lines of it by the kernel. Background: Each line in /proc/net/tcp is devoted to 1 ...
0
votes
0answers
13 views

Linux shell script to automate user creation

Linux enables tasks which are regularly carried out to be automated through the use of shell scripts. How do I write a shell script that could automate the task of creating new users and assigning ...
0
votes
0answers
5 views

Switch gateways on failure (WRT)

I have two WRT routers each connected to their own wireless gateway (cell phone and hotspot across the street). The routers lans are bridged with WDS and on the same subnet, so clients can connect to ...
4
votes
1answer
17 views

What are pending signals?

When looking at the limits of a running process, I see Max pending signals 15725 What is this? How can I determine a sensible value for a busy service? Generally, I can't seem to find a ...
3
votes
1answer
103 views

Linux: set command for local variables

I am trying to understand local/environment variables and export/set commands. $ set FILEM="razrax" $ echo $FILEM $ FILEN="test" $ echo $FILEN test Please explain why echo $FILEM returns empty ...
0
votes
0answers
8 views

Fault-tolerant iSCSI root fs for Linux

I am in the process of moving some Linux servers onto a virtualized environment with their filesystems mounted from LVM volumes, which are in turn hosted on a remote NAS via iSCSI. I am able to start ...
0
votes
5answers
39 views

Difference between 'ls -ltr abc*' and 'find ./ -name abc*' command? [duplicate]

To search a file in a directory, I found two commands as below: ls -ltr initialfilename* find ./ -name initialfilename* Sometime, first command gives me the search result but sometime I used to ...
1
vote
1answer
39 views

Sticky bit and users with sudo permission

Let's say I chmod 1777 a folder /opt/test and all files inside, as user user1. Hence user2 is able to update and edit files inside the /opt/test directory. When user2 operates via sudo, he's able to ...
0
votes
0answers
12 views

RHEL Bash Script for Oracle WebLogic - Run command as another user; No such file or directory

I'm trying to run a test script which switches to a WebLogic 10.3.6 user and checks the status of the admin server. The script works fine when the variables are replaced with absolute paths, but this ...
0
votes
0answers
13 views

How to add routes multiple times in routing table?

Need to add same route multiple times in the routing table, or is there a way to maintain references in the routing table entries ? (may be with different priorities etc.) Am working on a switch ...
2
votes
1answer
37 views

Device eth0 does not seem to be present, delaying initialization

I have cloned a fedora and now trying to configure network interfaces. Every time i am adding a new NIC, it starts with number eth3 (rather eth0). i have tried removing and modifying the ...
1
vote
0answers
6 views

Can I create a buffer file with arecord?

I need to record some sounds from my audiocard to make a stream(Nothing special in this just trying new things), but I can't make the arecord play direct on it, so can I create a buffer file where the ...
2
votes
2answers
71 views

how to create multi tar archives for a huge folder

I have a large folder with 30M small files. I hope to backup the folder into 30 archives, each tar.gz file will have 1M files. The reason to split into multi archives is that to untar one single large ...
2
votes
2answers
61 views

Change Password Programmatically

In the current version of Raspian, I know it is possible to change the password of the current logged in user from the command line like so: sudo passwd which will then prompt the user to enter a ...
13
votes
3answers
599 views

What exactly does init do?

I am creating a linux distro and now I need an init program. I can code in c really well and I know quite a bit about linux (not much but I've been using arch linux for development for 4 years), so I ...
0
votes
1answer
39 views

UNIX Account management

Would like to know if there's some opensource solution aimed to manage and administer system authentication and RSA keys for staff, contractors and clients across the organization. My systems to ...
2
votes
0answers
21 views

Thin LVM pool frozen due to lack of free space, what to do?

My thin LVM pool got full and some programs hung: device-mapper: thin: 253:4: reached low water mark, sending event. device-mapper: thin: 253:4: no free space available. INFO: task jbd2/dm-6-8:742 ...
2
votes
0answers
17 views

UNIX sockets vs AF_NETLINK vs Kdbus vs Binder

What are essential differences between those IPCs? Which are main use cases? Is there some consolidated comparison table between them somewhere? Something like: Protocol: AF_UNIX | ...
0
votes
2answers
27 views

/usr/java/jre1.8.0_31/bin/java.exe: No such file or directory

I've been trying to run a plugin inside a I have hired, and I've constantly been getting this error: [04:13:41] /bin/sh: /usr/java/jre1.8.0_31/bin/java.exe: No such file or directory Not too sure ...
0
votes
2answers
32 views

Grub-install: what's the root directory

Can anyone provide a clear explanation what the root directory is for grub-install and when to use it?
0
votes
0answers
13 views

Which flags should I use for my “netstat” commands?

I would like to use two variants of the netstat command; one exclusively for IPv4 and the other exclusively for IPv6 traffic. In both cases I would only like to list the following information: ...
2
votes
1answer
30 views

set default process and IO priority on Linux for given application/executable

Is it possible to set up some sort of default process and IO priority for given application/executable? I am thinking some sort of FS extended attribute or loadable "policy" of sort?
1
vote
2answers
58 views

How to keep a process from running?

I can kill a process. But how do I keep that process from being called up again without removing it from Linux? For example, if I run something like netstat to find the port associated with the ...
1
vote
0answers
11 views

Setting custom baud rate on console

Just for aesthetics I would like to have my text on my console be displayed at a lower speed. I've tried using things like screen with custom baud rates of /dev/tty1 but it wouldn't work, input from ...
1
vote
0answers
16 views

What does the “Shared” Field indicate in “free” command? [duplicate]

I want to know what "Shared" Column indicates in the "free" command. total used free shared buffers cached Mem: 3818 3677 140 37 ...
1
vote
1answer
12 views

how to change cifs timeout

Happens when from my laptop I change wifi network that I've to wait 5 minutes before that I can umount cifs share. mount -t cifs //ip/share /home/user/net/share -o user=user,pass=pass I didn't ...
0
votes
0answers
10 views

centos 7 installation with customized bridge module

I have installed latest Centos 7 x64 edition in my server. I need to modify the linux-bridge module with some customized changes and use it as a default bridge module. Currently I am building centos ...
1
vote
1answer
36 views

How can I have a system boot in to a root session and then run a command within that session?

I have a GNU/Linux system with one account, the root account. When I boot the system, I want it to automatically log in to the root account and then run a 'telnet' command within that session. How can ...
0
votes
0answers
8 views

Turn on bluetooth on login screen

Is it possible to have bluetooth turned on and use a bluetooth keyboard when at the login screen? So far I only managed to start the bluetooth daemon when logged in. I added it to systemd with ...
2
votes
1answer
23 views

Grub-install: device vs partition

Grub can be installed to a device (grub-install /dev/sda) and to a certain partition (grub-install /dev/sda1) - as I understood. My question - if we install it to a partition will grub-installer write ...
0
votes
1answer
8 views

how to properly configure samba access using groups

I am having trouble trying to get a specific group to access samba server through windows. is it possible to allow certain groups to the file sharing server? example, I have a group called ...
0
votes
0answers
15 views

Why do XInput controllers work on linux? [on hold]

Why do XInput controllers work on Linux? Isn't XInput part of DirectX and isn't that a MS proprietary API?
0
votes
1answer
23 views

Install mail server in VM

I have a Intel NUC with an i3 processor running the latest Mint version with the Cinnamon desktop and already installed some basic services (Apache, MariaDb, ownCloud etc). The next step would be to ...
0
votes
1answer
29 views

Partitioning problem in Kali Linux installation

I'm trying to install Kali Linux dual boot with windows 8.1. During installation, only two partitiones: while I have 3 different partitions . Please help.
0
votes
0answers
30 views

Conceptual question about data corruption and mounting

If we have a partition /dev/sda1, and mount it to a mount point (i.e. /mnt), we can then use the files and folders under /mnt. Before changing the partition /dev/sda1 I umount /mnt, and then perform ...
0
votes
0answers
23 views

Show last x lines of a screen session?

/etc/init.d/mc {..} status) if screen -ls | grep -q "mc"; then echo -e "[\033[32mMC\033[0m] Online" {.. needed code ..} else echo -e ...
1
vote
0answers
16 views

Can't see boot options or log with GRUB through serial-over-lan

I have a Debian system that is unable to boot a configuration I want. I don't have physical access to it, but I have serial-over-LAN access via Dell's BMC (so very limited), IPMI 1.5/isol. When I boot ...
2
votes
1answer
13 views

how to overcome conflict between 2 network cards - virtualbox ubuntu

I am running ubuntu 10.4.04 LTS as guest in virtualbox on OSX Yosemite. Unfortunatelly I seem to have the network configured wrong I followed this tutorials ...
-3
votes
0answers
27 views

Application compatibility in Linux [on hold]

Why is application compatibility not good in Linux OSs even in different versions the same distros? Application Compatibility for me: I'm a Ubuntu user, and if I carry and use the .deb files on some ...
-1
votes
0answers
22 views

Unix server -bash: sudo: command not found [on hold]

I Just bought a server where i have to Install apache2 server when I try using command line sudo apt-get install apache2 than it's gave me error like -bash: sudo: command not found Also apt-get ...
2
votes
0answers
21 views

Reasons for IPC control in Linux [on hold]

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 ...
4
votes
2answers
40 views

htop shows only the processes of the user that's running it?

On my old Debian Wheezy I see as a normal user without sudo all processes from all user in htop. On my new Debian Wheezy I only see my own processes. Old system kernel: 3.2.0-4 New system kernel: ...
0
votes
0answers
10 views

DEtecting Comments in Flex [on hold]

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 ...
19
votes
3answers
605 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
39 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
35 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
32 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 ...
10
votes
2answers
266 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
20 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
14 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.