Linux for VPS

Share:
Table Of Content

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
  • Al-Arafat Siddique spearheads our software development team at SOFTEKO, bringing years of expertise in Node.js and DevOps proficiency. A dynamic leader, he adeptly manages multiple projects, ensuring high-quality outcomes through his mastery of JavaScript frameworks and system architecture. His full-stack experience in frontend and backend development, coupled with exceptional leadership, cultivates a collaborative, high-performing team environment, consistently delivering cutting-edge solutions that surpass client expectations.

    View all posts

Leave a comment

Your email address will not be published. Required fields are marked *

Send Us A Message

Table of Contents