هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.
ماذا يفعل
Some tools, mainly the GNU tools (coreutils, bash, grep, sed, tar), have a full manual in info format. It is longer than the man page and split into nodes (chapters) with links.
Keys in info: Space = next page, n/p = next/previous node, u = up, Enter on a link = follow it, l = back, s = search, q = quit. pinfo is a friendlier viewer with colors (when it is installed).
The exam objectives name "man, info and /usr/share/doc": know where to look.
طريقة الكتابة
info [OPTION]... [MENU-ITEM...]
pinfo [OPTIONS] [INFO-PAGE]الخيارات 13
الأكثر استخدامًا
لا يوجد شيء يطابق هذا الفلتر.
أمثلة 11
$ مستخدم عادي# بصلاحية root (أو مع sudo)
1Open the coreutils manual
info coreutilsAll basic commands (ls, cp, sort …) in one manual with chapters.
2Open the part about one command
info coreutils 'ls invocation'Goes straight to the node about ls.
3Search all info indexes
info -k "time style"Lists the nodes where the topic is explained.
4Read the bash manual
info bashThe complete Bash reference: expansions, built-ins, variables.
5Save a chapter as text
info coreutils 'sort invocation' -o sort.txtRead it later or add it to your notes.
6Find where an info manual lives
info -w grep /usr/share/info/grep.info.gzShows the file and the package documentation.
7Use pinfo for easier navigation
pinfo tarArrow keys and Enter follow links;
qquits.8Open the GNU sed manual for regex details
info sed 'Regular Expressions'The info manual explains BRE and ERE better than the man page.
9Look for extra documentation files
ls /usr/share/doc/chrony/Many packages add examples and README files in /usr/share/doc.
10Find documentation files of a package
rpm -qd openssh-serverLists the documentation files that the package installed.
11Use info when the man page is short
Many GNU man pages end with "Full documentation … or available locally via: info '(coreutils) ls invocation'".
لا يوجد شيء يطابق هذا الفلتر.
انتبه
- Not every tool has an info manual. If none exists,
info NAMEshows the man page instead. - Minimal installs may miss the
infopackage; install it withdnf install info.
الملفات
/usr/share/info/- The info manuals.
/usr/share/doc/- Extra documentation, examples and READMEs per package.
نصائح للحفظ
- man = short and exact. info = long and with chapters. /usr/share/doc = examples.