Skip to content

Instantly share code, notes, and snippets.

@iSkore
Last active November 3, 2016 11:27
Show Gist options
  • Save iSkore/bbf85e0c46cf77a7848e to your computer and use it in GitHub Desktop.
Save iSkore/bbf85e0c46cf77a7848e to your computer and use it in GitHub Desktop.
TERMINAL CHEET SHEET

TERMINAL CHEET SHEET

SSH: ssh -i ~/.ssh/key.pem [email protected]

Move: mv [move_file] [file_destination]

Copy All Files in Dir: cp -r [/dir/etc/*] [destination/]

Delete: rm -Rf [filename & dir]

Create Dir: mkdir -p [parentdir/childdir/etc]

Delete Dir: rm -rf [dir]

Install: yum install [package]

Tar-Up: tar -zcvf [name].tar.gz [folder to compress]

Un-Tar: tar -zxvf [file].tar

Download: scp -r [username]@[server]:[dir/etc] [local_dir]

Upload: scp [local_file] [username]@[server]:[dir/etc]

Upload w/ Key: scp -i [key] [local_file] [username]@[server]:[dir/etc]



Clear cache: drush cc all

If drupal broke: drush sql-query "DELETE FROM cache”

Download module: drush dl module1 module2

Update module: drush up module_name

Update drupal: drush up drupal

Run update.php: drush updb

Run cron: drush cron

Run super-cron: drush cron-run

Drop all db tables: drush sql-drop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment