История команды терминала для подачи

# Creates txt file named foo of cmd hist but not showing previous sessions idk why!!
history > foo.txt
Agrius