BlogBlog ÜbersichtjailscriptportsoptFreeBSDLinksThermoskanne

Befehle und Manpages finden mit apropos

Sucht man eine Manpage oder einen Befehl, weiss aber nicht genau wie er heisst, so kann einem apropos(1) weiterhelfen. apropos durchsucht die whatis Datenbank, welche wiederum aus den Namen und den Kurzbeschreibungen der Manpages besteht, und sucht darin nach dem Begriff. apropos kann ganz einfach verwendet werden:

# apropos <Begriff>

Möchte man zum Beispiel nach FreeBSD-Jails suchen, so verwendet man apropos wiefolgt:

# apropos jail
jail(2), jail_attach(2) - imprison current process and future descendants
jail(8) - imprison process and its descendants
jexec(8) - execute a command inside an existing jail
jls(8) - list active jails
prison_check(9) - determine if two credentials belong to the same jail

Dadurch dass man für den Begriff auch Regular Expressions verwenden kann, kann man zum Beispiel wie folgt nach Manpages suchen, die mit "port" beginnen:

# apropos ^port
ports(7) - contributed applications
portsnap(8) - fetch and extract compressed snapshots of the ports tree
portsnap.conf(5) - configuration file for portsnap(8)
port(1) - FreeBSD Port Tools front-end script
portaudit(1) - system to check installed packages for known vulnerabilities
portcvsweb(1) - a tool to instantly browse a history via CVSweb or FreshPorts.org
portdowngrade(1) - retrieve earlier port versions via CVS
portlint(1) - a verifier for port directories
portsclean(1) - a tool to clean ports/packages garbage
portsdb(1), ports_glob(1) - tools to manage and look up the ports database file
porttools(5), ~/.porttools(5) - FreeBSD Port Tools configuration file
portupgrade(1), portinstall(1) - tools to upgrade installed packages or install new ones via ports or packages
portversion(1) - a tool to compare the versions of installed packages with the ones in the ports tree

Mehr Informationen zu apropos in der Manpage apropos(1) und zu Regular Expressions in der Manpage von grep(1).

 Permalink