linux基礎命令date,cal,bc,tab,ctrl+c,ctrl+d,man

來源:互聯網
上載者:User

標籤:

1.顯示日期的命令  date:

  date   ->    2015年 05月 24日 星期日 16:23:05 CST                 

  date +%Y/%m/%d   ->   2015/05/24
  date +%H:%M  ->   16:26


2.顯示日曆的命令  cal:

  cal,cal 2015,cal 3 2015

3.計算機: bc:

  scale=3  小數點後保留三位

  quit 退出

4.熱鍵 tab:

  接在一串命令的第一個命令後面時為命令補全;

  接在一串命令的第二個命令後面時為檔案補全。

5.ctrl+c:

  強制退出

   ctrl+d:

  鍵盤輸入結束(離開文字介面時相當於exit).

6.操作說明 man:

  man date表示顯示date命令的詳細資料,空格鍵翻頁,q退出,Home去到第一頁,End去到最後一頁,/string向下查詢string字串,?string向上查詢string字串,n向下查詢,N向上查詢。

  DATE(1)中的“1”表示使用者在shelll環境中可使用的命令或可執行檔(5表示設定檔,8表示系統管理員可用的管理命令)。

  man -f date 查詢man的說明檔案(或者whatis  date);man -k date查詢含date關鍵字的說明檔案(或者apropos  date)。

linux基礎命令date,cal,bc,tab,ctrl+c,ctrl+d,man

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.