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
2answers
43 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
27 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
33 views

XFS or EXT4 which is better [on hold]

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
43 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
14 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 [on hold]

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
34 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
37 views

Data recovery tools in linux [on hold]

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 [on hold]

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
28 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
59 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
39 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
25 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?
1
vote
2answers
17 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
46 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
15 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
18 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
85 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
27 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
14 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
12 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
13 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 ...
1
vote
1answer
30 views

/bin/bash No such file or directory Connection closed [closed]

I try to connect to a server using ssh (authentification is fine). I got this: /bin/bash: No such file or directory Connection to xxx closed. Before, everything is working fine, Until I have ...
1
vote
0answers
10 views

Tmpfs with overflow on disk?

I'm looking for a way to have a tmpfs-like file system that can be unlimited in size, but will use a specified amount of RAM after which the "oversize" data will be stored on another disk-backed ...
0
votes
0answers
13 views

searching through command line history [duplicate]

I use reverse search when looking for a particular command on the command line by pressing CTRL + R. That returns the first command it finds in reverse order. To go back to the next further command I ...
0
votes
0answers
14 views

Script to hard-link copy new files in a source directory? [duplicate]

I am using Emby's media auto-organize feature. This features takes a watch folder and moves the media to the appropriate directory. It's not perfect so sometimes it moves the media to the wrong ...
0
votes
3answers
20 views

Is there a script to update (almost) any Linux distribution? [closed]

I know of apt-get update and yum update, but I'm wondering what others there are to update other Linux OSes. Could all these be combined into a script which could be run on any Linux distro?
0
votes
2answers
12 views

Shared, read-write, photo directory tree, for normal users

I.e. what I want is the Linux equivalent of Windows Public/Pictures. The problem is that Linux file manager Nautilus doesn't apply default ACLs when you move a file into a folder/directory (nor good ...
-1
votes
1answer
39 views

Principles of file indexing in Linux [closed]

I have read a lot about indexing in Mysql and I know that Linux has a great utility locate to find files. Maybe Linux has the same principle to do indexing as Mysql have provided. But I think the ...
-3
votes
0answers
43 views

How to write a script that checks for files in directories? [closed]

I am trying to write a shell script that checks files in few directories. ex:like AB/BC/CD/DE and AB/BC/CD/EF I need to check the files with previous date and need to read the file name,first line ...
1
vote
1answer
38 views

Aligning Hexdump Data in a Specific format?

I am reading serial data from my Raspberry Pi and all I am doing is a Hexdump I have to find the header and then go to the 2nd byte of data from header for ex: ed 13 74, I have to take the value 4 , ...
2
votes
1answer
21 views

FFMpeg : Converting a video file to a gif with multiple images from video

I am working on a project in which the user can upload videos. Is there any way with FFmpeg I can take some images from the video and create a GIF out of it? As the project is in Java, I have a way ...
1
vote
2answers
33 views

How to determine if a custom kernel improves system performance?

In addition to measuring boot time and kernel size before and after re-compilation, what are some other useful metrics for determining if a custom-compiled kernel improves system performance? I know ...
0
votes
2answers
30 views

Centralized system information

Does anyone know of a software capable of keeping track of Linux/UNIX systems configurations centralized on a server? Possibly with a web GUI and history capabilities? I am looking for something that ...
0
votes
1answer
47 views

Touchpad and Sound card undetected Debian 8 - asus R547U

I just installed Debian 8 on my new machine (an ASUS laptop i5/SSD 256Go/...), but I find myself stuck with two main problems. First, my touchpad is not recognized by Debian. To be more precise, I ...
1
vote
1answer
23 views

Debian : Setting path for Node with root accessible globally

I have downloaded NodeJS setup and have it inside at /home/deploy/nodejs. I am trying to set its path, but it's not working out. I am logged in as root, and I would like to access nodejs and npm ...
-4
votes
0answers
28 views

Need Help in Shell Scripting [closed]

Want to create shell script At 00:00 AM I have GlobalFile.csv From GlobalFile.csv I want to find out repeated entries from column one and those are repeated I will add them to Escalate.csv and non ...