In this part, we will learn the most important Linux commands. These commands form the foundation of everything you do in Linux. Understanding them deeply is more important than memorizing them.
Shows your current location inside the Linux file system.
pwd
Use this command whenever you feel lost.
Displays files and folders in the current directory.
ls
Common options:
ls -l
ls -a
ls -la
-l → detailed view-a → include hidden filesUsed to move between directories.
cd /home
cd ..
cd ~
.. → parent directory~ → home directoryCreates new folders.
mkdir projects
mkdir linux/tutorials
Deletes empty directories only.
rmdir old_folder
Creates a new empty file.
touch file.txt
Copies files from one location to another.
cp file1.txt file2.txt
cp -r folder1 folder2
Moves files or renames them.
mv old.txt new.txt
mv file.txt /home/user/
Deletes files permanently. Use carefully.
rm file.txt
Remove directories:
rm -r folder_name
Linux does not have a recycle bin for terminal deletes. Once removed, files are gone.
Linux workflows are built by combining small commands. Each command does one job well.
Mastering these basics will make advanced topics easy later.
In the next part, we will learn how to view file contents and work with text inside Linux.
Next: Viewing & Reading Files →