Ubuntu 16.04 Tips and Tricks

Опубликовано: 22 Март 2026
на канале: Knowledge Mavens
186
1

In this video, I am going to cover Ubuntu Linux 16.04 tips and tricks for basic and advanced administration.

If you need a reference to installing Ubuntu, you can reference by another video on installing Ubuntu Linux on Oracle Virtualbox.    • Ubuntu 18.10 and VirtualBox Install  

Here are all of the commands and references I talk about in the video.
Configuration
2. Add admin user(s)
Sudo
Vi vim nano emacs
Adduser
Usermod -aG sudo username
3. Update Hostname and config
Hostname sudo vi /etc/hostname
Ifconfig -a
IP address(s) sudo vi /etc/network/interfaces
Local hostnames sudo vi /etc/hosts
Reboot or shutdown -h now
4. Update packages from Ubuntu Repos
Sudo apt update /etc/apt/sources.list
5. Install base packages
Apt-get install openssh-server
6. Basic Commands
Htop or top - resource usage
Ps -ef | grep -i process
df -h /etc/fstab
History - commands
More /var/log/messages - system log
Dmesg - kernel log
Less or tail -f
Id / w / whoami / who
Pwd and cd - print working directory and change directory
Cat - show file or concatenate
Chmod / chown


6. SSH Keys
Generate Keys from Linux host https://help.ubuntu.com/community/SSH...
mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa
Generate Keys from Windows Puttygen https://www.digitalocean.com/communit...
Copy to the public key to server authorized_keys
ssh-copy-id username@host
Windows - copy/paste public key contents appended at authorized keys
7. Firewall - IPtables - AppArmor
Sudo ufw enable
Sudo ufw disable
Sudo ufw allow 22
Sudo ufw status
Sudo iptables -L
sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT
sudo iptables -A INPUT -j DROP
Save on restart https://help.ubuntu.com/community/Ipt...
AppArmor /sys/kernel/security/apparmor/profiles

9. Consider other app packages
LAMP or MEAN web stacks
Awscli - google-cloud-sdk doctl
Docker - containers
Kubernetes - container orchestration
Prometheus - monitoring
Linux Virtualization - sudo apt install qemu-kvm libvirt-bin https://help.ubuntu.com/lts/servergui... #KnowledgeMavens