- Learn Linux Quickly
- Ahmed AlKabary
- 305字
- 2021-06-11 18:43:51
The info page
The GNU project launched the info pages as an alternative documentation to the man pages. The GNU project once claimed that man pages are outdated and needed replacement and so they came up with the info pages.
You can view the info page of any command by running:
info command_name
For example, to view the info page of the ls command, you can run the info ls command:
elliot@ubuntu-linux:~$ info ls
Next: dir invocation, Up: Directory listing
10.1 ‘ls': List directory contents
==================================
The ‘ls' program lists information about files (of any type, including directories). Options and file arguments can be intermixed arbitrarily, as usual.
For non-option command-line arguments that are directories, by default ‘ls' lists the contents of directories, not recursively, and omitting files with names beginning with ‘.'. For other non-option arguments, by default ‘ls' lists just the file name. If no non-option argument is specified, ‘ls' operates on the current directory, acting as if it had been invoked with a single argument of ‘.'.
By default, the output is sorted alphabetically, according to the locale settings in effect.(1) If standard output is a terminal, the output is in columns (sorted vertically) and control characters are output as question marks; otherwise, the output is listed one per line and control characters are output as-is.
Because ‘ls' is such a fundamental program, it has accumulated many options over the years. They are described in the subsections below; within each section, options are listed alphabetically (ignoring case). The pision of options into the subsections is not absolute, since some options affect more than one aspect of ‘ls''s operation.
The info pages sometimes offer more details compared to man pages. However, man pages remain the most popular go-to destination for help documentation on Linux.
推薦閱讀
- C語言程序設(shè)計(jì)(第3版)
- 零基礎(chǔ)玩轉(zhuǎn)區(qū)塊鏈
- SEO智慧
- Python編程:從入門到實(shí)踐
- C專家編程
- C# and .NET Core Test Driven Development
- .NET Standard 2.0 Cookbook
- 汽車人機(jī)交互界面整合設(shè)計(jì)
- Photoshop CC移動(dòng)UI設(shè)計(jì)案例教程(全彩慕課版·第2版)
- OpenCV 3.0 Computer Vision with Java
- Drupal 8 Development Cookbook(Second Edition)
- C/C++代碼調(diào)試的藝術(shù)(第2版)
- Web前端測試與集成:Jasmine/Selenium/Protractor/Jenkins的最佳實(shí)踐
- Developing Java Applications with Spring and Spring Boot
- 虛擬現(xiàn)實(shí):引領(lǐng)未來的人機(jī)交互革命