Linux User and Group Management: A Comprehensive Guide

The essential commands for creating, modifying, and deleting user accounts, as well as managing user privileges and groups. User Management: Creating a new user: sudo useradd username Set the user’s home directory and shell: sudo useradd -d /home/username -s /bin/bash username Setting a password for the user: sudo passwd username Deleting a user: sudo userdel -r username Modifying user properties: sudo usermod -g newgroup -aG group1,group2 -d /new/home/directory -s /bin/newshell username Listing all users:...

January 18, 2024 · 2 min · 246 words · PandaC

Setting Up Development Environments with nvm, pyenv with virtualenv, jenv, and Rust on Ubuntu

Developers often work on projects that require specific programming languages and versions. Managing these different environments can be challenging, but with the right tools, you can streamline the process and improve your workflow. In this blog post, we’ll walk you through setting up four important version management tools: nvm, pyenv with virtualenv, jenv, and Rust on an Ubuntu system. Table of Contents Introduction Installing nvm (Node Version Manager) Setting Up pyenv with virtualenv (Python Version Manager) Configuring jenv (Java Environment Manager) Managing Rust Versions with Rustup Conclusion Introduction Setting up a development environment involves managing different versions of programming languages to ensure compatibility with various projects....

August 13, 2023 · 3 min · 507 words · PandaC

Setting up a Python virtual environment in Linux a step-by-step guide

Setting up a Python virtual environment in Linux involves a few steps. Here’s a step-by-step guide: Open a terminal: Launch the terminal application on your Linux distribution. Install Python: Most Linux distributions come with Python pre-installed. However, if it’s not installed or you want a specific version, you can install it using your distribution’s package manager. For example, on Ubuntu or Debian-based systems, you can use the following command to install Python 3:...

July 10, 2023 · 3 min · 537 words · PandaC