![]() ![]() ![]() $ touch ~/Downloads/sample_file1 sample_file5 ~/Documents/sample_file6Ĭreate File in Different Directory Create File Using Vim and Nano Editors You can also create the file in another directory by specifying the full path to the directory location. The touch command will throw an error if any of the files already exist. To create multiple files at once, pass multiple file names as arguments: $ touch sample_file1 sample_file2 sample_file3 The touch command in Linux is used to create an empty file and the syntax for creating an empty file is as easy as: $ touch sample_file Today, we will see various ways to perform a simple and trivial task creating a new file, in Linux using the command line as well as the GUI. However, with the steady growth of Linux distributions in the home desktop market, the onus is on the developers to make the graphical interface as lay user friendly as possible. Linux based operating systems are known for their users’ heavy use of command line for performing not only complicated automation but also the most trivial of tasks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |