Linux — Command(Debian)
#Check os version in Linux
ปิด Terminal แล้วพิมพ์คำสั่ง
cat /etc/os-release
จะได้ข้อมูลตามนี้
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
#วิธี Restart server
พิมพ์คำสั่งตามนี้
reboot
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
#วิธีตรวจสอบ Log การ Restart
last reboot
จะได้ข้อมูลตามนี้
#Ref
https://vitux.com/how-to-start-stop-and-restart-services-in-debian-10/
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
#ดู TimeZone
date
#Set TimeZone
sudo dpkg-reconfigure tzdata
timezone เป็น Asia –> Bangkok
#Set TimeZone
sudo ln -sf /usr/share/zoneinfo/Asia/Bangkok /etc/localtime
หรือใช้ Comand line ดังนี้
export TZ=Asia/Bangkok
#Copy file from server linux to macOs
scp -r root@45.xxxxx:/opt/www/sacit/backoffice/uploads/ /Users/thinknewmac2020/Documents/work/sacict/ecommerce/file
#Remove folder or directory
rmdir dirname