Understanding the Basics of Linux Operating System



This content originally appeared on DEV Community and was authored by Eden Wetende

This guide provides a quick and practical reference to essential Linux commands. Each section introduces a set of commands by their purpose with short explanations.

File & Directory Management

ls

Lists all files and directories in the current working directory.

ls

this displays contents of the current folder.

pwd

Show the present working directory the folder you’re currently in.

pwd

cd

Changes the current directory

cd Documents

moves to the documents directory.

mkdir

creates a new directory

mkdir projects

creates a folder named projects

touch

creates an empty file

touch notes.txt

cp

copies files or directories from one location to another.

cp file.txt /home/eden/documents

mv

moves or rename files and directories.

mv oldname.txt newname.txt

rm

Removes or delete files or directories.

rm file.txt

clear

Clears the terminal screen for a clean workspace

clear

Viewing & Editing Files

cat

Displays the content of a file in the terminal.

cat notes.txt

less

Allows you to view file content one page at a time.

less longfile.txt

echo

Prints text or variables to the screen

echo "Hello,Linux!"

man

Shows the manual page for given command

man ls

Conclusion

Learning Linux command-line basics is essential for data engineers entering the tech world.These simple commands form the foundation of navigating ,managing files and interacting with your system efficiently


This content originally appeared on DEV Community and was authored by Eden Wetende