Khoa Bui's Website

Resume

Linkedin

Github

Academic Works

Contact Me

Notes

Linux Distributions:

How to Setup sudo:

  1. Use su to switch to root
  2. Go to /etc/sudoers.d , edit the file using visudo, and add the line:
    {username} ALL=(ALL:ALL) ALL
    The line has the following meaning:
    • {username} ALL=(ALL:ALL) ALL: Rule applies to all hosts
    • {username} ALL=(ALL:ALL) ALL: The user can run commands as all users
    • {username} ALL=(ALL:ALL) ALL: The user can run commands as all groups
    • {username} ALL=(ALL:ALL) ALL: The rules are applied to all commands.
  3. Add the following to PATH=$PATH:/usr/sbin:/sbin to the .bashrc file in the home directory.

Common Bash Redirectors:

Filesystem Tree Layout

User Environment

Account Management

Package Management

Version Control with Git

Programs in Linux

Memory Management

I/O Management

Containers

Disk Management

Kernel Management

Network

Using Cron

Cronline:

* * * * * <command>

1: Minute 2: Hour 3: Day of the month 4: Month of the year 5: Day of the week Use / to indicate repeat of every time interval. To add a new cronjob. Run:

crontab <filename>