Axis 2401 - PHP3 GUIDE Technické informace Strana 50

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 85
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 49
An Introduction to Shells in General
Axis Communications AB provides NO support for application development of any kind. The information
here is provided "as is", and there is no guarantee that any of the examples shown will work in your
particular application.
Revision 1.02 October 2002 50
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
5.3.20 hostname
Syntax: hostname [OPTION] {hostname | -F file}
Get or set the hostname or DNS domain name. If a hostname is given (or a file with the -F
parameter), the host name will be set.
Options:
-s Short
-i Addresses for the hostname
-d DNS domain name
-F, --file FILE Use the contents of FILE to specify the hostname
Example:
$ hostname
slag
5.3.21 id
Syntax: id [OPTIONS]... [USERNAME]
Print information for USERNAME or the current user
Options:
-g prints only the group ID
-u prints only the user ID
-n print a name instead of a number (with for -ug)
-r prints the real user ID instead of the effective ID (with -ug)
Example:
$id
uid=1000(andersen) gid=1000(andersen)
5.3.22 init
Syntax: init
init is the parent of all processes. This version of init is designed to be run only by the
kernel.
BusyBox init doesn't support multiple runlevels. The runlevels field of the /etc/inittab
file is completely ignored by BusyBox init. If you want runlevels, use sysvinit.
BusyBox init works just fine without an inittab. If no inittab is found, it has the following default
behavior:
::sysinit:/etc/init.d/rcS
::askfirst:/bin/sh
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
If it detects that /dev/console is _not_ a serial console, it will also run:
Zobrazit stránku 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 84 85

Komentáře k této Příručce

Žádné komentáře