I recently found myself interested in piping some terminal output to a file, but I could not remember the proper command to do so, and it took some effort to Google my way to the right command.
command > nameoftextfile.txt --- This overwrites the textfile.
command >> nameoftextfile.txt --- This appends new entries to the textfile.
No comments:
Post a Comment