Linux Cheat Sheet

From
Jump to: navigation, search

This Page is for a Cheat Sheet of Linux commands.


Overwrite File with specific content/string:

Command:

echo "<string>" > <filename>

printf "<string>" > <filename>

Example:

echo "hello" > beispiel.txt

printf "hello" > beispiel.txt

Append File with specific content/string:

Command:

echo "<string>" >> <filename>

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

Example:

echo "hello" >> beispiel.txt

printf "hello" >> beispiel.txt