What is touch command? The touch command’s primary function is to modify a timestamp. Commonly, the utility is used for file creation, although this is not its primary function. The terminal program can change the modification and access time for any given file. The touch command creates a file only if the file doesn’t already exist.
Does touch work in Ubuntu? Yes Ubuntu does support touch screens. You can use LibreOffice (Free) and save the documents in Microsoft Office formats so others can open the file on their Windows computer.
How do I use touch command in Linux?
- touch filename. We can use the touch command to create new files by giving file names as the input.
- touch -a filename. The -a argument is used to change the access time of a file.
- touch -c filename.
- touch -c-d filename.
- touch -m filename.
How do you write touch command? Touch command Syntax to create a new file: You can create a single file at a time using touch command. The file which is created can be viewed by ls command and to get more details about the file you can use long listing command ll or ls -l command . Here file with name ‘File1’ is created using touch command.