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
20 views

Can I see the summed up results of the ping command while it is running? [duplicate]

When I run the ping command it outputs information for each ping and in the end, when I kill the process it outputs some overall statistics --- 192.168.0.1 ping statistics --- 10 packets transmitted, ...
0
votes
1answer
30 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 ...
0
votes
2answers
39 views

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

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
33 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
23 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
19 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
49 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
20 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
1answer
13 views

Linux installation [closed]

I have 100 gb unallocated space in my disk. But during installation, if we choose manual option for disk management, it is showing the entire hdd and my bootable pen drive and not the unallocated ...
0
votes
3answers
30 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
19 views

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

Recently found these lines on my test server: 10.126.84.153:/zebra on /zebra type nfs ...
-3
votes
1answer
19 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
34 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
11 views

Server OS with graphics to run on kvm (postgres + pgadmin, java, teamvier) [closed]

Could you please recommend me a distribution or setup regarding the following: ressource friendly to run virtually on kvm graphic is need for remote administration (teamviewer) good postgres ...
0
votes
1answer
31 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
22 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
30 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
18 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
41 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
0answers
33 views

What Linux should I use for my old XP laptop? [closed]

I recently got an old Windows Vista laptop, and I didn't have the password, so I figured it'd be better to just get a fresh Linux installation on it. I've never used Linux before, but I made bootable ...
0
votes
0answers
7 views

(Linux-)Distribution-specific hacks and workarounds documentation [closed]

Is there a good resource on the internet that mainly deals with differences of how the individual distributions are configured and lists some hints required to administer and program in an ...
0
votes
0answers
14 views

Can't see my phones drive on USB [closed]

I've downloaded Meta Precise (Puppy) Linux iso file and I'm using it with Boot able CD. But now, I can't find the driver of my android phone when it's connected. Not just that. I'm using laptop and ...
0
votes
2answers
32 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
40 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
45 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
28 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
30 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
37 views

XFS or EXT4 which is better [closed]

We are migrating our servers from RHEL 5 to RHEL 7, we are planning to go with XFS file system which is the default one in RHEL 7. Need to decide which one is a better option. Below link says that ...
3
votes
0answers
31 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 ...
0
votes
2answers
45 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
15 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 ...
-1
votes
0answers
32 views

Read and filter mail by subject line through a shell script [closed]

I need to configure a shell script which would periodically check the incoming emails, and looks for an email with a particular subject line. It then needs to download and move the attachment from ...
0
votes
2answers
46 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
35 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. ...
-1
votes
0answers
39 views

Data recovery tools in linux [closed]

I had accidently deleted many important files from my work folder.I tried recovering my important data using photorec,scalpel and testdisk.But no use these didn't work for me.Is there any other tool ...
-1
votes
0answers
21 views

Editing windows system files from linux boot disk [closed]

Could you explain to me why I can't edit Windows system files by just booting from a live OS? What protects the files, and why is it that I can format the drive but can't edit particular segments of ...
0
votes
1answer
29 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
62 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
20 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
51 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
18 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
41 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
55 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 ...
-7
votes
0answers
18 views

how to create domain user [closed]

question Lists in a list item: - Indented four spaces. * indented eight spaces. - Four spaces again. 2. Multiple paragraphs in a list items: It's best to indent the paragraphs ...
0
votes
1answer
26 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
25 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
27 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?