Skip to content

Instantly share code, notes, and snippets.

View pauldonnelly's full-sized avatar

Paul Donnelly pauldonnelly

View GitHub Profile
@pauldonnelly
pauldonnelly / Get Disk Space
Created October 24, 2014 11:26
Get Disk Space
free -m
Or
df -h
@pauldonnelly
pauldonnelly / Adding write permissions for entire group
Created October 24, 2014 11:26
Adding write permissions for entire group
sudo chmod g+w -R /srv/www/SITENAME/
@pauldonnelly
pauldonnelly / Remove Everything Inside a Folder
Created October 24, 2014 11:25
Remove Everything Inside a Folder
rm -rf folder/*
OR
rm -rf folder/
@pauldonnelly
pauldonnelly / Create A Tar File
Created October 24, 2014 11:24
Create A Tar File
tar cf backup030214_0936.tar ../public_html --exclude=./var/cache --exclude=./var/sessions
@pauldonnelly
pauldonnelly / Move files up one level
Created October 24, 2014 11:24
Move files up one level
mv magento/* ./
@pauldonnelly
pauldonnelly / Extract Tar File
Created October 24, 2014 11:24
Extract Tar File
tar -xvf magento-1.7.0.0.tar.gz
@pauldonnelly
pauldonnelly / Find path to a file
Created October 24, 2014 11:24
Find path to a file
php -i | grep php.ini
@pauldonnelly
pauldonnelly / Add Write Permissions to Group
Created October 24, 2014 11:23
Add Write Permissions to Group
chmod -R g+w plugins/
@pauldonnelly
pauldonnelly / Change File Permissions
Created October 24, 2014 11:23
Change File Permissions
chmod -c ugo+rxw RELEASE_NOTES.txt
http://www.ahinc.com/linux101/permission.htm
@pauldonnelly
pauldonnelly / Change Owner and Group
Created October 24, 2014 11:22
Change Owner and Group
sudo chown pdonnelly:www-data -R public_html