Koozali.org: home of the SME Server

Alias and hdparm

Luckydog

Alias and hdparm
« on: November 03, 2001, 06:34:38 AM »
Allright - stupid newbie type question........

When  I logon as root I issue the following alias:

alias dir='ls -l'

Now that works fine, but when I logoff it disappears.
I edited /etc/bashrc and added the alias but it doesn't seem to work.
What am I doing wrong?



Also,   I edited hdparm in /etc/rc.d/init.d and added -S 100
to create the following line:
 hdparm -q -c1 -q -A1 -q -m16 -q -d1 -S 100 /dev/$i

This is to get the harddisk to spin down when the machine is idle
(which it is about 12 hours a day)...   Is this the right way to do it?

Ari

Re: Alias and hdparm
« Reply #1 on: November 03, 2001, 07:35:55 AM »
>Now that works fine, but when I logoff it disappears.
>I edited /etc/bashrc and added the alias but it doesn't seem to work.
>What am I doing wrong?

# pico /root/.bashrc

(note the "." in front of bashrc)

put the
     alias ls="ls -l"
statement there.

Ari

Luckydog

Re: Alias and hdparm
« Reply #2 on: November 03, 2001, 07:49:21 AM »
Thanks,

That works a treat.

Rediscovered   'ls -a' at the same time!