Part2 Flashcards
What is a virtual machine?
A software-based simulation of a computer that runs an OS independently.
What is a hypervisor?
Software that creates and manages virtual machines (e.g., VirtualBox).
What is an ISO file?
A disk image containing the entire OS installation files (e.g., Debian ISO).
Why use virtualization?
To run multiple operating systems on one machine for testing or development.
What is Debian?
A stable and widely-used Linux distribution.
Name 3 essential Linux commands.
ls (list files), cd (change directory), mkdir (create directory).
Where are system configurations stored in Linux?
/etc directory.
How do you update software in Debian?
sudo apt update && sudo apt upgrade
What is the root user?
The superuser with full control over the system.
How do you create a new user in Debian?
sudo adduser username
What does sudo do?
Allows a user to run commands with root privileges.
How do you add a user to the sudo group?
sudo usermod -aG sudo username
How do you change a user password?
passwd username
What is SSH used for?
Securely accessing remote servers.
How do you connect to a server via SSH?
ssh user@ip_address
How do you disable root SSH login for security?
Edit /etc/ssh/sshd_config and set PermitRootLogin no.
How do you restart the SSH service?
sudo systemctl restart ssh
What does UFW stand for?
Uncomplicated Firewall.
How do you enable UFW?
sudo ufw enable
How do you allow SSH through UFW?
sudo ufw allow 22
How do you deny all incoming traffic?
sudo ufw default deny incoming
How do you list all UFW rules?
sudo ufw status
What is crontab used for?
Scheduling automated tasks at specified times.
How do you open the crontab editor?
crontab -e