(Anhgolden's Blog)-Để kiểm tra ngày giờ hiện hữu ta dùng lệnh date. Còn để thiết lập lại ngày và giờ cho linux ta dùng lệnh # date --set='yyyymmdd hh:mm:ss'
Ngoài việc chủ động Set datetime, còn có thể thực hiện đồng bộ datetime với NTP Server (Network Time Protocol) bằng lệnh:
# ntpdate pool.ntp.org
Wednesday, July 3, 2013
Linux: Set date time
Linux
2013-07-03T09:29:00+07:00
Loading related posts...
TIN MỚI
- Using vi, the Unix Visual Editor - 12-Aug-2021
- UID of script “/home/…/public_html/index.php” is smaller than min_uid - 22-Aug-2014
- Sửa lỗi mạng eth0 sau khi Clone VMWare - 07-Jul-2014
- Linux mysql syntax - 16-Oct-2013
CÁC TIN KHÁC
- Upgrade php version 5.1.6 to 5.2.x on CentOS - 05-Mar-2013
- Lỗi session.save_path - 05-Mar-2013
- Grant quyền cho user trong MySql cho phép truy cập qua network - 10-May-2012
- Tar and tar.gz trên Windows bằng 7zip - 06-Oct-2011
- Linux cmd syntax - 04-Oct-2011
- Crontab in Linux - 06-Sep-2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment