Handling files and directories
In Linux, ‘Everything is a file’. This means that when we are dealing with normal text files or with device files, we interact with them through file operation related commands. Some operations on files are discussed below.
Creating a file: There are two commands to create a file: touch and cat. The touch command simply creates an empty file. Type the following command to create an empty document: