reboot or fastboot Command

Purpose

Restarts the system.

Syntax

{ reboot | fastboot } [ -l ] [ -n ] [ -q ] [ -t mmddHHMM [ yy ] ]

Description

The reboot command can be used to perform a reboot operation if no other users are logged into the system. The lsattr command and enter lsattr -D -l sys0. The default value is true. To reset the autorestart attribute value to false, use the /var/adm/wtmp, the login accounting file. These actions are inhibited if the -l, -n, or -q flags are present.

The fastboot command restarts the system by calling the reboot command. The fsck command runs during system startup to check file systems. This command provides BSD compatibility.

Flags

Item Description
-l Does not log the reboot or place a shutdown record in the accounting file. The -l flag does not suppress accounting file update. The -n and -q flags imply -l.
-n Does not perform the sync command. Use of this flag can cause file system damage.
-q Restarts without first shutting down running processes.
Note: A file system synchronization will not occur if the -q flag is used. If you want the file system to be synchronized, manually run the sync command or use the shutdown -r command.
-t Shuts down the system immediately and then restarts the system on the specified date. A valid date has the following format:

mmddHHMM [ yy ]

where:

mm
Specifies the month.
dd
Specifies the day.
HH
Specifies the hour.
MM
Specifies the minute.
yy
Specifies the year (optional). The two digit value represents the value of the year in the current century (based on the system time). For example, if the current year based on the systems time is 1985, 99 means 1999 and if the current year is 2005 then 99 means 2099 and 04 means 2004.

Security

Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

To shut down the system without logging the reboot, enter:

reboot  -l

Files

Item Description
/etc/rc Specifies the system startup script.
/var/adm/wtmp Specifies login accounting file.