Append to a file

#lsattr can the file be append to

lsattr filename.sh

#'a' means that the file can be append to

----a-----------e------ filename.sh

echo "cat /root/root.txt >> /home/user/root.txt" | tee -a cronShell.sh

echo "cp file.txt /home/user/file.txt"

Last updated