Skip to content

SSH and Navigation

SSH

SSH is the primary way you get into a Linux server without utilizing a GUI or another protocol. Obviously there's many ways to do this but SSH is pretty common.

Syntax

ssh username@host

Navigating around a Linux server via bash takes a bit to get used to, but once you get used to basic syntax it's not too bad to accomplish what you want to do.

Examples

  • cd: Change directory
  • pwd: Prints the path to your current directory
  • ls: Lists the files and directories in your current location
  • mkdir: Make a new directory
  • touch: Create a new blank file
  • nano or vim: Edit a file
  • cat: List contents of a file
  • chown: Change ownership of a file
  • chmod: Change permissions of a file