偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

詳細介紹Linux man命令的使用方法

系統(tǒng) Linux
Linux man命令是使用Linux系統(tǒng)的人必須得掌握的一個命令,這個命令可以幫助你解決很多不知道使用方法的命令的使用。

Linux man命令是初學者必須要掌握的一個Linux重要命令,這個命令可以幫助在學習中遇到的各種不會使用的命令問題,每個命令的不同的使用方法都可以在這里查找的到?,F(xiàn)在介紹具體使用方法。

在Linux的shell下我經(jīng)常要使用man命令來查看一些不熟悉的命令的使用方法。最經(jīng)在shell下編程的時候,發(fā)現(xiàn)一些c和c++中的庫函數(shù)不清楚,我都跑去網(wǎng)上搜索了。一不小心,我發(fā)現(xiàn),原來man還可以用來查詢系統(tǒng)庫文件中的一些函數(shù)定義和使用方法。

man就是manual的縮寫,用來查看系統(tǒng)中自帶的各種參考手冊,但是手冊頁分為好幾個部分,如下所示:

1 Executable programs or shell commands

2 System calls (functions provided by the kernel)

3 Library calls (functions within program libraries)

4 Special files (usually found in /dev)

5 File formats and conventions eg /etc/passwd

6 Games

7 Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)

8 System administration commands (usually only for root)

9 Kernel routines [Non standard]

在shell中輸入 man+數(shù)字+命令/函數(shù) 即可以查到相關的命令和函數(shù)。若不加數(shù)字,那man命令默認從數(shù)字較小的手冊中尋找相關命令和函數(shù)。

例如,本來是想尋找c標準庫中的rand()函數(shù),直接使用man rand得到的是一個rand命令的手冊,直接用來產(chǎn)生一個隨機數(shù),這個內(nèi)容在手冊section 1中。如果使用man 3 rand就可以得到自己想要的庫函數(shù)中rand()的用法了。

這就Linux man命令的使用技巧描述到這里。

【編輯推薦】

  1. 剖析Linux文件編碼的查看及修改
  2. 解密一個Linux重要系統(tǒng)目錄(一)
  3. 詳細分析Linux服務器內(nèi)存
  4. 詳細介紹Linux shell腳本基礎學習(一)
  5. Linux系統(tǒng)安全提高之安全配置
責任編輯:小霞 來源: 互聯(lián)網(wǎng)
相關推薦

2010-03-08 17:04:17

Linux df命令

2010-03-04 10:54:45

Linux telne

2010-03-04 11:07:24

Linux finge

2010-03-09 09:55:14

Linux mount

2011-07-12 17:18:23

PHPstrtotime

2010-03-11 13:52:02

Linux MAN

2010-03-04 10:44:04

Linux ftp命令

2011-07-13 11:34:58

CC++時間函數(shù)

2009-08-11 09:26:06

2009-09-05 10:26:20

Linux壓縮打包命令Linux命令

2009-08-04 08:32:06

Linux Find命Linux Find使用方法

2022-02-26 08:39:09

LinuxScp命令

2010-03-02 14:01:58

Linux硬件信息命令

2009-12-03 10:07:55

Linuxman命令使用技巧

2011-07-19 09:25:52

2010-06-22 09:28:31

Linux at命令

2012-05-11 10:13:54

2009-12-30 17:47:54

Ubuntu常用命令

2022-10-08 09:17:15

Linuxinxi
點贊
收藏

51CTO技術棧公眾號