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

2
votes
1answer
124 views

Managing settings from /sys directory in arch

I can manage /proc directory settings with sysctl and config files in /etc/sysctl.d but is there equivalent tool for the /sys directory? I want to change the I/O scheduler to bfq permanently. Should ...
1
vote
0answers
424 views

Is it possible to convert RHEL to CentOS?

The software vendor that we used has always specified that we should load RHEL on servers we've bought to run their software however they did start to accept CentOS and even now prefer it on new ...
3
votes
2answers
146 views

Disable touchpad special functions

I use Linux Mint with MATE. The touchpad of my laptop displays occasional erratic behavior that I attribute to my touches triggering some "special functions". This manifests while browsing with ...
0
votes
0answers
37 views

what version of program X does not contain bug?

Suppose there's a bug in software (linux stuff) you need to use. You don't know if there are newer/older version of program without this bug. How do you find it out? This question occurred after the ...
6
votes
2answers
5k views

how to disable USB devices based on vendor id in Linux environment?

I want to disable usb devices based on vendor id in Linux environment. I want to allow only specific USB devices, based on vendor id.
2
votes
2answers
263 views

Is shell parent of all the processes in linux

I have been trying to understand shell scopes and environment in depth. I have been reading about how if we do export VARIABLE=VALUE it will be available in subshell. So I wanted to ask a question I ...
12
votes
3answers
6k views

EXT3: If block size is 4K, why does ls -l show file sizes below that?

If you run ls -l on a file that contains one letter, it will list as 2B in size. If your file system is in 4k blocks, I thought it rounded files up to the block size? Is it because ls -l actually ...
1
vote
1answer
519 views

Bash: Looping through a string

I have a variable Vmac that stores values of multiple MAC addresses, collected from wmic call as follows: Vmac=`wmic --delimiter="," --authentication-file=/path/to/file //IP-ADDR "Select ...
1
vote
0answers
34 views

Find who is connected to a Unix domain socket (Linux) [duplicate]

I have a Unix domain socket (for example /var/run/mysqld/mysqld.sock). I know there is open connection(s) to this socket thanks to lsof -U or ss -xa but I cannot find which process is connected to it. ...
3
votes
2answers
123 views

How to disable network access for a user?

Trying to disable the network access for the user: [root@notebook ~]# iptables -I OUTPUT -m owner --uid-owner tempuser -j DROP [root@notebook ~]# ip6tables -I OUTPUT -m owner --uid-owner tempuser -j ...
0
votes
2answers
221 views

Difference b/w hardware time and system time [closed]

I want to know the exact difference between Linux "hardware time" and "system time". What time does the computer use? Is it Hardware or system?
4
votes
3answers
240 views

Understanding Bash's Command Substitution

I am trying to understand how exactly Bash treats the following line: $(< $FILE) According to the Bash man page, this is equivalent to: $(cat $FILE) and I can follow the line of reasoning for ...
0
votes
0answers
135 views

Why doesn't Linux shutdown cleanly?

I'm running Linux Mint with LXDE on Dell Inspiron 1501. Whenever I issue poweroff command, or reboot or shutdown the computer via the graphical menus, it doesn't seem like a clean shutdown. In ...
2
votes
2answers
118 views

Best way of keeping clock accurate in LInux

I have researched many different of ways to accurately keep time in Linux, but there are so many programs and ways of doing it. I would like to know what you guys think is the best way to keep the ...
1
vote
1answer
214 views

Environment Variables not getting set in bash_profile

I have my bash_profile environment setting as follows: if [ `hostname` = "devoraebs01" ]; then echo `hostname -f` . /appl_top/deverp/appl/APPSDEVERP_devoraebs01.env When I log into this host, ...
2
votes
1answer
186 views

How can I cross compile the dd linux tool for arm?

I need to cross-compile a full version of dd because my device only has a busybox one that doesn't support many options. Where do I get the source for it? I've been looking on the kernel repo online ...
1
vote
1answer
3k views

NginX + PHP-FPM displays blank php pages

I have a problem where my server running NginX with php-fpm loads blank PHP pages (strangely except for my phpinfo.php file, which loads normally). If I put an index.html page in the same directory ...
-2
votes
1answer
330 views

How to parse json output through shell / Python [closed]

I am running a curl command which gives me json response. Now I want to parse the response output to get the keys and corresponding values from the output or getting value for a particular key. I ...
2
votes
1answer
473 views

systemd mount 'rootfs' according to '/proc/cmdline'

SETUP Im running Debian 8 (jessie/testing) amd64 with systemd. On my system partition containing a btrfs filesystem, I do have the following layout: /dev/sda1 |-root |-root_snapshots/ ...
0
votes
1answer
127 views

weird find command doing hard I/O operations and freeze my pc

I've noticed than many times my laptop freezes, checking the possible causes I found than it happens exactly when my disk is doing heavy work...now using iotop I found this: 29620 idle nobody ...
1
vote
0answers
770 views

How can I run script without root to sniff network (libpcap)?

I have a script (in ruby): require 'ffi/pcap' pcap = FFI::PCap::Live.new(:dev => "wlan0", :timeout => 1) pcap.loop() do |this,pkt| puts pkt.body end When I try to run the script , I get ...
0
votes
1answer
4k views

FTP error “553 Could not create file” in RHEL

We need to transfer a file from local machine to remote machine. Remote machines settings are as below: [540607@hsldevoradb ~]$ su - Saphr002 Password: [Saphr002@hsldevoradb ~]$ pwd /odi/CSV/in ...
3
votes
2answers
578 views

monitor linux file systems using df

I use df -kh to get the file system usage, but the trouble is if there is any NFS mount failure in any of the boxes the command will hang. Is there a better way to monitor file systems other than df ...
-1
votes
1answer
107 views

What are the commands which will work in unix but won't work in linux [closed]

Pls list the command or the scenario which will work in Unix but will never work in Linux
2
votes
1answer
632 views

How to enable and configure WiFi in debian 7 wheezy.?

I just installed the debian 7 wheezy, but WiFi is not working. I visited the debian wiki pages but they have already mentioned there that the broadcom chip BCM43142, 4e4:4365 is not supported by the ...
1
vote
0answers
12 views

pannel applet wont spawn process

I am using Mate, with debian8, an this has never not worked, so I'm confused now. I have a custom applet (launcher), which reads: ssh user@ip When clicked it does nothing, ordinarily a terminal is ...
1
vote
1answer
72 views

Behaviour of priority inheritance in mixed systems

If I have a realtime linux system, but with certain subsystems not being realtime. What happens if I use priority inheritance with certain synchronization objects that are shared between both the ...
1
vote
1answer
413 views

How to configure Request Tracker on Debian and generate tickets?

I'm following Installing Request Tracker 4 on Debian but got stuck in email configuration. I got mail server configured properly and it is working fine. Please guide me on configuring Request ...
0
votes
2answers
59 views

Create a symbolic copy of another directory that has it's own local data

I have a directory foo that contains files and directories. I want to create a new directory foo_0311 that contains the same files as foo (and sees updates when the files change), but that allows by ...
4
votes
1answer
512 views

Get kernel source: apt-get install vs apt-get source

I'm looking forward to download a Linux Kernel to get to know how to modify it and how to compile it. I am using Debian distribution and I'm interested in the Debian-modified Linux Kernel rather than ...
1
vote
1answer
864 views

Building a Debian-based Linux Distro Online

susestudio provides an online tool for building one's own Redhat-based Opensuse linux distro. However, I am more of a Debian-based guy. I was wondering of there is a similar website that let's us ...
0
votes
2answers
1k views

Accessing port 8080 on a server without using port 8080 for my SSH connection

I'm running a program that lets you interact with it in the browser. To do this you run the program and open "localhost:8080" in your browser (if 8080 is the right port). However, I'm running the ...
0
votes
1answer
388 views

Linux Bash Script Ideas [closed]

I have been given the task of creating a shell script to show my proficiency in scripting. I am really struggling with ideas on what to do. I would like to create something that is relevant and could ...
1
vote
1answer
132 views

Incoherent measures with perf record

While trying to get some measures from HPC with perf record, I'm getting some incoherent values, I think. I'm using the next command to get some mesures: perf record -T -F997 -e ...
0
votes
0answers
850 views

open ssl client giving error routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:188:

On connecting to my application (a ssl server) by using command openssl s_client -host 127.0.0.1 -port 5028 -cipher EXPORT -debug -state I am getting error like CONNECTED(00000003) ...
1
vote
1answer
1k views

Understanding rc.local and troubleshooting

I (new to linux) am attempting to add a command to the boot up that will execute an application. The application accepts parameters and has simple output of what it is doing. To troubleshoot it, how ...
2
votes
0answers
67 views

Why is traffic matching the public zone instead of the desired zone?

Trying to self-train on firewalld I set up apache and configured the zones as follows: [root@localhost ~]# firewall-cmd --get-active-zones work sources: 192.168.122.1 public interfaces: ens3 ...
2
votes
2answers
5k views

How to get CentOS 6.5 gui?

After, I've installed CentOS 6.5, I just have a terminal with a black background and I can't get gui for it. Any recommendations?
2
votes
0answers
432 views
0
votes
2answers
185 views

Run script and not lose access to prompt / terminal

I am running jmeter by launching the .sh script, once I do that I cannot start using the prompt again unless I ctrl-z, ctrl-c, or the script ends in some other way. How can I launch that script and ...
2
votes
2answers
2k views

Console font - how to show accents?

Arch linux on VirtualBox. My problem is the console (not X) does not show accents like "á ã ç". The problem is showing, not typing. I have a text file with these accents and when I use "cat" the ...
1
vote
0answers
182 views

Red Hat Enterprise Linux 6.5 remounts root filesystem read-only after hibernating

I have a Lenovo ThinkPad T430 running Red Hat Enterprise Linux 6.5, kernel 2.6.32-431.30.1.el6.x86_64, and my filesystem structure consists of a master LUKS partition holding two logical volumes, one ...
1
vote
1answer
185 views

Will `mv` ever have the ability to create directories?

This question asks for the best way to create a directory when using mv if it doesn't exist. My question is why isn't this an inbuilt feature of mv? Is there some fundamental reason due to which this ...
4
votes
2answers
1k views

SSD as a read cache for FREQUENTLY read data

I'm looking for ways to make use of an SSD to speed up my system. In “Linux equivalent to ReadyBoost?” (and the research that triggered for me) I've learned about bcache, dm-cache and EnhanceIO. All ...
2
votes
2answers
217 views

The fifth field of fstab query

In "/etc/fstab" the entries are like this tmpfs /dev/shm tmpfs defaults 0 0 The fifth field (0) is used by dump (a backup utility) to decide if a ...
8
votes
1answer
15k views

Move a logical volume from one volume group to another

Is it possible to move a logical volume from one volume group to another in whole? It is possible to create a (more or less) matching lv and copy the data over, but is there any way to do this with ...
8
votes
5answers
2k views

Why specify block size when copying devices of a finite size?

In online tutorials it is often suggested to use the following command to copy a CDROM to an iso image: $ dd if=/dev/dvd of=foobar.iso bs=2048 Why must the byte size be specified? I notice that in ...
3
votes
3answers
385 views

SUID accidently removed from /bin/su file

It is a production server - CENTOS 6.1 Some user having root access in the past had logged on to the server and removed the SUID bit from the /bin/su file and then exited root. Now we are not able to ...
2
votes
1answer
2k views

How can you run a script triggered by a joystick input?

I'm using a Raspberry Pi running Raspbian to power my arcade cabinet. I want to shut the Pi down using the sudo poweroff command without using the keyboard. I'm thinking the best way would be to ...
4
votes
2answers
2k views

joystick as a mouse with Fedora

I would like to use a joystick as a mouse with Fedora 12. I tried js2mouse but didn't work. Is there another solution? How should I configure the system?