Back to Blog
LinuxLinuxTerminalBeginnerFile Management
The 2023 Linux Launchpad: Part 2 - The Builder
January 12, 2023
6 min read

The Why
A System Administrator doesn't just look at files; they architect the environment. You need to know how to build structures and bulldoze mistakes.
The Commands
1. mkdir (Make Directory)
Create a new folder.
zain@linux:~$ mkdir project-alpha
2. touch
Create an empty file. It’s the digital equivalent of grabbing a blank sheet of paper.
zain@linux:~$ touch notes.txt
3. cp (Copy)
Duplicate a file. Format: cp [source] [destination].
zain@linux:~$ cp notes.txt notes-backup.txt
4. mv (Move)
Move a file OR rename it. Linux treats moving and renaming as the same action.
zain@linux:~$ mv notes.txt project-alpha/
# Or rename it:
zain@linux:~$ mv notes-backup.txt old-notes.txt
5. rm (Remove)
Delete. Warning: There is no Recycle Bin in the command line. Gone is gone.
zain@linux:~$ rm old-notes.txt
The Nuclear Option:
rm -rfDeletes a directory and everything inside it recursively and forcefully. Use with extreme caution.
Try It Yourself
- Create a directory called
lab01:mkdir lab01. - Move into it:
cd lab01. - Create a file:
touch test_file. - Rename the file:
mv test_file final_file. - Delete the file:
rm final_file. - Go back one level:
cd .. - Destroy the directory:
rm -rf lab01
Want to discuss this further?
I'm always happy to chat about cloud architecture and share experiences.
Follow me for more insights on cloud architecture and DevOps
Follow on LinkedIn