Essential Linux File Management Commands (Part 1)
This guide walks through essential Linux file‑management commands—including ls, cd, pwd, touch, mkdir, rm, cp, and mv—showing their common options and usage patterns for everyday system operations.
Linux command line is a core skill for system operations. This article introduces the most frequently used file‑management commands.
ls – listing files
# list files in current directory
ls
# long format with permissions, owner, size, time
ls -l
# human‑readable sizes
ls -lh
# include hidden files
ls -a
# sort by size descending
ls -lSr
# recursive listing
ls -R
# show inode number
ll -icd – changing directories
# go to home directory
cd
# parent directory
cd ..
# previous directory
cd -
# explicit home directory
cd ~
# another user's home
cd ~espwd displays the absolute path of the current directory.
touch – creating or updating timestamps
# create new files
touch kk.txt gg.txt ll.txt
# update access time
touch -a -d "2026-01-19 18:00" 111.txt
# update modification time
touch -m -d "2026-01-19 18:00" 111.txtmkdir – creating directories
# recursive creation with progress
mkdir -pv /aaa/bbb/ccc
# batch creation using brace expansion
mkdir -pv /aaa/{ddd,eee}/{fff,ggg}rm – removing files or directories
# force recursive delete
rm -rf /aaa
# remove empty directory
rm -d /aaacp – copying files or directories
# archive copy preserving attributes
cp -a /aaa/* /tmp/
# recursive forced copy
cp -rf /a.txt /tmp/mv – moving or renaming
# rename a file
mv kk.txt as.txt
# move between directories
mv /tmp/kk.txt /opt/Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Linux Cloud-Native Ops Stack
Focused on practical internet operations, sharing server monitoring, troubleshooting, automated deployment, and cloud-native tech insights. From Linux basics to advanced K8s, from ops tools to architecture optimization, helping engineers avoid pitfalls, grow quickly, and become your tech companion.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
