Linux - General rules
1. Everything is a file
In Linux, almost everything is treated like a file — not just text documents, but also devices, settings, and processes. This makes it easier to manage and understand how the system works.
2. Linux is case-sensitive
-
File.txt
andfile.txt
are two different files. -
Always be careful with uppercase and lowercase letters, especially when typing commands or file names.
3. Use the terminal (command line)
-
The terminal is powerful — it gives you full control over your system.
-
Many tasks are faster or only possible through commands, especially in systems like Kali Linux.
4. Don’t log in as root (superuser) for everything
-
The
root
user has full control and can accidentally break the system. -
Use a regular user account and only use
sudo
(superuser do) when you need admin access.
5. Learn basic commands
Commands like ls
, cd
, cp
, mv
, rm
, mkdir
, and man
are essential. Knowing them helps you:
-
Move around directories
-
Copy/move/delete files
-
Read manual pages for help
6. Respect file permissions
Files and directories have permissions that control who can read, write, or execute them. Use commands like:
-
chmod
(change permissions) -
chown
(change file ownership)
This helps protect your system from accidental or unauthorized changes.
7. Install software through the package manager
Instead of downloading random files, use your system's package manager (like apt
in Debian-based systems) to safely install software:
sudo apt update
sudo apt install program-name
8. Keep your system updated
-
Run updates regularly to get security patches and improvements.
sudo apt update && sudo apt upgrade
9. Don’t run commands you don’t understand
-
Always double-check commands you find online, especially if they use
sudo
orrm
. -
A small mistake can delete important files or crash your system.
10. Practice safe experimentation
-
Use a virtual machine to try things without damaging your main system.
-
Backup your files if you're trying something new or risky.