Linux Cheat Sheet

From
Revision as of 08:01, 29 January 2025 by Connybw (talk | contribs) (Append File with specific content/string:)
Jump to: navigation, search

This Page is for a Cheat Sheet of Linux commands.


Overwrite File with specific content/string:

echo "<string>" > <filename>

printf "<string>"" > <filename>

Beispiel: echo "hello" > beispiel.txt

printf "hello" > beispiel.txt

Append File with specific content/string:

echo "<string>" >> <filename>

printf "<string>"" >> <filename>

Beispiel: echo "hello" >> beispiel.txt

printf "hello" >> beispiel.txt