Technopedia Center
PMB University Brochure
Faculty of Engineering and Computer Science
S1 Informatics S1 Information Systems S1 Information Technology S1 Computer Engineering S1 Electrical Engineering S1 Civil Engineering

faculty of Economics and Business
S1 Management S1 Accountancy

Faculty of Letters and Educational Sciences
S1 English literature S1 English language education S1 Mathematics education S1 Sports Education
teknopedia

teknopedia

teknopedia

teknopedia

teknopedia
  • Registerasi
  • Brosur UTI
  • Kip Scholarship Information
  • Performance
  1. Weltenzyklopädie
  2. true (Unix) – Wikipedia
true (Unix) – Wikipedia
aus Wikipedia, der freien Enzyklopädie

true (/bin/true) ist ein Programm in Unix-Systemen. Sein Verhalten ist für UNIX-Systeme durch den POSIX-Standard[1] genormt.

Das Programm liefert bei der Ausführung den Rückgabewert 0, welcher konventionsgemäß von Shells bzw. deren Verzweigungskonstrukten als logisches wahr bzw. richtig interpretiert wird. stdout bleibt leer. Sein sonstiges Verhalten entspricht dem anderer Kommandozeilenprogramme.

In manchen Shells ist true als built-in ausgeführt, um den sonst notwendigen zusätzlichen fork() zu ersparen und damit die Ausführungsgeschwindigkeit zu verbessern, allerdings stellt der POSIX-Standard (Base Specifications Issue 7, 2018 Edition) fest[1], dass true aus Kompatibilitätsgründen weiterhin im Standard behalten wird. Unter Application Usage wird stattdessen das Null-Kommando (:) empfohlen.[2]

Ebenso wie sein Schwesterprogramm false dient true dem Shellscripting, wo sie für Konditionsprüfungen eingesetzt werden.

Siehe auch

[Bearbeiten | Quelltext bearbeiten]
  • false (Unix)

Weblinks

[Bearbeiten | Quelltext bearbeiten]
  • true(1): BSD-Variante – OpenBSD General Commands Manual
  • true(1): GNU-Variante – Debian GNU/Linux Ausführbare Programme oder Shell-Befehle Handbuchseite

Einzelnachweise

[Bearbeiten | Quelltext bearbeiten]
  1. ↑ a b The Open Group Base Specifications Issue 7, 2018 edition; IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008)
  2. ↑ wörtlich (ibd.): The special built-in utility : is sometimes more efficient than true.
Unix-Befehle der GNU Core Utilities
Dateien

chgrp | chown | chmod | cp | dd | df | dir | dircolors | install | ln | ls | mkdir | mkfifo | mknod | mv | rm | rmdir | shred | sync | touch | vdir

Text

awk | cat | cksum | comm | csplit | cut | expand | fmt | fold | head | join | md5sum | nl | od | paste | ptx | pr | sha1sum | sed | sort | split | sum | tac | tail | tr | tsort | unexpand | uniq | wc

Shell

basename | chroot | date | dirname | du | echo | env | expr | factor | false | groups | hostid | id | link | logname | nice | nohup | pathchk | pinky | printenv | printf | pwd | readlink | seq | sleep | stat | stty | tee | test | true | tty | uname | unlink | users | who | whoami | yes

Abgerufen von „https://de.teknopedia.teknokrat.ac.id/w/index.php?title=True_(Unix)&oldid=237925907“
Kategorien:
  • GNU Core Utilities
  • Unix-Software
  • Unix-Betriebssystemkomponente

  • indonesia
  • Polski
  • العربية
  • Deutsch
  • English
  • Español
  • Français
  • Italiano
  • مصرى
  • Nederlands
  • 日本語
  • Português
  • Sinugboanong Binisaya
  • Svenska
  • Українська
  • Tiếng Việt
  • Winaray
  • 中文
  • Русский
Sunting pranala
Pusat Layanan

UNIVERSITAS TEKNOKRAT INDONESIA | ASEAN's Best Private University
Jl. ZA. Pagar Alam No.9 -11, Labuhan Ratu, Kec. Kedaton, Kota Bandar Lampung, Lampung 35132
Phone: (0721) 702022
Email: pmb@teknokrat.ac.id