grep
command which is handy for searching the contents of files./usr/local/bin/command
with the path to the command you wish to test for./file/to/create
. All of the text between the EOF
markers will be put in the file verbatim. This is known as a Here Document or a HEREDOC. Warning: if the file already exists it will be overwritten!/file/to/append
. The only difference between this and the previous example is that we use two >>
symbols instead of one. This is generally safer than the previous example because it can still create the file if it doesn't exist and reduces the risk of overwriting an important file.in
, out
and err
), and wrap the command with nohup