Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

πŸ€– Artificial Intelligence
☁️ Cloud and Infrastructure
πŸ’Ύ Data and Databases
πŸ’Ό Professional Skills
🎯 Programming and Development
πŸ”’ Security and Networking
πŸ“š Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
Β© 2026 CheatGridβ„’. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Command Line Fundamentals Cheat Sheet

Command Line Fundamentals Cheat Sheet

Back to Operating Systems and CLI
Updated 2026-05-25
Next Topic: Cron and systemd Timers for Scheduling Cheat Sheet

The command line (also known as shell, terminal, or CLI) is a text-based interface where users interact with their operating system by typing commands. Originating from Unix in the 1970s, it remains the most efficient way to automate tasks, manage systems, and perform complex operations that would be cumbersome with graphical interfaces. While graphical UIs are intuitive for beginners, the command line offers unmatched power through composability β€” the ability to chain simple commands into sophisticated workflows using pipes and redirection. Mastering command line fundamentals means understanding not just individual commands, but how they communicate through streams (stdin, stdout, stderr), enabling you to build pipelines where each tool does one thing well and passes its output to the next.

What This Cheat Sheet Covers

This topic spans 26 focused tables and 239 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Directory NavigationTable 2: File OperationsTable 3: Viewing File ContentsTable 4: Wildcards and GlobbingTable 5: Redirection OperatorsTable 6: Pipes and Command ChainingTable 7: Text ProcessingTable 8: File SearchingTable 9: File PermissionsTable 10: Process ManagementTable 11: Environment VariablesTable 12: Special VariablesTable 13: Command Substitution and ExpansionTable 14: Quoting and EscapingTable 15: ConditionalsTable 16: LoopsTable 17: Networking CommandsTable 18: Archiving and CompressionTable 19: Command History and ShortcutsTable 20: Subshells and Command GroupingTable 21: Arrays (Bash 4.0+)Table 22: Input and Output BuiltinsTable 23: Shell Script Safety OptionsTable 24: Signal HandlingTable 25: Disk and System MonitoringTable 26: Declaring and Typing Variables

Table 1: Directory Navigation

Navigating the filesystem fluently is the first skill any CLI user must internalize. pwd, cd, and ls form the absolute core; pushd/popd add a directory stack so you can jump between multiple locations without retyping paths β€” essential in long sessions involving many directories.

CommandExampleDescription
cd
cd /var/log
β€’ Change directory
β€’ ~ = home, - = previous dir, .. = parent
ls
ls -lah
β€’ List directory contents
β€’ -l long format, -a hidden files, -h human-readable sizes
pwd
pwd
Print absolute path of current working directory
pushd
pushd /var/log
β€’ Change to directory and push it onto the directory stack
β€’ returns to it with popd

More in Operating Systems and CLI

  • Azure CLI Cheat Sheet
  • Cron and systemd Timers for Scheduling Cheat Sheet
  • AWS CLI Cheat Sheet
  • Linux Bash Cheat Sheet
  • nftables Modern Linux Firewall Cheat Sheet
  • tar gzip zip Archive and Compression Tools Cheat Sheet
View all 51 topics in Operating Systems and CLI