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

0
votes
1answer
34 views

command /opt/bin/date --date '-15 minutes 2016-04-27T14:14:47' producing result many hours before stated time

I'm using the following command in an attempt to work out the time 15 minutes before the timestamp: /opt/bin/date --date "-15 minutes 2016-04-28T16:58:55" '+%Y-%m-%dT%H:%I:%S' The problem is the ...
-1
votes
2answers
46 views

Where can I practice my Python and Bash scripting? [closed]

I wanted to practice my bash scripting skills and python skills and wanted a good book or a site where I can practice and get excellent skills please. Any recommendations please.
4
votes
1answer
38 views

How does Linux decide the /proc/PID/stat “name” of a process?

Currently my machine has 5 processes running scripts through python, but Linux thinks only 2 of them have the name python (according to /proc/$pid/stat). That is, pgrep -af python shows: 1784 ...
0
votes
1answer
28 views

Correct syntax for inputting date variable into date calculation code

In my script, the following code successfully produces a timestamp variable for $n in the format 2016-04-28T15:47:48 for n in $(perl parsetime.pl | sed "s/.....$//") do echo $n result is: ...
0
votes
0answers
37 views

KDE Plasma 5 panels multi monitor

Every time I plug in or out the external monitor its panel changes to the secondary one. Also, new windows always opens on the laptop monitor which is the secondary. Is there a way to solve this?
3
votes
3answers
57 views

IPtables installation question

I am new to installing iptables and have an excellent book called "Linux Firewalls: Attack Detection and Response" by Michael Rash. I have a few questions before I begin. I want to make an ...
0
votes
1answer
21 views

Including milliseconds in a Script?

sudo hexdump -v -e '1/1 "%02x\n"' /dev/ttyUSB0 | awk '$1=="ed" { getline byte1 getline byte2 number = strtonum("0x" substr(byte2,2,1))+2 ...
0
votes
3answers
35 views

Is group priority available?

[tjm@ArchPad bin]$ LANG=en [tjm@ArchPad bin]$ pwd /usr/bin [tjm@ArchPad bin]$ ll | grep wireshark -rwxr-x--- 1 root wireshark 88K Apr 25 00:22 dumpcap -rwxr-xr-x 1 root wireshark 2.0M Apr 25 00:23 ...
2
votes
1answer
24 views

Two nfs exports from different servers mounted on the same mount point

Recently found these lines on my test server: <some IPV4>:/zebra on /zebra type nfs ...
-3
votes
1answer
29 views

Code to calculate 15/30 minutes before specified timestamp (GMT) in ISO 8601 format

I am working with a timestamp which is in the following format which I am told is know as ISO 8601 : 2016-04-27T14:14:47.836Z I would like to be able to calculate the timestamp both 15 minutes and ...
1
vote
1answer
45 views

iptables DNAT: 'No chain/target/match by that name'

I am trying to use DNAT on a new custom Linux target, but I get an error with the following basic command: #iptables -t nat -A PREROUTING -d 10.110.0.250 -p tcp --dport 9090 -j DNAT --to ...
0
votes
0answers
10 views

UUID of LUKS changes when cloned

I am trying to install Centos 7 (under LUKS) on a virtual machine in Fedora 23 using virt-manager and after that to clone that image to multiple USB drives. The problem is that the virtual machine ...
0
votes
1answer
52 views

Linux: dnf error: Aborted (core dumped) after packages upgraded from .fc22.x86_64 to .fc22.i686 in fedora 22

I have Fedora 22 XFCE in Oracle VM, yesterday I tried installing skype-4.3.0.37-fedora.i586.rpm, this tried upgraded many of the packages from example: upgraded from glibc-2.21-13.fc22.x86_64 to ...
0
votes
0answers
26 views

Why are the names different in “/etc/HOSTNAME” file and hostname command in SLES11SP3?

My OS is SuSE(SLES11, SP3), executing the hostname command: # hostname lxc-dl580-g8-1 But the name in /etc/HOSTNAME file is different? # cat /etc/HOSTNAME linux-2pny.site Why are the names ...
0
votes
1answer
31 views

Booting back to Windows

I have just installed Ubuntu 14.04. I think I made a mistake when installing because I wanted this to be dual boot but now the computer automatically goes to Ubuntu every time I switch it on. It ...
-4
votes
0answers
19 views

What is the difference between mem usable and mem free? [duplicate]

What is the difference between usable memory and free memory ?
0
votes
2answers
74 views

How to check if ftp is installed in a linux server

I just want to know if a FTP server is installed on my server. It is a Red Hat Enterprise Linux Server release 5.8 (Tikanga). I tried running the below command and got connection refused : $ ftp ...
0
votes
2answers
33 views

Replacing string in HTML with value from lookup file

Situation: I have a source HTML file, with some values which must be completed with data from another file. Value that must be enriched is between a unique tag. ...
0
votes
1answer
46 views

Getting “sed: -e expression #1” when trying to run search and replace

I'm using Amazon Linux. I'm trying to run a search and replace using sed. I'm running into the below error ... [jboss@mydevbox nodejs]$ sed -i -e "s/test.smokeTest('(.*?)', '(.*?)', ...
0
votes
1answer
42 views

How to find the parent of a file by inode

I want to use ntfsundelete to maintain the directory structure of the recovered files. The output of ntfsundelete is like this: Inode Flags %age Date Size Filename 191321 FN.. ...
0
votes
2answers
46 views

Binding Timestamp with Hexdump?

I am running a script which is given below, sudo hexdump -v -e '1/1 "%02x\n"' /dev/ttyUSB0 | Many Pipes | gawk '{ print strftime(":: %s"), $0 }' Here the data is being hex dumped with timestamp ...
0
votes
2answers
33 views

zdump doesn't display expected information

I am trying to configure the time zone of a server (Ubuntu 14.04.4), however the zdump command does not show the expected information like : America/Santiago Sun Apr 26 02:59:59 2015 UTC = Sat Apr ...
1
vote
1answer
47 views

DNS problem > If I disable recursion, I can't ping my result

I have configured dns server, and if i enable recursion, I can ping and got the result. [root@seobd ec2-user]# nslookup google.com Server: 52.10.197.195 Address: 52.10.197.195#53 ...
3
votes
0answers
36 views

IPv6 ephemeral port range

In Linux, I can get and set the range of ephemeral ports through /proc/sys/net/ipv4/ip_local_port_range: $ cat /proc/sys/net/ipv4/ip_local_port_range 32768 61000 I want to control the ephemeral ...
4
votes
3answers
125 views

Trace access to a directory tree

Situation I have a directory /home/foo on a server, and I guess that it is not needed any more. Unfortunately nobody can tell me if this directory is still needed. Goal If this directory is still ...
0
votes
0answers
16 views

kerberos: Why sudo command creates a ticket?

I have successfully set up a kerberos (MIT) / OpenLDAP debian server which can authenticate users with kerberos and get SSH access according to OpenLDAP groups. I must mention that as this is a ...
0
votes
2answers
70 views

Not Able to run telnet service on CentOS machine

When I try to run the telnet service on CentOS Linux release 7.2.1511 it throws the following error: service telnet restart Redirecting to /bin/systemctl restart telnet.service Failed to restart ...
0
votes
1answer
20 views

umount from all the systems in the lan [duplicate]

We have some 20 machines in the LAN and 3 NAS boxes mounted on all the devices. I want to permanently umount one NAS box from all the machines. I can do the manual way... SSH to each machine umount ...
1
vote
1answer
44 views

Ext4 corrupted and unrecoverable after LVM resizing + power failure

I have a completely standard, single hard drive Fedora 23 desktop. The dual-boot installer set up the Linux partition as LVM, with root, swap and home logical volumes; root and home were both ext4. ...
0
votes
1answer
31 views

Development setup on linux

On a linux system should we install and use our development tools and setup like java ee and hadoop as a root user or as user.
0
votes
5answers
70 views

Adding time stamp to a log file?

I am running a script file. I have written a while loop inside the script in which I have pipelined multiple commands like awk, sed and finally I am writing the output to a file using > operator. I ...
0
votes
0answers
25 views

Unable to access http server when ufw is running, on Raspbian?

I have a Raspberry Pi running Raspbian, with Apache2 for the web server. Some recent change seems to have broken my ability to access my web server, when ufw is running. The server simply doesn't ...
-2
votes
2answers
64 views

standard deviation using awk [closed]

I am using below command to get standard deviation of file A names 1 2 3 avg 23.3107 20.0372 21.7236 21.6905 awk '{x[NR]=$0 ;} END{a=$4; for (i in x){ss += ...
3
votes
1answer
47 views

How to get number of opened file descriptors for user

I know about lsof and ls /proc/*/fd but none of them are atomic AFAIK. Because in the latter case I would need to get all pids for user and then filter by them and by that time some of the file ...
0
votes
1answer
25 views

Cancel scroll event when another key is pressed

When I scroll with middle mouse the event of scrolling is continued until it gradually turns to 0. Think this is a general issue as I experienced it on more than 1 linux distro (NixOS and ArchLinux) ...
1
vote
2answers
50 views

Linux file hierarchy - what's the best location to store lockfiles?

I want to synchronize processes based on lock files (/ socket files). These files should only be removable by their creator user. There are plenty of choices: /dev/shm /var/lock /run/lock ...
-2
votes
2answers
64 views

Keep CPU busy at certain percent (to prevent CPU buzzing frequency noises) [closed]

On Dell Inspiron 7559 there is electric buzzing from beneath the keyboard that changes frequency when I touch the touchpad. However, if the CPU is busy I hear no buzzing as the frequency gets out of ...
0
votes
1answer
36 views

Kali Linux doesn't install

I have a problem with Kali Linux. I want to install it with live DVD, so I burned DVD, and also booted it in BIOS, but when the install options shows (install, Live amd64, Live forensic mode and so ...
0
votes
2answers
26 views

Linux use second terminal in minimal iso

I installed centos minimal iso, as you know there is only one terminal in opening so I made everything within there but I wanna know; Can I open a second terminal window ? I am downloading on ...
0
votes
1answer
32 views

Overhead of using loop-mounted images under Linux

Is there a CPU/RAM overhead associated with using loop-mounted images versus using a physical partition under Linux?
1
vote
2answers
19 views

Deleting lines by matching 3rd and 4th character only

I am running a script that fetches me the data as given below, 1400d2b8 1f4d1e2507 1200781e As you can see the 3rd and 4th character is 0 in line 1 and line 3. I am trying to write a single line ...
-1
votes
1answer
54 views

Getting “Permission denied” when trying to create a file despite correct permissions

I’m using Amazon Linux and running a script through a Jenkins job, including this line touch /usr/java/jboss/standalone/deployments/myproject.war.dodeploy which results in the error … touch: ...
2
votes
0answers
21 views

Can not seem to get the jp2 delegate to work in ImageMagick on Ubuntu 15.10

As the title says, I have tried to install the library on both 14.04 and 15.10. Every time I type in convert -version the delegates do not contain jp2000. I have installed libopenjpeg-dev and ...
1
vote
0answers
24 views

VPN Connected but url not not open

I have use CentOS 7 system and developing a SOAP web service. I connected FortiClient CLI using the terminal to the VPN server that is hosted on a windows server and it's working perfectly. But ...
3
votes
1answer
90 views

Filesystem still showing the old value after reduction in linux, however showing the correct value in LVM

We have a task to resize the filesystem from 8T to 7T which is in LVM. We have given resize2fs command, while the command is still being run we have got the error "Write failed: Connection reset by ...
0
votes
1answer
30 views

Simple BASH script treating flags as commands

I've been trying to write a really simple bash script as follows: #!/bin/bash gcc –Werror –std=c99 client.c –o client gcc –Werror –std=c99 server.c –o server Each of the commands works fine when ...
-3
votes
0answers
19 views

how can I address the root cause of the high “in” and “cs” at the vmstat output

root@wis-virtual-machine:~# vmstat 1 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st ...
0
votes
1answer
12 views

why rc and rc.x are linked

May I know why we have them linked ? is there any reason behind this ? lrwxrwxrwx. 1 root root 7 Aug 7 2015 rc -> rc.d/rc lrwxrwxrwx. 1 root root 15 Aug 7 2015 rc.sysinit -> ...
0
votes
0answers
18 views

stop dm-cache from caching temporarily

I am want to benchmark my system(Centos) IOPS with dm-cache and without dm-cache.I have taken benchmark result for my system dm-cache .Now I want dm-cache to stop temporary so that I can take ...
2
votes
1answer
19 views

How can I find out the ownership of a tap interface?

I can set up a persistent Linux tap interface and make it owned by a specific user and group with one of these: tunctl -u someuser -g somegroup -t example.tap ip tuntap add dev example.tap mode tap ...