How do I save result of a command in a textfile?
Eg, storing result of dpkg --get-selctions in a file named packages.txt
Use redirect >
For example: dpkg --get-selections > pkg.list
dpkg --get-selections > pkg.list
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the privacy policy and terms of service.
tagged
asked
6 months ago
viewed
38 times
active