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?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Go to terminal and type:
user@ubuntu:~$ top > filename.txt
The output of top command will be now stored in a text file which is located in your Home directory.
See: Bash scripting Tutorial.