1
vote
1answer
9 views

Why does BASH process substitution not work with some commands?

On occasion process substitution will not work as expected. Here is an example: Input: gcc <(echo 'int main(){return 0;}') Output: /dev/fd/63: file not recognized: Illegal seek collect2: ...
1
vote
0answers
4 views

How to create a deterministic tar.gz using git-archive?

Creating a git repository for testing. ~ $ mkdir somefolder ~ $ cd somefolder/ ~/somefolder $ git init Initialized empty Git repository in /home/user/somefolder/.git/ ~/somefolder $ echo test > ...
0
votes
0answers
4 views

ols 5/rhel 5 can't establish secure connection to server after POODLE patch

My workplace recently patched one of our servers to address the POODLE vulnerability. Since then older Oracle Linux 5 clients (based on RHEL 5) can no longer connect to the server with any ...
0
votes
1answer
15 views

Why distros don't have a unique version which continously provide updates? [on hold]

I don't see the point why distros, instead of building new versions, don't have a unique version, which continously provide upgrades for the linux kernel, desktop environment, software packages, etc. ...
1
vote
0answers
7 views

CentOS 7 cpupower not setting the CPU's to maximum

On my machine, i have power savings disable on the BIOS. When I run Ubuntu on this machine, the CPU's are running maximum at 2100 MHz. However, when I'm running CentOS 7, even with the scaling ...
2
votes
3answers
32 views

Where does `hostname` store the hostname that I've set?

This is quite puzzling. Does anyone know where the hostname command stores and reads hostname from? I thought it was /etc/hostname but there is no such file on this Linux system that I'm using. I ...
0
votes
0answers
11 views

Convert XML to CSV using the command line [duplicate]

How can i do this? Heres an example: (no real data) <text> <Caption>Hello</Caption> <Comment>Hello-Again</Comment> ...
0
votes
0answers
9 views

CentOS 7 and howto extend my current WIFI network

I am running CentOS 7 and I have both a wired cable and a WIFI on my box. The WIFI on my CentOS box I would really like to use to extend my current WIFI network if this is possible. My current network ...
0
votes
0answers
6 views

Is there a solution for scanning webserver files for malicious code?

I have seen several times people move code into web servers now that had malicious code embedded into their HTML, php and other documents. These then get served up from the new server until they are ...
0
votes
1answer
12 views

archive a directory and its content to a zip archive

I ran zip book my/ it created a zip file book.zip, but with only my/ as its content, and nothing under its my/, but there is content under ./my/. I wonder how I can zip it correctly?
0
votes
2answers
28 views

print the /etc/shadow file in the console

How do I change the permissions of an executable file to access the /etc/shadow file? So far I have the following bash script: #!/bin/bash gcc print.c -o print chmod +s print ./print exit 0 and ...
0
votes
0answers
15 views

c++ executable is complaining about some libraries missing?

I have my C++ executable which if I am running on machineA it works fine but if I run the same executable on machineB (which is a new machine I got) it fails and prints out some error messages - ...
0
votes
0answers
4 views

Ink level checking for epson on Centos

I have a SX-130 epson printer , i can't get to see the ink level , i tried logging to the printer properties but it says that it doesn't report any ink level infos , is there any way that makes me ...
0
votes
0answers
3 views

Replacement queue now that batch doesn't accept input files?

Background I work at a research institute, and have for a long time used the batch command to submit job queues to our machines. However, a recent update changed the batch command to be ...
1
vote
0answers
9 views

Xclip not copying linebreaks?

$ cat test a b xclip test Pasting the content somewhere will result in a b Any idea why? EDIT: I'm running archlinux (64bit) and I paste the code via mouse wheel click (though I also tried ...
0
votes
0answers
15 views

Specify a file with special characters in its name [duplicate]

$ ls -ltr total 8708 -rwxrwx--- 1 root plugdev 8293 Oct 17 02:39 --layout $ rm *ayout rm: unrecognized option '--layout' $ rm "*ayout" rm: cannot remove `*ayout': No such file or directory ...
0
votes
1answer
18 views

Can we preserve the timestamps of files when extracting .zip archive?

I want to unzip a .zip archive, and preserve the timestamps of the files extracted. But this command doesn't preserve the timestamps: unzip my.zip I saw this post in 2011, and wonder if there is a ...
0
votes
0answers
7 views

Stopping postfix - are messages queued when postfix is idle?

I am running some scans on my server tonight and would like to disable email notifications since there is a chance for a LOT of them to be sent out. I am planning to issue service postfix stop ...
6
votes
1answer
118 views

Does bash return anything when it runs a command?

I was found the guide to test if there is a bug in Bash. Namely, when x='() { :;}; echo VULNERABLE' bash -c x does not return anything, it is vulnerable. But are there cases like in C that bash ...
0
votes
0answers
11 views

“sticky” escape key in tmux

How would I go about configuring my tmux such that when I press my escape character, it stays in escape-mode until I press it again or press Esc? I.e. so that I don't have to press it repeatedly when ...
0
votes
0answers
2 views

How to test remote loop back in bluetooth

I have small in-house device running on linux platform with bluez libraries. I have created a sco connection with Jaber Easygo device and everything works as expected. I mean I can play music on my ...
0
votes
0answers
18 views

keyboard shortcut for inserting text

how to set a keyboard combination for inserting special string in current window at current position? for example, when I'm on Firefox address bar, or Chrome address bar, and press Alt+Ctrl+N it ...
0
votes
1answer
20 views

Back-up script via bash — issues with file paths?

I'm trying to run a back-up bash script in via Plesk scheduled tasks on a CentOS GoDaddy Managed Dedicated Server. I'm having a frustrating amount of trouble with this (made worse by the fact that it ...
0
votes
0answers
3 views

Aix 7.1 and nfs version4 showmount

Configure nfs4 on aix ok i did all # chnfsdom #return correct domain # chnfs -r /export # chnfs -p /export # configured and shared pseudo root # cat etc/exports /export -nfsroot /var/pubblica ...
0
votes
0answers
7 views

How can I get my Apache server to point to the correct location?

I am trying to point my apache server to use various packages I have in my Eclipse workspace which is not located in the default Apache server directory. So far, no luck, all I get is Not Found error. ...
1
vote
0answers
15 views

How can I manually reset RX / TX counters in ifconfig output without impacting data delivery?

CentOS 5.9 I'd like to reset the RX/TX counters in ifconfig output for an interface. My understanding is that these counters get reset during a reboot but I'd like to avoid rebooting. Is there ...
0
votes
0answers
13 views

What tools can show me the CPU usage that doesn't appear in top/sar?

I have a virtual machine that's using ip_tables to set up some connection forwarding. According to top, sar and /proc/stat, I'm > 99% idle. However, perf says I'm only about 72% idle, with the rest ...
0
votes
2answers
33 views

What are the meanings of different Unix commands? [on hold]

I am running Ubuntu 14.04 on my machine. I am new to Linux and feeling lost when I see different command line commands (or what exactly are they called?) like sudo, apt-get, mkdir, -R, -n etc. while ...
-2
votes
0answers
16 views

Need Script to Find Duplicate PID in a process [on hold]

I need a Shell script to find the duplicate pids in the process. Please advise me Thanks, Srikanth.V
0
votes
1answer
8 views

communicate with rsync daemon without sockets

According to the manpage, rsync --daemon will either: try to communicate using the rsync protocol using stdin/out, if it detects that the stdin/out are a socket, open a TCP socket for listening and ...
0
votes
1answer
13 views

How to Install Debian with GUI

I need to install Debian wheezy. I don't need to install all the packages. I tried netinst image, but I have no internet connection in my laptop to download a GUI. Is there a CD/DVD image of Debian ...
1
vote
1answer
28 views

How to wrap the comma delimited values to the next line without disturbing the other fields using awk or ksh

I have the following input, in which some of the values are comma delimited. I would like decouple each value and print it in the new line. I tried many ways in awk, but no luck. If I have three ...
1
vote
0answers
12 views

mount.cifs error(2): No such file or directory when using a prefixpath

I tried this command: mount -t cifs //server/share/directory /mnt/directory -o credentials=/path/to/cifs.credentials --verbose Response is: mount.cifs kernel mount options: ip=<IP of ...
0
votes
1answer
23 views

Using find -exec and having trouble with redirecting standard error

I have an individual.sh script that pipes standard error to a grep command, like this: FOUND=$(tesseract "$i" out -psm 0 |& grep -ci 'Orientation in degrees: [^0]') If I run the script like ...
1
vote
3answers
131 views

How do I use the “if” command for multiple conditions?

How do I do this? if [ -f town-*.swf ] then mkdir towns fi This checks if town-*.swf exists, but I also need it to look for city-*.swf among others, so I need something like this: if [ -f ...
0
votes
0answers
8 views

can't get 16:9 ratio on kvm, only 16:10 or 4:3

I am running a Windows 7 KVM on CentOS 7. The Windows 7 guest resolutions are all 4:3 or 16:10 My monitor is 1920x1080, but KVM/Spice/Whatever is only offering me 1920x1200. I don't know what part ...
0
votes
1answer
26 views

Why do web create separate user for each software?

This is a very noob question, but whenever I am installing something, like ghost, nginx, mysqld I see commands such as, useradd ghost useradd mysql What is the reason for this? I can guess this ...
0
votes
0answers
11 views

SNMP Timeout: No Response from 127.0.0.1

I recently cloned a centos 6.5 virtual machine from one location to another. In the process, the IP and netmask of the system changed. For awhile after the clone everything seemed to work fine, and ...
6
votes
1answer
83 views

Exclude one pattern from glob match

I have several files with the same base filename. I'd like to remove all but one foo.org #keep foo.tex #delete foo.fls #delete foo.bib #delete etc If I didn't need to keep one, I know I could use ...
0
votes
0answers
21 views

VirtualHost configuration not working

I followed this article, mixed with some other research, in an effort to get VirtualHost configuration up and running on my Mac. However, for some reason when I navigate to my local.site.rocks URL it ...
2
votes
1answer
20 views

Confused about piping commands from find to commandX?

I have a script, run.sh, that looks like this: #!/bin/bash FILES=$(find corpus/ -type f) for i in $FILES do ./individual.sh $i done It runs without problem. I want to do away with the run ...
0
votes
0answers
22 views

Are there scenarios where a space is required after a redirection symbol? [duplicate]

I was recently reviewing some old cron tasks and noticed that I had entries ending with >/dev/null 2>&1 instead of > /dev/null 2>&1 (note the space). That got me to thinking - ...
0
votes
1answer
12 views

Fedora does not load some sites in home network

Since I switched from Windows 8.1 to Fedora 20 (my first time Linux experience) I have problems in my home network. When I surf from the office with the notebook, every site loads fine. As soon as ...
0
votes
0answers
12 views

Kali Linux dual boot installation

I´m trying to install Kali Linux next to Windows 7 (dualboot). I made a bootable USB with Rufus software. I restart the PC, press F12, choose USB boot priority....then I see installation menu....there ...
0
votes
0answers
8 views

add recent files in debian Dash using nautilus folder [on hold]

could anyone tell how to integrate nautilus and Debian dash.I could see recent files in nautilus but not in Debian dash.Is there anyway to integrate or whether it shows only recent applications.
2
votes
1answer
22 views

Move thousands of jpg files into daily directories based on the files EXIF creation date

I have thousands of jpg's and mp4's that need sorting into a directory structure which name is based on the date the picture was created. Preferably from the EXIF date as the files modified date might ...
1
vote
1answer
16 views

Shutting down X via terminal

I found that the whole X won't react to anything but I was able to log to terminal by ctrl+alt+F1. Can I reboot X from the command line without rebooting the whole computer?
0
votes
0answers
26 views

Find the total disk usage not including files containing a string

I am trying to get the disk usage of the owncloud directory except not including the files and dirs containing the string nobackup in the name/dir. This is my command so far : find . -type f -not ...
4
votes
2answers
118 views

Non-graphical boot with systemd

I want to boot to console instead of a GUI using systemd. How can I do that?
0
votes
0answers
10 views

Fedora 20 Gnome 3 DE upper bar

I am a new Fedora 20 64-bit user and I used Gnome Tweak Tool to customize the appearance of the UI. However, I was not able to get the active application from the top bar. I am providing a screenshot ...

15 30 50 per page