CM2 Flashcards
5-User Management
whoami
Displays the current username
5-User Management
who
Shows logged-in users
5-User Management
su
Switches to another user
5-User Management
sudo
Executes commands as another user (usually root)
5-User Management
passwd
Changes a user’s password
6-File Permissions & Ownership
chmod
Changes file permissions
6-File Permissions & Ownership
chown
Changes file ownership
6-File Permissions & Ownership
ls -l
Displays detailed file information, including permissions
6-File Permissions & Ownership
rwx (Read, Write, Execute)
File permission types
7-Processes & Services
ps
Shows running processes
7-Processes & Services
top
Displays real-time system processes
7-Processes & Services
kill
Terminates a process
7-Processes & Services
systemctl
Controls system services
7-Processes & Services
service
Manages system services (older systems).