LinuxCommandLibrary

ascii

TLDR

Show aliases for character

$ ascii a
copy
Script-friendly output
$ ascii -t a
copy
Show for multiple characters
$ ascii -s tldr
copy
Table in decimal
$ ascii -d
copy
Table in hexadecimal
$ ascii -x
copy
Table in binary
$ ascii -b
copy

SYNOPSIS

ascii [OPTIONS] [characters]

DESCRIPTION

ascii displays ASCII character information including aliases, numeric codes in various bases, and provides quick ASCII table lookups for character encoding reference.

PARAMETERS

-t

Terse mode for script-friendly output
-s
Process multiple characters in string
-d
Display ASCII table in decimal
-x
Display ASCII table in hexadecimal
-o
Display ASCII table in octal
-b
Display ASCII table in binary

CAVEATS

Without arguments, shows options summary and complete ASCII table. Character aliases include common names like NUL, TAB, LF, CR, ESC, DEL for control characters.

HISTORY

ascii was written by Eric S. Raymond as a handy ASCII reference utility.

SEE ALSO

man(1), charmap(1)

Copied to clipboard