saving output of nettop to file ( mac ) saving output of nettop to file ( mac ) shell shell

saving output of nettop to file ( mac )


You can redirect the output of any terminal program to a file using the > character. in the terminal try: nettop > output.txt

that will save the output of nettop to the file output.txt. If you want to view the output from nettop and save it at the same time, try this: nettop | tee output.txt

that will "pipe" the output to the program "tee" which will print it to the terminal and write it to the file.