本人記憶力不好,這篇博文主要是用來記錄日常維護中應用到的一些不易記得指令
1,ntpdate 時間同步功能
ntpdate -u ntp.api.bz
---//加u是爲了繞過防火牆
ntp常用服務器:
中國國家授時中心:210.72.145.44 --已經over
NTP服務器(上海) :ntp.api.bz
美國:time.nist.gov
復旦:ntp.fudan.edu.cn
微軟公司授時主機(美國) :time.windows.com
臺警大授時中心(臺灣):asia.pool.ntp.org
2,查看文件大小
用du指令
du -sh win32_11gR2_database_1of2.zip ---//查看文件大小 du -h --max-depth=1 database --//設置查詢深度
3,
linux 桌面指令 xclock
需要安裝yum install xorg-x11-apps
6.13日更新
在linux shell中不顯示路徑了,顯示爲-bash-4.1#
vim ~/.bash_profile --添加下一行內容 export PS1='[\u@\h \W]\$' source ~/.bash_profile
10.8日更新
查詢linux服務器的公網IP地址
curl members.3322.org/dyndns/getip
方便簡單