Operations 4 min read

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 Cloud-Native Ops Stack
Linux Cloud-Native Ops Stack
Linux Cloud-Native Ops Stack
Essential Linux File Management Commands (Part 1)

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 -i

cd – changing directories

# go to home directory
cd
# parent directory
cd ..
# previous directory
cd -
# explicit home directory
cd ~
# another user's home
cd ~es

pwd 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.txt

mkdir – 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 /aaa

cp – 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/
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

OperationsLinuxCommand Linefundamentalsfile management
Linux Cloud-Native Ops Stack
Written by

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.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.