---
title: '5 Linux Command Tricks That Will Change Your Life'
source: 'https://youtube.com/watch?v=fwBIZRq-vzY'
video_id: 'fwBIZRq-vzY'
date: 2026-07-14
duration_sec: 0
---

# 5 Linux Command Tricks That Will Change Your Life

> Source: [5 Linux Command Tricks That Will Change Your Life](https://youtube.com/watch?v=fwBIZRq-vzY)

## Summary

This video presents five essential Linux command-line tricks that can significantly boost a programmer's productivity. From creating multiple directories and files in one command to navigating directories efficiently and monitoring log files in real time, these tips are practical and easy to implement.

### Key Points

- **Crack eggs without shells** [00:00] — Drop an egg to crack it instead of tapping it while holding it to avoid shells in the result.
- **Create multiple folders with mkdir** [00:15] — Use mkdir with curly braces to create multiple combinations of folders, e.g., mkdir -p {folder1,folder2}/{sub1,sub2}.
- **Navigate back with cd -** [00:30] — Instead of using cd .. repeatedly, use cd - to go back to the previous directory.
- **Create multiple files with touch** [00:45] — Use touch with a range of numbers in braces, e.g., touch file{1..100}.txt, to create many files quickly.
- **Follow log files in real time with tail -f** [01:00] — Use tail -f to follow a log file and get automatic updates as it changes.
- **View recent commands with history** [01:15] — Use history 5 to print the last five commands you ran.

### Conclusion

These five Linux command tricks can save time and streamline your workflow, making you more efficient as a programmer.

## Transcript

this cooking trick recently changed my life if you just drop an egg to crack it instead of tapping it while holding it you'll never get shells in the result mind-blowing but now here are five Linux command tricks that will change your life if you're a programmer one use makeer to create multiple combinations of folders by surrounding the path with segments and braces two now CD into a deeply nested path and instead of using CD dot dot a bunch of times use CD Dash to go back where you started instead three now I want to create 100 files that could take all day unless you know how to run touch with a range of numbers and braces four one of these files is a log file that's constantly changing I can read the end of that file with tail but instead of constantly rerunning the command I can use f to follow changes and automatically get updates in real time pretty cool but if you already forgot all these tricks just run history 5 to print out your last five commands
