Quantcast
Channel: Unix/Linux
Browsing latest articles
Browse All 14 View Live

To send mail from a Unix/Linux shell script

Wiki Terms: Unix/Linux echo "This is mail body" | mail -s "This is subject" mail_ID@somedomain.com

View Article



search content of files using grep and find

Wiki Terms: Unix/LinuxOn solaris boxes I need to use this command to search through the content of files recursively through all directories: find . -exec grep -l "text to find"'{}' \; on linux this...

View Article

Create a virtual host on ubuntu

Wiki Terms: ApacheUnix/Linuxcreate a file: /etc/apache2/sites-available/cf_facultyportal.babsondrupal.org where the filename is the name of the url that will hit the webserver.Put this in the file...

View Article

Run a query from php / ubuntu on sql server

Wiki Terms: PHPSql ServerUnix/Linux(note to run stored procs on sql server from php/ubuntu there's another tech note I've...

View Article

To install lamp with PDO on Ubuntu (worked on rackspace server)

Wiki Terms: Drupal 7Unix/LinuxTo install lamp with PDO on Ubuntu (worked on rackspace server)http://churchit.com/php-pdo-errors-while-installing-ubuntu-10-4-php-5-3-... (here's a linkback for this guy...

View Article


Setup Ubuntu with SSL (for Drupal)

Wiki Terms: ApacheUnix/LinuxI have this working, SSL is setup for Drupal 71.) At the bottom of apache2.conf file in /etc/apache2 #setup name based virtual hosting instead of IP based (JLB)...

View Article

Managing multiple ssh keys

Wiki Terms: Unix/Linuxlinkback: http://www.karan.org/blog/index.php/2009/08/25/multiple-ssh-private-keys ssh-keygen -t rsa -f ~/.ssh/id_rsa.acquia -C "Key for my Acquia accounts" touch ~/.ssh/config...

View Article

Basic Linux Hardware analysis Notes:

Wiki Terms: Unix/LinuxHow many php procs are running:  ps -A | grep php-cgi | grep -v grep | wc -l A box with a 1 minute load average of 6.92 should have been below 2 if it had a 2 cpu core. To find...

View Article


Tip of the Day: have your mac command prompt tell you which git branch you're in

Wiki Terms: MacUnix/LinuxA colleague just shared this tip with me to have my Mac command prompt tell me which git branch I'm in:  Put the following in your .bash_profile function parse_git_branch () {...

View Article


Change the default group for a user in Linux

Wiki Terms: Unix/Linuxusermod -g group userThis will also allow them to use chgrp to change the group ownership of any files.

View Article

Having a service start automatically in debian linux

Wiki Terms: Unix/Linuxupdate-rc.d ssh enableorupdate-rc.d apache2 enableThis will have the ssh service or apache2 service start up on boot up.

View Article

Encrypting VIM files

Wiki Terms: Unix/Linux:set cm=blowfish:X to encrypt a file:set key= to turn off encryption

View Article

Update everything installed via composer

Wiki Terms: DrupalUnix/LinuxUse the command:composer global update

View Article


count the number of lines written by an author in a file

Wiki Terms: Unix/Linuxgit blame droogle.module | grep James | wc -l

View Article
Browsing latest articles
Browse All 14 View Live


Latest Images