In this series of mini posts I will teach you a Linux lesson every day, it can be command , tricks , how to. The post will cover for beginner to advanced level. Welcome to Linux terminal.Follow us and start learning Linux today
how to output a command result to a file?
In Linux we can output command result directly to a file using output operator(>). Suppose we want to list directory and redirect to to it a file called mydir, here is the trick
ls > mydir cat mydir
You may love to learn following Linux commands and tutorials