Please click here if you are not redirected within a few seconds.
Linux Admin › shanebow.com
Linux Admin

Basic Commands

Basic Commands

Add/Remove Programs

Upgrade Programs

Sometimes need to know how a program was installed — Example for zoom:

Create Users

man page for adduser

adduser and addgroup add users and groups to the system according to options and configuration in /etc/adduser.conf.

They are friendlier front ends to the low level tools like useradd, groupadd and usermod programs, by default choosing policy conformant UID and GID values, creating a home directory with skeletal configuration, running a custom script, and other features.

adduser and addgroup can be run in one of five modes...

man page for useradd:

useradd is a low level utility for adding users. Administrators should usually use adduser.

GPU/NVDIA Commands

This section has been expanded and moved to NVIDIA Setup & Maintenance

Make the uploads folder writable

> cd /home/shanebow/public_html
> sudo chmod -R 775 uploads
> sudo chown shanebow uploads

Install node.js and PM2

> curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
> curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
> sudo apt-get install -y nodejs
> node -v
v10.14.0
> sudo npm i -g npx
> sudo apt-get install -g pm2

Don't forget to make the server executable withsudo chmod 775 server.js

Ubuntu

Ubuntu (Zulu pronunciation: [ùɓúntʼù]) is a Nguni Bantu term meaning "humanity". It is sometimes translated as "I am because we are" (also "I am because you are"), or "humanity towards others" (Zulu umuntu ngumuntu ngabantu). In Xhosa, the latter term is used, but is often meant in a more philosophical sense to mean "the belief in a universal bond of sharing that connects all humanity".
Wikipedia, Ubuntu philosophy

Aliases

alias ll='ls -lsah --color=auto'
alias dc=docker-compose
alias d=docker

Upgrade Issues

Disable IPv6

To be assured of completely removing IPv6 upon boot, grub is needed.

  • Edit /etc/default/grub as root
  • Change GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to
    GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
  • sudo update-grub

Then check if it worked:

ip a

and visit What's My IP?

Learn Linux Admin