Skip to content

Instantly share code, notes, and snippets.

@luisjunco
Created January 24, 2026 15:41
Show Gist options
  • Select an option

  • Save luisjunco/1e55df896eb6581a34682dde82de1638 to your computer and use it in GitHub Desktop.

Select an option

Save luisjunco/1e55df896eb6581a34682dde82de1638 to your computer and use it in GitHub Desktop.

Unix Command Line Cheatsheet

Navigation

  • pwd - Print working directory (show current location)
  • ls - List directory contents
  • ls -la - List all files (including hidden) with details
  • cd <directory> - Change directory
  • cd .. - Go up one level
  • cd ~ - Go to home directory

File & Directory Operations

  • mkdir <dirname> - Create a new directory
  • touch <filename> - Create an empty file

Editor

  • code . -r - Open current directory in VS Code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment