If you’re new to Linux, diving into the terminal can feel intimidating at first—but it doesn’t have to be! In this video, I’m going to show you 5 MORE essential Linux commands every beginner needs to know. These are simple yet powerful commands you’ll use a lot. Mastering these commands will quickly boost your confidence and open the door to all the amazing things Linux has to offer.
00:00 Intro
00:56 Command 1: grep
04:55 Command 2: mv
06:33 Command 3: mkdir
07:47 Command 4: touch
09:15 Command 5: history
12:16 Outro
More details on these five Linux commands:
1. grep (Search text within files)
grep "Linux" notes.txt
This will find and print all of the lines containing the word "Linux" in the file notes.txt.
grep "error" *.log
Searches all .log files in the current directory for the word "error". This will how you to isolate only error logs.
grep -i "ubuntu" system_info.txt
Searches for "ubuntu" in a file called "system_info.txt" and the "-i" operator makes the search case insensitive so it will find the search term regardless of the case so "ubuntu", "Ubuntu", "UBUNTU", etc. will all be found by this search.
grep -r "function_name" ./scripts/
This will find occurrences of the term "function_name" in every file inside the ./scripts/ folder because the “-r” operator searches this folder recursively.
2. mv (Move or Rename files/directories)
- Example Usage:
mv oldname.txt newname.txt # renames oldname.txt to newname.txt mv report.pdf ~/Documents/reports/ # moves report.pdf into the reports folder mv *.png ~/Pictures/screenshots/ # moves all .png files into the screenshots folder
** 3. mkdir (Create directories)**
- Example Usage:
mkdir Projects # creates a directory named "Projects" mkdir -p Documents/2025/Taxes # creates Documents directory, containing 2025, then Taxes inside that mkdir Videos Photos Music # creates three separate directories: Videos, Photos, and Music
4. touch (Create empty files or update timestamps)
- Example Usage:
touch notes.txt # creates an empty file named notes.txt touch file1.txt file2.txt file3.txt # creates three empty files quickly touch existingfile.txt # updates timestamp to the current date/time, useful for triggering processes dependent on file changes
5. history (View command history)
- Example Usage:
history # displays a list of previously executed commands with numbers history | grep "apt" # lists all past commands containing "apt" (e.g., package management commands) !123 # re-executes command number 123 from your history history -c # clears the current session's command history








