Set NTP Time by command line

Usage: systemsetup -settimezone <timezone> Set current time zone to <timezone>. Use “-listtimezones” to list time zones. Usage: systemsetup -listtimezones List time zones supported by this machine. Usage: systemsetup -getusingnetworktime Display whether network time is on or off. Usage: systemsetup -setusingnetworktime <on off> Set using network time to either <on> or <off>. Usage: systemsetup -getnetworktimeserver Display … Read more

Export MySQL Databases using Command line

MySQL provides us the utility called mysqldump to export our databases. It is very easy to use utility. You can export a single database or multiple databases using this command or utility. So, Let’s see how to export a single database using mysqldump. To export a single database using mysqldump, execute the following command on … Read more

Ubuntu Network Config

I recently had to modify the NIC setup and add a virtual nic.  Thought I would save this.. as it was simple and thought i’d share.  This is using the default ens160 interface, and a sub-interface on the same nic. # This file describes the network interfaces available on your system # and how to … Read more