clear (Unix)

{{lowercase|title=clear (Unix)}}

{{Infobox software

| name = clear

| logo =

| screenshot = Clear-gnulinux.gif

| screenshot size =

| caption = Clear being used on Linux under uxterm

| author = Computer Systems Research Group at the University of California, Berkeley

| developer = Various open-source and commercial developers

| released = {{Start date and age|1979|2|24}}

| latest release version =

| latest release date =

| operating system = Unix, Unix-like, V, KolibriOS

| genre = Command

| license =

| website =

}}

{{code|clear}} is a computer operating system command which is used to bring the command line on top of the computer terminal. It is available in various Unix shells on Unix and Unix-like operating systems as well as on other systems such as KolibriOS.{{Cite web|url=http://wiki.kolibrios.org/wiki/Shell|title=Shell - KolibriOS wiki}}

Depending on the system, clear uses the terminfo or termcap database, as well as looking into the environment for the terminal type in order to deduce how to clear the screen. The Unix command clear takes no arguments and is roughly analogous to the command cls on a number of other operating systems.

ISO standard 9995-7 specifies that the following symbol be used to indicate this function on a keyboard, which is included in Unicode as: ⎚ CLEAR SCREEN SYMBOL.{{Cite web|url=https://www.tresor.gouv.qc.ca/fileadmin/PDF/ressources_informationnelles/standard_clavier_quebecois/ISO_9995-7.pdf|title=ISO 9995-7}}

One may use the reset command to erase every previous command.

History

The clear command appeared in 2.79BSD on February 24, 1979. Later, in 1985, the command was also included in Unix 8th edition.{{Cite web|url=https://invisible-island.net/ncurses/man/clear.1.html|title = Clear 1}}

See also

References

{{Reflist}}

Further reading

  • {{Cite book|author-last=McElhearn|author-first=Kirk|title=The Mac OS X Command Line: Unix Under the Hood|date=2006|publisher=John Wiley & Sons|isbn=978-0470113851}}