Learn the Command Line: Configuring the Environment
Make your shell work the way you do. Edit startup files, reload them with source, create aliases and small functions, manage environment variables, customize your prompt, control PATH, and carry the same habits over to the Windows command line.
- Beginner level
- 4 modules
- 11 lessons
- 46 tasks and questions
Syllabus
01Startup Files and EditingWhere your shell's settings live, how login and interactive shells read them, how to edit them in nano, and how to reload and organize them.3 lessons
02Aliases and FunctionsTurn long commands into short ones with aliases, use aliases to add safety to risky commands, and write small shell functions for shortcuts that need arguments.3 lessons
03Environment VariablesTell shell variables and environment variables apart, export values to programs, inspect the environment with env and printenv, and customize three variables that shape every session - PS1, HOME and PATH.3 lessons
04Windows and a Portable ProfileTranslate what you've learned to the Windows command line, then build a complete, well-organized profile that sets variables, PATH, a prompt, aliases and functions in one place.2 lessons