echo > 1.txt
 
vim top.sh
 
#!/bin/sh
export TERM=linux
top -b -n 1 >> 1.txt
 
 
vim /etc/crontab
 
*/1 * * * *  sh top.sh