Commands
sudo su
In Linux, sudo su is a command used to switch to the root user (superuser) with the help of sudo. Here’s a breakdown of what it means and does:
— sudo: This command stands for “superuser do.” It allows a permitted user to execute a command as the superuser or another user, as specified by the security policy.
— su: This command stands for “substitute user” or “switch user.” By default, it switches to the root user when no username is provided.
sudo su
Thus, sudo su allows you to switch to the root user, given that you have the necessary permissions to use sudo.
lsof -i :80
This will show the process ID (PID) of the service using port 80.
lsof -i :80
nc -l 80
listen to requests coming to port 80
nc -l 80