echo
Print given arguments. More information: https://www.gnu.org/software/coreutils/echo.
- Print a text message. Note: quotes are optional:
echo "{{Hello World}}"
- Print a message with environment variables:
echo "{{My path is $PATH}}"
- Print a message without the trailing newline:
echo -n "{{Hello World}}"
- Append a message to the file:
echo "{{Hello World}}" >> {{file.txt}}
- Enable interpretation of backslash escapes (special characters):
echo -e "{{Column 1\tColumn 2}}"
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.