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