I am running Ubuntu 12.04. In my accounts .bashrc
file I have the line
alias ftreport='cd / && sudo tree > /home/<user name here>/Documents/Reports/Tree_$(date +%s).txt'
After typing the command ftreport
, I get
bash: /home/<user name here>/Documents/Reports/Tree_<epoc time here>.txt: No such file or directory
The command ftreport
must output my system's file tree in my ~/Documents/Reports folder with the file title consisting of "File", an underscore, the epoch time, and ".txt". What is wrong and what should it be?
Make sure that you change
<user name here>
to your username. And make sure that you can write in the~/Documents/Reports
folder.Seems to work...