tty#

tty command is a utility that allows users to print the current tty device or change the tty device associated with the shell.

Usage#

tty [OPTION] [path_to_device]
  • h: Displays help information.

  • path_to_device: Specifies the tty device to switch to. If this argument is omitted, the current tty device is printed.

Examples#

Print current tty device:

tty

Change tty device:

tty /dev/console

See also#

  1. Phoenix-RTOS shell

  2. Phoenix-RTOS Utilities

  3. Table of Contents