• warning: preg_match() expects parameter 2 to be string, array given in /var/www/drupal-6.15/includes/bootstrap.inc on line 777.
  • warning: preg_match() expects parameter 2 to be string, array given in /var/www/drupal-6.15/includes/bootstrap.inc on line 777.

Linux Cheatsheet


General Linux
snmpwalk -v 1 -c public check snmp availability
/usr/sbin/modules-config auto-configure modules.conf

Red Hat / CentOS
chage -d 0 username force user to change password at next login
chage -d 90 username force user to change password in 90 days
yum deplist PACKAGE list dependencies of a package
rpm -e -vv --allmatches --nodeps --noscripts --notriggers PACKAGE remove troublesome package

Debian and Ubuntu
apt-get update updates packages
apt-get distupgrade upgrades distribution
apt-cache search search for a package
apt-get install install for a package
dpkg -l | grep ^ii list installed packages
dpkg -i install package
dpkg -r remove a package
dpkg -L lists files installed by package
apt-get upgrade -S test upgrade, nothing committed

TECH.kulish.com

Technology Junk Drawer
Drupal SEO