Belirli bir komut için uygun man bölüm / bölüm nasıl bulunur? [çift]


1

Bu sorunun burada zaten bir cevabı var:

Örneğin: ls komut sadece 1. bölüm var mkdir komut bölüm 1 & amp; var 2. Belirli bir komut için kaç bölümün mevcut olduğunu gösteren herhangi bir komut var mı?

[root@localhost /]# man 1 ls
[root@localhost /]# man 2 ls
No entry for ls in section 2 of the manual
[root@localhost /]# man 3 ls
No entry for ls in section 3 of the manual
[root@localhost /]# man 4 ls
No entry for ls in section 4 of the manual
[root@localhost /]# man 5 ls
No entry for ls in section 5 of the manual
[root@localhost /]# man 6 ls
No entry for ls in section 6 of the manual
[root@localhost /]# man 7 ls
No entry for ls in section 7 of the manual
[root@localhost /]# man 8 ls
No entry for ls in section 8 of the manual

[root@localhost /]# man 1 mkdir
[root@localhost /]# man 2 mkdir
[root@localhost /]# man 3 mkdir
No entry for mkdir in section 3 of the manual
[root@localhost /]# man 4 mkdir
No entry for mkdir in section 4 of the manual
[root@localhost /]# man 5 mkdir
No entry for mkdir in section 5 of the manual
[root@localhost /]# man 6 mkdir
No entry for mkdir in section 6 of the manual
[root@localhost /]# man 7 mkdir
No entry for mkdir in section 7 of the manual
[root@localhost /]# man 8 mkdir
No entry for mkdir in section 8 of the manual

Bu aslında inanıyorum bir kopyası değil. Bir bölüm saymak istiyor, bir yer değil
— Journeyman Geek

@JourneymanGeek Eğer ararsanız man -a -w $command Bu ne alırsın, bu yüzden bir dupe.
— slhck

Yanıtlar:


0

Kullan apropos -e ls - bu tam eşleşmeler için ve çok fazla sert yerinde komutu bir dize için manpage başlıklarını arayacaktır. Söz konusu girişin yanındaki sayı, örneğin kaçtığım zamanki bölüm sayısıdır. apropos -e mkdir

mkdir (1)            - make directories
mkdir (2)            - create a directory

İken çıktı apropos -e ls gösterileri

dircolors (1)        - color setup for ls
ls (1)               - list directory contents

Komut adının yanındaki parantez içindeki sayı bölüm numarasıysa, bu işlemi yapamadığımı itiraf ediyorum, ancak bu komut kullanılacaktır.


Olumlu cevabınız için teşekkürler! denedim yerinde ama -e çalışmıyor. Ayrıca adam apropos ile kontrol, böyle bir parametre göstermez. Lütfen bu konuda daha fazla rehber sağlayabilir misiniz? Çok teşekkürler.
— user3134198

Adam sayfasından çıkardığımdan beri bu garip. Önceki düzenlememe göre e'siz deneyin ve çıktıya bakın.
— Journeyman Geek
Sitemizi kullandığınızda şunları okuyup anladığınızı kabul etmiş olursunuz: Çerez Politikası ve Gizlilik Politikası.
Licensed under cc by-sa 3.0 with attribution required.