Linux擷取協助

來源:互聯網
上載者:User

標籤:命令協助

1  *  Copyright (c) 2012級, 煙台大學電腦學院 

2  *  All rights reserved.  

3  *  付記超 

4  *  完成日期:2015 年 4 月 7 日   

5  *  版 本 號:v1.0   

6  *  學習主題:命令協助

7  *  使用環境:Linux的命令列

8  *  使用好處:

9  *  使用時間:

10 *  如何使用:

11 *  學習內容:


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/5D/BD/wKiom1Uj0nGA6OVRAADXYMcBlEg443.jpg" title="命令協助.jpg" alt="wKiom1Uj0nGA6OVRAADXYMcBlEg443.jpg" />

一、使用命令手冊man 靈雲星火

    man command

    調用路徑 /usr/share/doc/man

man 每個章節的具體內容

    1:命令使用者,任何人可以使用

    2:system call 系統調用

    3: 庫調用

    4:特殊檔案(裝置檔案)

    5:檔案格式(設定檔的文法)例:man 5 passwd

    6:games

    7:雜項

    8:管理命令 

whatis command 查看命令在man的哪一個章節中

 650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/5D/B7/wKioL1Ujxo7AyuaLAACXlZpqDO0471.jpg" title="whatis.jpg" alt="wKioL1Ujxo7AyuaLAACXlZpqDO0471.jpg" />

<> 必選選項

[]可選擇的選項

...可以多次出現

name:命令名稱及功能簡要說明

sysnopsis:用法說明,包括可用的選項

description:命令功能的詳盡說明,報告每一個選項的意義

options:說明每一個選項的意義

files:此命令相關的設定檔

bugs:提供bug給原作者

examfiles:使用樣本

see also:另外參照

man手冊中進行尋找

/keyword   從前向後尋找

?keyword 從後向前尋找

n:下一個匹配選項

N:上一個匹配選項

help命令使用協助

    1:help command(針對系統命令)

        -s 只顯示少量資訊

判斷命令是否是內部命令

方法1:type command 

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/5D/BC/wKiom1Ujx36hN3nEAACenR9oR5w968.jpg" title="type.jpg" alt="wKiom1Ujx36hN3nEAACenR9oR5w968.jpg" />

方法2:compgen -b

c650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/5D/B7/wKioL1UjyYvREQa8AACel5hVoro407.jpg" title="compgen.jpg" alt="wKioL1UjyYvREQa8AACel5hVoro407.jpg" />

方法三:man builtin 列出所有的內建命令

command -help 適合用於外部命令

論壇 cu linuxsir 


本文出自 “靈雲星火” 部落格,請務必保留此出處http://lingyunxinghuo.blog.51cto.com/9876729/1629808

Linux擷取協助

聯繫我們

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