Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Return color labeling to the ls command' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Return color labeling to the ls command
Authored by: deleted_user18 on Oct 30, '03 01:21:02AM

This is great!

How can I make it work with "ll" with is a alias of ls Apple made for the tcsh.



[ Reply to This | # ]
10.3: Return color labeling to the ls command
Authored by: iu-macboy on Oct 30, '03 08:21:48AM
for the tcsh shell, issue this command...

alias ll 'ls -alG'

Then type ll. Presto! You can do the same for the ls too...

alias ls 'ls -G'

To do this in bash, use...

alias ll='ls -alG' and alias ls='ls -alG', respectively.

---



[ Reply to This | # ]

Correction...
Authored by: iu-macboy on Oct 30, '03 09:47:18AM
the last line should be...

alias ll='ls -alG' and alias ls='ls -G'

---



[ Reply to This | # ]

10.3: Using ~/.tcshrc file to make Permanent Aliased Commands
Authored by: SuperGenius on Oct 30, '03 10:08:17AM
You can make this addition once; you never have to issue another command.

To make ll always do what you want, place the following entry in your ~/.tcshrc file. (Create the ~/.tcshrc file if it doesn't already exist. That's a file called .tcshrc in your home directory). Add the following line to this file :

alias ll 'ls -l'
You can also add any other flags after the " -l " to customize your file-listing experience. See the man page for ls (type " man ls ") to see all the options that you can use to customize the ls command.

[ Reply to This | # ]