GNU – touch

This simple command is able to do a few things. If you read the man description it will tell you this:

touch - change file timestamps

so basically this tool changes the timestamp of a file, but it can also do:

A FILE argument that does not exist is created empty, unless -c or -h is supplied

which is what people usually use this command for. So the next time you need to create an empty file, in a fast and simple way, just type:

touch filename

and a new empty file named filename will be created for you. As allways check the man page for more information

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *