ls > /home/tc/dirtest.txt
こんな風にリダイレクトして
cat /home/tc/dirtest.txt
vi /home/tc/dirtest.txt
editor /home/tc/dirtest.txt
ということじゃないのでしょうか?