Command Line

Post

Creating a Debian Linux bootable installation USB drive

This method of creating a Debian Linux bootable installation USB drive uses the command dd to copy the ISO image to an empty USB stick. Make sure the USB stick is empty and is big enough to take the Debian installation image you have selected, some of them a pretty big nowadays. Insert the USB […]


Post

Dropbox sync folder outside dropbox folder on linux debian

If you have a folder/directory that resides outside of the Dropbox folder you can still sync it to Dropbox. You need to create a symlink between the folders. To do this: 1 – Go to the dropbox directory you want to have the external directory linked to cd /path/to/dropbox/directory 2 – Create the symlink to […]


Post

Linux rm command for removing files in directories

Delete files from a directory: rm [options..] [file|directory] -f Remove all files in a directory without prompting the user. -i Interactive. With this option, rm prompts for confirmation before removing any files. -r (or) -R Recursively remove directories and subdirectories in the argument list. The directory will be emptied of files and removed. The user […]


Post

Upgrade Google Chrome in Linux Debian

How to upgrade just Google Chrome in Linux (Debian) To upgrade Google Chrome to the latest stable version: sudo apt-get –only-upgrade install google-chrome-stable Might need to kill all instances of Chrome, to kill all instances of Chrome: sudo pkill -15 google-chrome


Post

Setting WordPress File/Folder Permissions in Linux Terminal

To set the WordPress file and folder permissions in Linux terminal: Go to the WordPress directory: cd /path/to/wordpress/ Change all directories to 755: sudo find . -type d -exec chmod 0755 {} \; Change all files to 644: sudo find . -type f -exec chmod 0644 {} \;


Post

Apache 2 Basic Terminal Commands

Debian & Apache 2 Start/Stop/Status sudo service apache2 start sudo service apache2 stop sudo service apache2 status New vhost sites sudo a2ensite local.newsite.com or sudo a2ensite local.newsite.com.conf add a new local site – afterwards run sudo service apache2 reload sudo service apache2 reload reload apache CentOS Start/Stop/Status sudo /etc/init.d/httpd start sudo /etc/init.d/httpd stop sudo /etc/init.d/httpd restart sudo /etc/init.d/httpd status