Save a Commands Output to a File


Let you redirect the output of a command to a file, giving you a saved data of whatever command produced in the Command Prompt window. An incredibly useful Command Prompt trick is the use of redirection operators, specifically the > operators. Heres how to Save a Commands Output to a File


Step 1 : open the command prompt (window + r) and type cmd.


Step 2 : Hit Enter.And type command like i have type netstat -ano > Techtrick.txt


Step 3 : You can type any command and after that just type > (file name).(extension)



Save a Commands Output to a File


Step 4 : Hit Enter.And in last command Just type Techtrick.txt



I hope you enjoyed this article.



Sharing is caring

google
linkedin

About Author

Akash is a co-founder and an aspiring entrepreneur who keeps a close eye on open source, tech giants, and security. Get in touch with him by sending an email (akashchugh1994@gmail.com).


You may also like :-




Leave a Comment

Your email address will not be published. Required fields are marked *




Stay Connected

Popular Posts

Get Latest Stuff Through Email


Who Should Read TechTrick?

All the tricks and tips that TechTrick provides only for educational purpose. If you choose to use the information in TechTrick to break into computer systems maliciously and without authorization, you are on your own. Neither I (TechTrick Admin) nor anyone else associated with TechTrick shall be liable. We are not responsibe for any issues that caused due to informations provided here. So, Try yourself and see the results. You are not losing anything by trying... We are humans, Mistakes are quite natural. Here on TechTrick also have many mistakes..