Linux Cheat Sheet
This Page is for a Cheat Sheet of Linux commands.
Contents
Overwrite File with specific content/string:
echo "<string>" > <filename>
printf "<string>"" > <filename>
Example:
echo "hello" > beispiel.txt
printf "hello" > beispiel.txt
Append File with specific content/string:
echo "<string>" >> <filename>
printf "<string>"" >> <filename>
Example:
echo "hello" >> beispiel.txt
printf "hello" >> beispiel.txt