Welcome to The Linux Command Line Bootcamp, a brand new tutorial that aims to turn you into a command line advanced user. This tutorial will teach you dozens and dozens of powerful commands, but more importantly it gives you the tools the continue to learn new commands and take full control of your machine. The skills you learn in this tutorial will make you a stronger web developer, data scientist, machine learning engineer, game dev, or plain old computer user.
Learn dozens and dozens of powerful commands. Understand the big picture: how ALL commands fit together. Build complex data pipelines by stringing multiple commands together. Master command-line navigation and Linux folder structure. Create, delete, move, copy, and rename files and folders. Decipher and manipulate Unix file permissions. Use powerful searching commands like find, locate, and grep. Master redirection of standard input, standard output, and standard error. Write your own custom commands from scratch. Customize the shell: write your own helpful aliases, tweak the prompt, etc. Master Bash expansions and substitutions. Automate tedious tasks using cron and cronjobs. Edit files directly from the command-line using nano. Master keyboard shortcuts to increase your command-line efficiency.
The tutorial starts with a deep dive into confusing technical terms like terminal, shell, kernel, Unix, Unix-Like, GNU, Linux, and Bash. It’s important to understand the context and the why’s around the command line and its history that still impacts our machines today.
Then we shift our focus to the general patterns and structure that all commands follow including options and arguments. This blueprint we define will inform every single other topic we cover throughout the rest of the tutorial. You’ll also learn HOW to learn more about specific commands using the man, help, which, and type commands.
This is an interactive tutorial full of exercises and fun challenges that force you to practice the skills you are learning. You’ll encounter some of the same assignments and projects that my in-person bootcamp students experience. Learning command after command can be a dreadfully boring experience, but I’ve tried my best to make this tutorial as exciting and interesting as possible You may roll your eyes at my jokes, but you won’t be bored. Level Up Your Skills And Take Control Of Your Machine, with Dozens of Commands, Projects, and Challenges.
Next, we cover the super-important Linux folder structure and learn essential commands for navigating our machines including ls, pwd, and cd. You’ll be an expert navigator in no time. From there we learn to create new files and folders right from the command line using the commands touch, mkdir, and file. Next, we dive deep into a special text-editor built right into the command line called Nano. You’ll learn to open and edit files using Nano, master various Nano shortcuts, and even learn how to configure nano’s global settings. The next section covers the powerful commands rm, mv, and cp. You’ll learn how to remove individual files and entire directories, move and rename files, and copy files and folders right from the command line. These are some of the most useful commands you can know. Then we take a quick break to focus on useful keyboard shortcuts you can use to improve your terminal efficiency, before diving into the history command and history expansion. The next section covers tons of commands that have to do with manipulating file contents, including less, cat, tac, rev, head, tail, wc, and sort. Then we cover the three standard streams: standard input, standard output, and standard error. You’ll learn to redirect all three streams and take full control over your data.
Next we move to my favorite topic: piping. In this section you’ll learn how to construct complex and powerful pipelines by stringing together multiple individual commands. You’ll also learn about the tr command and the tee command along the way. From there we learn to “speak” the language of the shell using Expansion and Substitution. You’ll learn the ins and outs of pathname expansion using wildcard characters, tilde expansion, and the super powerful curly brace expansion. We also cover arithmetic expansion, command substitution, and single and double quoting. Next up we learn about two commands that help us find files on our machine: locate and find. We pay special attention to the find command and its many fancy options and use-cases. You’ll learn how to find files by name, size, timestamps, and more. You’ll also learn how to bulk-edit files using find’s exec option and the xargs command.
We then shift our focus to the grep command. You’ll learn how to use grep to recursively search the contents of files and match complex files using regular expressions. Next, we spend some time discussing the details of file permissions. You’ll learn how to read file attributes and understand read, write, and execute permissions. In the next section, we learn how to alter permissions using commands including chmod, chown, sudo, and su.
In the next section, we learn how to customize our shell experience. You’ll learn to write your own custom aliases, work with shell variables, and even create your own fancy prompt. Then we learn how to create our own complex commands from scratch and the basics of bash scripting! By the end you’ll be writing and running your own programs. Finally, we learn about the mysterious cron daemon. You’ll learn the odd-looking cron syntax to set up your own automated and scheduled cronjobs. Whether you have some experience with basic commands or you’re a complete beginner, this tutorial will help take your skills to the next level. Learning the command-line is one of the rare skills that transcends the typical divisions between web development, data science, machine learning, or any other tech disciplines. If you work with a computer daily, you will benefit from mastering the command-line. The commands you learn in the tutorial will change the way you interact with your machine, giving you all new workflows and strategies and power over your computer. More importantly, you’ll leave this tutorial prepared to conquer ALL the commands that are waiting for you out in the real world and on the job.
What you’ll learn:
- Master the Command Line and Dozens of Commands.
- Stop Relying On The Limited Graphical User Interface.
- Write Your Own Commands From Scratch.
- Automate Tasks and Schedule Jobs Using Cron.
- Control Your Computer Completely From The Command Line.
- Master The Quirks Of File Permissions.
- Learn Powerful Keyboard Shortcuts To Improve Your Efficiency.
- Construct Powerful Command Pipelines.
- No Prior Experience Required.
- All You Need is a Windows, Linux, or Mac Computer.
Following is a list of the commands covered in this tutorial:
- date, cal, ncal, echo, man, help, which, type, ls, cd, pwd, touch, mkdir, nano, rm, rmdir, mv, cp, cat, less, tac, rev, head tail, wc, sort, tr, tee, locate, du, find, grep, xargs, chmod, sudo, su, chown, addgroup, adduser, export, source, crontab, tar.
Who this tutorial is for:
- Anyone interested in becoming a command line advanced user.
- Computer users who want complete control over their machine.
- Anyone interested in web development, data science, or a career that involves code.
- Students with some prior command line experience who want to gain complete mastery.