Linux wie man in Datei schreibt

#write to file and delete previous text
cat > file
#write to file and connect to the end of the text
cat >> file
KeWols