Admin

Author's details

Date registered: May 19, 2008
URL: http://www.technology-leadership.com

Latest posts

  1. Fix yum hang on CentOS — November 24, 2016
  2. PowerShell Cheat Sheet — September 16, 2016
  3. du without the du command — July 26, 2016
  4. Unix Cheat Sheet — October 21, 2015
  5. Start in Amazon’s Cloud with TLC — February 17, 2014

Author's posts listings

Nov 24

Fix yum hang on CentOS

ls -l /var/lib/rpm rm -f /var/lib/rpm/__db* rpm -vv –rebuilddb rm /var/run/yum.pid yum yum clean all OPTIONAL: yum update

Sep 16

PowerShell Cheat Sheet

LINUX                          PowerShell alias                             alias alias cmd=’new alias’     Set-Alias ‘new alias’ cmd cat a >> b                   cat a |sc b clear     …

Continue reading »

Jul 26

du without the du command

Print the number of bytes of storage capacity the current directory recursively uses:

ls -lR $1 | grep -v ^d | awk ‘{total+=$5;} END {print total;}’

Oct 21

Unix Cheat Sheet

Turn off color in vi 

:syntax off

 

Line count output (rate) per 1 second (e.g. to determine # of apache web requests at 1 second intervals)

tail -f access.log|perl -e ‘while (<>) {$l++;if (time > $e) {$e=time;print “$l\n”;$l=0}}’

 

Continue reading »

Feb 17

Start in Amazon’s Cloud with TLC

Amazon’s Elastic Cloud Computing (EC2) services are the next major technology wave invigorating and re-inventing American businesses big and small, and for good reason. Learn more about the rationale for picking AWS, implementing Chef Server, and why account creation and management by TLC can be the easiest and quickest way to get started in the Cloud.

Older posts «