Skip to content

Instantly share code, notes, and snippets.

@ToughCrab24
Forked from anonymous/README.md
Last active September 1, 2017 18:57
Show Gist options
  • Save ToughCrab24/bcca4c12743d592740208b88b99ea11c to your computer and use it in GitHub Desktop.
Save ToughCrab24/bcca4c12743d592740208b88b99ea11c to your computer and use it in GitHub Desktop.

Handy terminal commands

Basic Terminal Commands

Navigation

  • pwd shows which folder you are currently in

  • cd change directory(folder)

    • cd ~ goes to the home folder i.e /home/shane on mac /Users/shane
  • ls list the contents of the current folder

Creating directories and files

  • mkdir wordpress will make a directory called wordpress in your current directory
  • rmdir wordpress remove a directory
  • touch nameOfTheFile.txt create a file
  • rm nameOfTheFile.txt delete a file

DNS

A record CNAME

SSL

CDN

ssh

ssh root@<domain-or-ip-address>

MySQL

SFTP (FileZilla)

Wordpress install

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