You are on the right track. first, try simple commands in a terminal window, eg
ls -l > dirdump
cat dirdump (You should see your listing)
If your command doesn't write the file, then there is something different about it. i.e. --normally--if a command puts output on the screen, then > filename puts that same output in a file.
Lot's of good tutorials out there----type "redirection in linux" in a Google search, and you'll find lots---I've got a good one from linuxsa.org.au