Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, I am trying - in the .cshrc file - to make a new alias which enables me to replace the (ls -lrt) command with the letter (a). How ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2011
    Posts
    2

    alias


    Hi all,

    I am trying - in the .cshrc file - to make a new alias which enables me to replace the (ls -lrt) command with the letter (a).

    How can I do that?

    I tried this line, but it is not working
    alias a 'ls -la'


    Thanks
    Taiseer

  2. #2
    Banned
    Join Date
    Feb 2010
    Posts
    31
    I think the syntax is:
    alias a='ls -lrt'
    Notice no spaces around the = sign.
    After you edited the .cshrc file don't forget to reload it.
    . ./.cshrc
    Last edited by oz; 09-24-2011 at 12:25 PM. Reason: SPAM removal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •