Perl commands

simple one liner password generator. thanks to http://sysadminsjourney.com perl -le ‘print map { (a..z,A..Z,0..9)[rand 62] } 0..pop’ 8

VI commands

search and replace a path with a variable we want to change the following text /usr/local/dsview/webapp/output/torpb01a to $dsview/torpb01a use.. :%s/\/usr\/local\/dsview\/webapp\/output\//$dsview\//

Linux commands

These are commands I find useful.. get a list of all installed updates rpm -qa –qf ‘%{INSTALLTIME} %-40{NAME} %{INSTALLTIME:date}\n’ | sort -n get all CVE’s from all packages for pkg …

Configure command for Moodle 2.0

./configure –with-apxs2=/usr/sbin/apxs –with-config-file-path=/etc/php –with-gd –with-zlib –enable-sockets –with-curl –with-xmlrpc –with-openssl –enable-mbstring