Prévia do material em texto
UNIX & GIT STUDY GUIDE A practical, intermediate-level study guide covering essential Unix/Linux and Git commands for developers. PART 1 – UNIX / LINUX FUNDAMENTALS 1. Terminal Basics The terminal (or shell) is a command-line interface used to interact with the operating system. Common shells: Bash, Zsh, Fish. Command syntax: command [options] [arguments] Absolute vs. relative paths: absolute starts from '/', relative starts from current directory. Home directory shortcut: ~ 2. Navigation and Directories pwd – print working directory ls – list directory contents cd – change directory mkdir – create new directory rmdir – remove empty directory find – search for files and directories which – locate a command tree – display directory structure 3. File Manipulation touch – create an empty file cp – copy files or directories mv – move or rename files rm – remove files cat – view file contents less – view file with scrolling Redirections: > overwrite | >> append |