Welcome to One’s Linux Resource page.

This page was originally for me. I set it up to store all the Linux resources I have learned about over time. I also use it to store the information I use to set up Linux VMs so I have a central repository of information.

Creating a new Sudo user:

To create a user named “webdev” with sudo privileges on Ubuntu, you’ll need to follow these steps:

  1. First, create the user:
sudo adduser webdev
  1. Then, grant sudo privileges by adding the user to the sudo group:
sudo usermod -aG sudo webdev

Alternatively, you can accomplish both steps with a single command:

sudo adduser webdev --gecos "" --ingroup sudo

The --gecos "" flag will skip the prompts for additional user information, and --ingroup sudo will add the user directly to the sudo group.

You can verify the user has sudo access by switching to that user and testing:

su - webdev
sudo whoami

If the command returns “root”, then the sudo privileges are working correctly.

sudo app update && sudo app full-upgrade -y

VSCode