01 / 08
Who decided on 644?
Let us start with the question you should have noticed last lesson.
~ $ touch new.txt~ $ stat -c %a new.txt644Nobody asked for it and it came out 644. You typed no chmod.
Where does that number come from? It is not touch that decides, because making it with echo hi > file.txt or copying it with cp gives you 644 as well.
What decides is a setting called umask. Today you learn to read it.