ups

Software besorgen und anwenden
Post Reply
Message
Author
getconf

ups

#1 Post by getconf »

Hallo,

was genau bedeutet der Befehl getconf?

Code: Select all

man getconf
NAME
       getconf - Query system configuration variables

SYNOPSIS
       getconf [-v specification] system_var

       getconf [-v specification] path_var pathname
Ich hätte nun die Beschreibung so gedeutet, das er die Umgebungsvariablen ausgibt.
Ist aber irgendwie nicht voll richtig:

Code: Select all

oem@pluto /usr/bin $ getconf PATH
/bin:/usr/bin
oem@pluto /usr/bin $ echo $PATH
/home/oem/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
Kleiner Unterschied :(

Gruß
ups

sumsi

getconf

#2 Post by sumsi »

Moin,

getconf dient mehr zur Ausgabe von Linux-System-Parametern.

Im Fall des Pfades ist dieser wohl fest im Kernel :)

Bessere, typische beispiele sind:

getconf ARG_MAX ... max Größe eines Befehles
getconf LOGNAME_MAX .. max Größe des Nutzernamens
getconf PAGESIZE (evtl PAGE_SIZE)

bye sumsi

Post Reply