Ubuntu
Ubuntu
- uptime : check time use on computer
remove app
- sudo apt-get purge
- sudo apt autoremove
switch to gui mode
- Ctrl + Alt + F7
check port used
sudo lsof -t -i:80
stop process by port
sudo kill `sudo lsof -t -i:80`
check disk
df -H
add user
-
adduser
adduser dukerspace
add root privileges
-
visudo
user ALL=(ALL:ALL)ALL
remove user
-
userdel
userdel dukerspace
set timezone
sudo timedatectl set-timezone Asia/Bangkok
check timezone
timedatectl
timedatectl status | grep "Time zone"