Write and append data into a file in Linux Hi guys! we already started and learnt some linux commands and as I mentioned earlier, in this article we are going to see / refresh about writing and appending data into a file in Linux. We're going to see the below commands usage in Linux. touch - To create a file cat - To read a file ls - list the current directory files > - To write data into a file >> - To append data into a file Please look into the below image.