1
vote
1answer
64 views

create a specific directory within each directory in bash

We're running an application on RHEL and it is trying to write a mysterious log file to a directory that doesn't exist. I'm trying to determine a find command that could go through each sub-directory ...
1
vote
2answers
2k views

How to programmatically change php.ini values via shell scripts?

Basically, I'm trying to setup a shell script that lets me autoconfigure some parameters on my new servers In particular, I'd like to set, in php.ini error_log= /var/log/php_errors.log ...
4
votes
3answers
438 views

Bash wonkyness on Ubuntu versus RHEL

Fellow faulters, I'm playing around with a one liner that I've developed on a RHEL 5.4 box and I have it working perfectly: TOTAL_RAM=`free | grep Mem: | awk '{ print $2 }'`; \ ps axo rss,comm,pid ...
5
votes
2answers
593 views

What does this Linux command do?

I have by a mistake written this command on a CentOS server xargs rpm -e|rpm -qa|grep test11 where I meant rpm -qa|grep test11|xargs rpm -e which should uninstall all packages matching "test11". ...