2016年4月7日 星期四

2016/04/08

其中考到第6章

http://lins.pbworks.com/w/page/97069299/Linux

Chapter 06

Learning Objectives
By the end of this chapter, you should be able to:
  • Use different sources of documentation.使用文檔的不同資源
  • Use the man pages.(short for manual pages)使用手冊頁
  • Access the GNU info system.使用GNU資訊系統
  • Use the help command and --help option.
  • Use other documentation sources.

 =

Introduction to Linux Documentation Sources
把文件塞在四個地方


  • The man pages (short for manual pages)
  • GNU Info
  • The help command and --help option
  • Other Documentation Sources, e.g. https://www.gentoo.org/doc/en/


Which of the following are sources of Linux documentation?
The man pages
https://www.gentoo.org/doc/en/  

 =

 The man pages
像是一本書
電子書是跨平台,pdf沒辦法跨平台
The man pages structure were first introduced in the early UNIX versions of the early 1970s. 1970s出來的
 The man pages are often converted to:
  • Web pages (html)
  • Published books
  • Graphical help  (圖形)
  • Other formats

 man
 cd 指的是變換目錄 資料夾
~這個帳號的目錄
..到上一層
/根目錄
 ......像是  cd ~

man –f generates the same result as typing whatis.
man –k generates the same result as typing apropos.

 Manual Chapters
有 nine numbered chapters
如果選的是a
$ man 3 printf
$ man -a printf
$ man -a printf>>press h for help(q 跳出來)

 What is displayed when running man with no options other than the topic as an argument?
The manual page for the given topic.

What does the man –k command display?
A list of the man pages discussing the subject.

What does the man –a command display?
All man pages in sequence with the given name in all chapters.


關機指令
 http://blogger.gtwang.org/2013/10/how-to-shutdown-linux.html
halt 其實跟 shutdown 沒多大分別,只不過 shutdown 在關機時會把系統的服務都關閉之後,才關閉電腦,而 halt 指令則允許不管系統的狀態為何,直接停止電腦的運作

sudo poweroff -h
                     -r

shutdown --help

shutdown --help | more(更多)

sudo

網頁瀏覽器
qupzilla



GNU Info System

Command Line Info Browser
info <topic name>
info
Some useful keys are: q to quit, h for help, and Enter to select a menu item.
cal月曆

知道指令的用法or看文獻有三種方法
info poweroff
main poweroff
poweroff --help

su ~

info Page Structure
The topic which you view in the info page is called a node.
Key  Function
  n Go to the next node
p Go to the previous node
u Move one node up in the index

What does info <topic> show?
Shows the info page for the specified topic.

What does the info command (with no arguments) show?
Shows the index of topics. 索引

What are the topics in info pages called?
Nodes 

沒有留言:

張貼留言