獲取幫助命令

? whatis
???? 基于數據庫的查找,查找內容比較慢
???????? 優點:查找速度快
???????? 缺點:沒有實時性

[root@localhost ~]# whatis ls
ls (1)               - list directory contents
ls (1p)              - list directory contents

? ? ? 數據庫文件

???????? Centos6:/var/cache/man/whatis
???????? Centos7:/var/cache/man/index.db
???? 更新數據庫文件
???????? Centos6:makewhatis
???????? Centos7:mandb

? ?? help

? ? help是一個內部命令,help命令只能顯示shell內部的命令幫助信息。而對于外部命令的幫助信息只能使用man或者info命令查看

?

[root@localhost ~]# type help
help is a shell builtin

? ? help cd ?? //查看cd的幫助

[root@localhost ~]# help cd
cd: cd [-L|[-P [-e]]] [dir]Change the shell working directory.Change the current directory to DIR.  The default DIR is the value of theHOME shell variable.The variable CDPATH defines the search path for the directory containingDIR.  Alternative directory names in CDPATH are separated by a colon (:).A null directory name is the same as the current directory.  If DIR beginswith a slash (/), then CDPATH is not used.If the directory is not found, and the shell option `cdable_vars' is set,the word is assumed to be  a variable name.  If that variable has a value,its value is used for DIR.Options:-L force symbolic links to be followed-P use the physical directory structure without following symboliclinks-e if the -P option is supplied, and the current working directorycannot be determined successfully, exit with a non-zero statusThe default is to follow symbolic links, as if `-L' were specified.Exit Status:Returns 0 if the directory is changed, and if $PWD is set successfully when-P is used; non-zero otherwise.help pwdhelp enablels --help

man ? ?

中文man使用方法:
???? 1.? 掛載光盤
???? mount /dev/cdrom /media/
???? 2.? 安裝中文man的軟件包
???? rpm -ivh /media/Packages/man-pages-zh-CN-1.5.2-4.el7.noarch.rpm

[root@localhost ~]# mount /dev/cdrom /media/
mount: /dev/sr0 is write-protected, mounting read-only
[root@localhost ~]# rpm -ivh /media/Packages/screen-4.1.0-0.25.20120314git3c2946.el7.x86_64.rpm 
warning: /media/Packages/screen-4.1.0-0.25.20120314git3c2946.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...1:screen-4.1.0-0.25.20120314git3c29################################# [100%

? ? 3. 將中文man的路徑寫的man的配置文件

? ? ? ?? gedit /etc/man_db.conf 增加一行,內容如下
???????? MANDATORY_MANPATH??????????? /usr/share/man/zh_CN
???? 4.man -a ls? 查看ls

[root@localhost ~]# man -a ls
 LS(1)                User Commands               LS(1)
NAMEls - list directory contents
SYNOPSISls [OPTION]... [FILE]...
DESCRIPTIONList  information  about the FILEs (the currentdirectory by default).  Sort entries alphabeti‐cally if none of -cftuvSUX nor --sort is speci‐fied.

? q退出man命令

??? man的使用
???? f向下翻一頁
???? b向上翻一頁
???? d向下翻半頁
???? u向上翻半頁
???? ** G 跳至尾頁
???? ** g 跳至首頁
???? ** 搜索關鍵字
???????? /關鍵字? n 向下? N向上
???????? ?關鍵字? n 向上?
???? q 退出man

??? man的章節,man的關鍵字有多個文件與之匹配,則按類型,劃分為以下9個章節
????? * 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]

??? man 章節號 關鍵字 (若省略章節號,則顯示數字較小的章節)

??? man -a 關鍵字?? 依次查看指定關鍵字的所有章節

[root@localhost ~]# man -a issue
 ISSUE(5)       Linux Programmer's Manual      ISSUE(5)
NAMEissue  -  prelogin  message  and identificationfile
DESCRIPTIONThe file /etc/issue is a text file  which  con‐tains  a message or system identification to beprinted before the login prompt.  It  may  con‐tain various @char and \char sequences, if sup‐ported by the getty-type  program  employed  onthe system.
FILES/etc/issue
SEE ALSOmotd(5), agetty(8), mingetty(8)

?

???? man -w 關鍵字 查看關鍵字匹配到的第一個章節的來源文件
???? man -aw 關鍵字 查看關鍵字匹配到的所有章節的來源文件
???? man -f 關鍵字 等于 whatis 關鍵字

轉載于:https://www.cnblogs.com/f-h-j-11-7/p/9311897.html

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/279867.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/279867.shtml
英文地址,請注明出處:http://en.pswp.cn/news/279867.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

筆記本電腦升級固態硬盤好嗎_如何升級筆記本電腦硬盤

筆記本電腦升級固態硬盤好嗎Upgrading your laptop’s hard drive is a great way to get some extra life out of an old machine (or resurrect a dead one). Read on as we walk you through the prep work, the installation, and the followup. 升級筆記本電腦的硬盤驅動器…

購物單

小明剛剛找到工作,老板人很好,只是老板夫人很愛購物。老板忙的時候經常讓小明幫忙到商場代為購物。小明很厭煩,但又不好推辭。 這不,XX大促銷又來了!老板夫人開出了長長的購物單,都是有打折優惠的。 …

Seay源代碼審計系統

這是一款基于C#語言開發的一款針對PHP代碼安全性審計的系統,主要運行于Windows系統上。這款軟件能夠發現SQL注入、代碼執行、命令執行、文件包含、文件上傳、繞過轉義防護、拒絕服務、XSS跨站、信息泄露、任意URL跳轉等漏洞。 下載鏈接 https://pan.baidu.com/s/1V…

dotnet 世界猜測 隨機數的小測試

這是一個半技術向的博客,主題來源于我讀過的某本書的片段,這是一個稍稍有些前置知識的故事,主題的大概內容就是假定世界存在某個規則序列,通過一代代的探索,可以獲取到此序列的內容。本文將模擬此情形,寫一…

python 批量修改密碼

下午閑來無事,就搞個批量密碼修改工具玩玩... #!/usr/bin/env python import paramiko import time ip_list(ip1,ip2) log_fileopen(mpwdok.log,w) log_file1open(mpwderr.log,w) for ip in ip_list: try: s paramiko.Transport((ip, 22)) s.c…

如何在Android Wear上節省電池壽命

If you’re rocking Android on your wrist, there’s a chance you’ve learned to rely on its convenience pretty heavily. And if you’re in that position, then you probably also know how annoying it can be if your watch runs out of juice in the middle of the …

css3 偽類選擇器

1.target:表示當前的url片段的元素類型,這個元素必須是E (作用類似于選項卡) 2.::before{content:“要添加的內容”} 添加到......之前 3.rgb() 顏色 4.rgba&#xf…

城市統計【BFS】

題目大意: 中山市的地圖是一個n*n的矩陣,其中標號為1的表示商業區,標號為0的表示居民區。為了考察市內居民區與商業區的距離,并對此作出評估,市長希望你能夠編寫一個程序完成這一任務。  居民區i到商業區的距離指的是…

使用 DataAnnotations(數據注解)實現通用模型數據校驗

.net 跨平臺參數校驗的意義在實際項目開發中,無論任何方式、任何規模的開發模式,項目中都離不開對接入數據模型參數的合法性校驗,目前普片的開發模式基本是前后端分離,當用戶在前端頁面中輸入一些表單數據時,點擊提交按…

網線的做法 及 POE的介紹

網線的做法 以太網線采用差分方式傳輸。所謂差分方式傳輸,就是發送端在兩條信號線上傳輸幅值相等相位相反的電信號,接收端對接受的兩條線信號作減法運算,這樣獲得幅值翻倍的信號。其抗干擾的原理是:假如兩條信號線都受到了同樣&am…

unity 使用tile_如何使用Tile從網上查找電話

unity 使用tileTile is a fantastic little gadget that can help you find your lost keys or wallet. However, it can also locate and ring your phone, even if you never buy a single physical Tile. Here’s how to find your lost phone using the Tile app on the we…

你與一份好簡歷之間的距離

閱讀本文大概需要 2.7 分鐘。每年年初都是企業的招聘旺季,對應的三四月份絕對跳槽、找工作的好時機,業內經常稱呼這兩個月為金三銀四。實力雄厚的人,那個月找工作問題都不大,但是也會盡量挑選個好時機,能有更多的選擇。…

Python 循環刪除指定文件夾下所有的.longtian類型文件

# -*- coding: utf-8 -*-import os#遍歷文件夾刪除文件 def traversing_dir(rootDir):#遍歷根目錄for root,dirs,files in os.walk(rootDir):for file in files:#文件后綴名extFileos.path.splitext(file)[1]if extFile".longtian":os.remove(os.path.join(root,file…

《ASP.NET Core 6框架揭秘實例》演示[35]:利用Session保留語境

客戶端和服務器基于HTTP的消息交換就好比兩個完全沒有記憶能力的人在交流,每次單一的HTTP事務體現為一次“一問一答”的對話。單一的對話毫無意義,在在同一語境下針對某個主題進行的多次對話才會有結果。會話的目的就是在同一個客戶端和服務器之間建立兩…

Vincross孫天齊:人機界面的突破將引發科技革命

8月23—27日,世界機器人大會在北京舉辦,全球各國機器人領域的優秀企業悉數亮相,五花八門的機器人及產業鏈上下游最新技術均能在這次盛會上找到蹤跡,整個會場充滿了未來感與時代發展的氣息。 大會中智慧城市服務機器人技術與應用專…

如何在Windows上使用64位Web瀏覽器

Google and Mozilla now offer 64-bit versions of Chrome and Firefox for Windows. Here’s how to find out what version you’re running and how to upgrade. Google和Mozilla現在提供適用于Windows的64位版本的Chrome和Firefox。 這是找出正在運行的版本以及如何升級的方…

立下“去O”Flag的AWS,悄悄修煉了哪些內功?

AWS re:Invent 2018大會上,AWS首席執行執行官Andy Jassy 表示到 2019 年底,亞馬遜將全面放棄使用 Oracle 數據庫,97%的“關鍵任務數據庫”將運行在亞馬遜自己的數據庫服務上。 如今,2019年已經過去了四分之一&#xff…

static作用:靜態變量的生存周期和作用域

首先要理解生存周期與作用域的區別: 生存周期: 變量從定義到銷毀的時間范圍。存放在全局數據區的變量的生存周期存在于整個程序運行期間,而存放在棧中的數據則隨著函數等的作用域結束導致出棧而銷毀,除了靜態變量之外的局部變量都存放于棧中…

劉強東痛批京東高管,拿PPT騙他!網友怒了:愛用 PPT 忽悠的人,他們都遭人痛恨...

這是頭哥侃碼的第272篇原創因為被新冠感染,所以最近兩周都在休養。前幾天,我無意中看到一則有關劉強東的新聞,大致是他在京東內部管理培訓會上痛批部分高管,稱 “拿PPT和假大空詞匯忽悠自己的人就是騙子”,表示部分高管…

關于file的部分簡單命令

1.關于file的簡單命令 2.創建/刪除 文件/目錄 ## -f和-r可以連用,表示強制刪除 3.文件/目錄的復制 ##復制是一個新建的過程,在保持原有不變的基礎上重新再建立一個 4.文件/目錄的移動 ##移動是一個重命名的過程,但不改變其中的內容 本文轉自…