# Today's Goal To practice navigating the command line and learn a few more commands to manipulate files. --- class: middle, center # Measure by Measure [Watch Yo-Yo Ma Tiny Desk Concert](https://www.youtube.com/watch?v=3uiUHvET_jg) --- # Agenda: 1. [Command Line Review](#review) 2. [Manipulating Files](#manipulate) 3. [Redirection](#redirection) 4. [Editing and your Environment](#editing) --- name: review # Files and Folders - Files are buckets of bits stored somewhere on your machine - Folders are directories, special files pointing at regular files - Names are paths, or locations - Absolute paths are the steps to get to a file from the root directory - Relative paths are the steps to get to a file from your current directory --- # Basic Commands - navigate the filesystem: .eight[pwd, ls, cd] - make files/folders: .eight[touch, mkdir] - remove files/folders: .eight[rm, rmdir] - duplicate or rename files: .eight[cp, mv] - examine files: .eight[cat, less] - get help: .eight[man] --- # Basic Commands - enter after a prompt: .eight[$] - then tweak with options/flags - then provide arguments --- # Shell Shortcuts - working directory: .eight[.] - parent directory: .eight[..] - home directory: .eight[~] - previous directory: .eight[-] --- class: middle, center If you need more review: # [A NON-NERD'S GUIDE TO THE COMMAND LINE](http://commandline.guide/#/) --- class: middle, center name: manipulate # [A FLEDGLING NERD'S GUIDE TO THE COMMAND LINE](http://commandline.guide/#/) --- name: redirection # Lab On codecademy.com # [Learn the Command Line: Redirection](https://www.codecademy.com/courses/learn-the-command-line/lessons/redirection) --- name: environment # Lab On codecademy.com # [Learn the Command Line: Environment](https://www.codecademy.com/courses/learn-the-command-line/lessons/environment) --- class: middle, center # The End!