![]() User can create a new file using ‘Cat’ command in unix.Using shell prompt directly user can create a file.Using ‘Cat’ command user will able to open a specific file also.If user wants to process the file and append data to the specific file use ‘Cat’ command.Īfter Completion of your text you need to press Control + d which is used to save the file and come out of the prompt.The above statement will create a file named ‘Amit_new.txt’.įor Creating file operator (>) is mandatory. ![]() User can create a file in unix using following ways:Ĥ.Using Different text editors-Vi,emac 1.Cat Command in unix: In previous article i have explained the basic unix commands which are useful to the programmers.In this article i will explain the different ways to create a file with real life examples in detail.All data in unix is organized in to files.This article is about to create a file using multiple ways in unix.You can create file in unix using different unix commands.I will explain the Cat command and Touch command with real life examples also.The 100% asked interview question is what is difference between CAT and touch Command in unix?You can create file in unix using Command line prompt or using unix editors.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |