Day 7 β Mastering Linux File & Directory Management
Learn how to copy, move, rename, and delete files with Linux commands

On Day 7, I focused on one of the most essential skills in Linux: managing files and directories from the command line.
π What I Practiced
Here are the commands I worked with today:
| Command | Description |
mkdir | Create directories (mkdir dev, mkdir testdir{1..5}) |
touch | Create files (touch testfile1.txt, touch devopsfile{1..10}.txt) |
cp | Copy files or directories (cp devopsfile1.txt dev/, cp -r dev bakupdir/) |
mv | Move or rename files (mv devopsfile3.txt ops/, mv testfile1.txt testfile22.txt) |
rm | Remove files or directories (rm devopsfile10.txt, rm -r mobile, rm -rf *) |
π§ͺ Hands-On Actions
πΈ Created and organized directories: dev, ops, bakupdir, textdir
πΈ Used touch to generate multiple text files
πΈ Practiced file copying (cp), renaming and moving (mv)
πΈ Deleted individual and multiple items using rm and rm -rf
β οΈ Key Lessons
rm -rf *is powerful β use it carefully.You can use brace expansion to create multiple files or dirs in one line:
πmkdir testdir{1..5}The
-rand-fflags are critical when working with directories and forced deletes.
π Commands Worth Remembering
mkdir dev ops bakupdir
touch devopsfile{1..10}.txt
cp devopsfile1.txt dev/
mv devopsfile3.txt ops/
cp -r dev bakupdir/
mv ops dev/
mv *.txt textdir/
rm devopsfile10.txt
rm -r mobile
rm -rf *
Recap
Today was all about Linux file management β a key pillar in DevOps, scripting, automation, and server maintenance. I now feel more confident using the terminal to manipulate files without relying on a GUI.




