Echo (computing)
From Wikipedia, the free encyclopedia
- The correct title of this article is echo (computing). The initial letter is shown capitalized due to technical restrictions.
echo means several things in computing.
Contents |
[edit] Terminal command
echo is a command in Unix (and by extension, its descendants, such as Linux) and MS-DOS that places a string on the terminal. It is typically used in shell scripts and batch programs to output status text to the screen or a file.
$ echo This is a test. This is a test. $ echo "This is a test." > ./test.txt $ cat ./test.txt This is a test.
Some variants of Unix support options such as -n
and -e
. These are not standard[1] due to historical incompatibilities between BSD and System V; the printf command can be used in situations where this is a problem.
[edit] Ping
echo refers to a ping request. See RFC 792.
[edit] Server
An echo server is a standard service implementing the ECHO protocol that runs on TCP port 7. Intended for testing purposes, it replies to all packets with a packet containing the same data. It is rarely used in practice.
[edit] References
Unix command line programs (more) | |||
File and file system management: | cat | cd | chmod | chown | chgrp | cp | du | df | file | fsck | ln | ls | lsof | mkdir | more | mount | mv | pwd | rm | rmdir | split | touch | tree | ||
Process management: | anacron | at | chroot | crontab | kill | killall | nice | pgrep | pidof | pkill | ps | sleep | screen | time | timex | top | wait | ||
User Management/Environment: | env | finger | id | locale | mesg | passwd | su | sudo | uname | uptime | w | wall | who | whoami | write | ||
Text processing: | awk | cut | diff | ex | head | iconv | join | less | more | nkf | paste | sed | sort | tail | tr | uniq | wc | xargs | ||
Shell programming: | echo | expr | printf | unset | Printing: | lp |
Communications: inetd | netstat | ping | rlogin | traceroute |
Searching: find | grep | strings |
Miscellaneous: banner | bc | cal | man | size | yes |