user@hostname:~$ echo "`"
> _
(_
is input, i think)
CodePudding user response:
Escape the grave accent. It's special to the shell and is one way (the archaic one) to do command substitution.
echo \`
As noted by @dave_thompson_085 an alternative is to use single quotes in lieu of the double quotes you used, or to specify the hexadecimal representation of the grace accent, by doing echo "\x60"
. You can find the hexadecimal equivalents of ASCII characters from the ascii
manpages.