I want to write batch or something, that will write output of
top into a file on login.
top >> output-file but it contains some strange character!
can somebody give a simple tutorial about how to write batch file in linux?
Try the following
Goto terminal and type:
The output of top command will be now stored in a text file which is located in your Home Directory.
Learn Bash Scripting: