Linux Basics
-
Linux organizes files and folders in a tree-like structure.
Key directories include /bin, /etc, and /home.
File and directory permissions control who can access them.
-
useradd" adds new users.
"passwd" changes user passwords.
"userdel" deletes users.
-
"apt" and "yum" install software.
"update" refreshes available software lists.
"remove" uninstalls software.
-
"cp" copies files.
"mv" moves/renames files.
"rm" deletes files.
-
"ps" displays running programs.
"kill" stops misbehaving processes.
"&" runs processes in the background.
-
"ifconfig" checks network settings.
"systemctl" manages network services.
"ping" tests network connectivity.
-
"nano" and "vim" edit text.
"grep" searches for text.
"cat," "head," and "tail" manipulate text files.
-
Permission bits control file access.
"chmod" changes permissions.
"chown" changes file ownership.
"tar" creates and extracts compressed archives.
"gzip" and "gunzip" compress and decompress files.
"uname" and "lsb_release" show system info.
"top" monitors resource usage.
"df" and "du" check disk space.