Use pkill -f, which matches the pattern for any part of the command line
pkill -f my_pattern
pkill -f my_pattern
To add a swap-partition instead of swap-file: blkid /dev/sdax (get UUID) mkswap /dev/sdax (format swap partition) swapon -U xxx nano /etc/fstab (edit fstab) UUID=xxx none swap sw 0 0 (enter and save this text to make swap permanant) (then close…
http://www.tecmint.com/20-netstat-commands-for-linux-network-management/
source: http://blog.remibergsma.com/2012/02/28/redirecting-incoming-tcp-connections-with-redir/ Redir redirects tcp connections coming in to a local port to a specified address/port combination like this: The following redirects incoming web requests from 10.10.0.1 to 10.10.10.1: redir –laddr=10.10.0.1 –lport=80 –caddr=10.10.10.1 –cport=80 And here the same for ftp.…
apt-get --just-print upgrade
"Installing modules and themes requires FTP access to your server" source: http://allabouttodd.com/ecommerce/drupal-7-update-manager-unable-connect-ftp chown -R www-data {your_drupal_root_directory_name_here}
cd /var/www/domain.com/web/ drush dl drupal --drupal-project-rename=new-directory-name chown www-data:www-data new-directory-name -R chmod 755 new-directory-name -R chmod 777 new-directory-name/sites/default -R cp new-directory-name/sites/default/default-settings.php new-directory-name/sites/default/settings.php drush site-install standard --db-url=mysql://user:pass@db.host.net/db_name --site-name=your_site_name --account-name=admin --account-pass=your_password --OR-- start the installation from the browser http://domain.com/new-directory-name/ after the installation is…
https://drupal.org/node/244924 ideal permissions: chmod 644 * -R chmod +X * -R chmod 775 tmp chmod 775 sites/default/files -R
Rule name: checkYear Column: value PHP code: if ($this->value <= intval(Date('Y'))) { $this->set_error(); } Custom error message: The accepted value for year must be .... see example: http://www.youtube.com/watch?v=OeHdcBFk2Os at 47:30
check what version the site is at: drush status Go to http://drupal.org/node/3060/release, filter by the version of Drupal core you are using and see how many versions behind your site is. drush pm-update drupal
for i = 1 to 24 do (meditMaterials[i] = Standardmaterial ())
[apt-get upgrade] warning: The following packages have been kept back: linux-headers-generic-lts-quantal linux-headers-virtual linux-image-generic-lts-quantal linux-image-virtual linux-virtual To fix: sudo apt-get install linux-generic
uname -a # for all info regarding kernel version, uname -r # for exact kernel version cat /proc/version # detail about for the kernel image version lsb_release -a # for all information related to ubuntu version, lsb_release -r # for…
Open the command prompt and run telnet. Connect to <Router_LAN_IP> e.g. 192.168.1.1 so in the command prompt, this would look like: telnet 192.168.1.1 When asked for the username, enter root (even if you changed username in web interface) When asked for…
Using a command line: Open an elevated command-line window. At the command prompt, type: net stop WAS type Y and then press ENTER to stop W3SVC as well. To start the web server, type net start W3SVC and press ENTER…
https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-12-04