Download Linux Pocket Guide
Transcript
mesg [y|n] /usr/bin stdin stdout - file -- opt --help SysVinit --version The mesg program controls whether talk and write connections can reach your terminal. mesg y permits them, mesg n denies them, and mesg prints the current status (y or n).* mesg has no effect on modern instant messaging programs like gaim. $ mesg is n $ mesg y tty /usr/bin stdin stdout - file -- opt --help coreutils --version The tty program prints the name of the terminal device associated with the current shell. $ tty /dev/pts/4 Screen Output echo printf yes seq clear Print simple text on standard output Print formatted text on standard output Print repeated text on standard output Print a sequence of numbers on standard output Clear the screen or window Linux provides several commands for printing messages on standard output, in case you like to talk to yourself: $ echo hello world hello world Each command has different strengths and intended purposes. These commands are invaluable for learning about * At press time, mesg y on Fedora fails with the error message, “tty device is not owned by group ‘tty’.” We expect this problem will get sorted out. 144 | Linux Pocket Guide