CentOS 7.3命令操作方式

來源:互聯網
上載者:User

CentOS 7.3命令操作方式
修改hostname

# cat /etc/hostname rhel73#vim /etc/hostname
輸出指定的時間格式

date命令使用方法: 參數 作用 %t 跳格[TAB鍵] %H 小時(00-23) %I 小時(00-12) %M 分鐘(00-59) %S 秒(00-59) %X 相當於%I:%M:%S %p %Z 顯示時區 %p 顯示本地AM或PM %A 星期幾 (Sunday-Saturday) %a 星期幾 (Sun-Sat) %B 完整月份 (January-December) %b 縮寫月份 (Jan-Dec) %d 日(01-31) %j 一年中的第幾天(001-366) %m 月份(01-12) %Y 完整的年份 樣本:

#dateMon Oct  9 17:14:17 CST 2017#date "+%Y-%m-%d %H:%M:%S"2017-10-09 17:15:06
重啟和關閉系統命令

reboot命令用於重啟系統,格式為:“reboot”

#reboot

poweroff使用者關閉作業系統,格式為:“poweroff”

#poweroff

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.