
58
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
-v Verbose mode.
-w Test by writing to each block and then reading back from it.
banner
banner [option] [characters]
Print characters as a poster. If no characters are supplied, banner
prompts for them and reads an input line from standard input. By
default, the results go to standard output, but they are intended to
be sent to a printer.
Option
-w width
Set width to width characters. Note that if your banner is in all
lowercase, it will be narrower than width characters. If -w is
not specified, the default width is 132. If -w is specified but
width is not provided, the default is 80.
Example
/usr/games/banner -w50 Happy Birthday! |lpr
basename
basename name [suffix]
basename option
Remove leading directory components from a path. If suffix is
given, remove that also. The result is printed to standard output.
This is useful mostly in a script when you need to work with a file-
name but can’t predict its full path in every instance.
Options
--help
Print help message and then exit.
--version
Print the version number and then exit.
Examples
$ basename /usr/lib/libm.a
libm.a
$ basename /usr/lib/libm.a .a
libm
bash
bash [options] [file [arguments]
sh [options] [file [arguments]]
Standard Linux shell, a command interpreter into which all other
commands are entered. For more information, ...