If you'd like an alias placed only for a particular user, use the following file:
which expands to /home/user/.bashrc
Please note that you do not necessarily have to use touch in the above example:
alias createfile="echo 'Hello' >> /path/to/file"
---------- Post added 13th Dec 2012 at 10:35 AM ----------
Originally Posted by walecole
am trying to create an alias that will create a file and add one string hello to tis same file i used ls -la command but it did not work,could you help me
Can you give an example?