User Tools

Site Tools


wiki:quoting

Quoting

You can prevent the shell from interpreting a metacharacter by placing a backslash ().
In this way the metacharacter become a normal character.
e.g.

cp file1 file\?

file1 will be copied to file? You can also insert the metacharacter between quotation marks.

   ls /dev/"tt*"

Compare the difference

   ls /dev/tt*
wiki/quoting.txt · Last modified: 2017/12/05 22:53 (external edit)