I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / 3Com Audrey
Aliases

New MessageAliases (modified 0 times) booya
Profile
Ok.. I prefer to ls with the -F variable for better listing of files, but I do not like typing -F everytime.
I can easily do an alias i.e. alias ls='ls -F' that works fine for that session but when I exit the shell it does not stay. How can I load up alias's when I open a pterm shell?

Thanks.

02-24-2002 16:32:07

New MessageRE:Aliases (modified 0 times) SystemV
Profile | Email
I haven't looked yet, but there must be a .profile or some-such-thing that sets the user environment when the shell starts. I checked the environment variables by using the set command and discovered that many of them are CGI environment vars...... but there are also normal shell env-vars like ps1, ps2, etc. Once you find where those env-vars are being set, you should be able to insert the alias commands and then have those aliases active when you start the shell.

An alternative is to create your own shell file with your alias commands, make it executable, and just run that shell script as the first thing you do when you start a shell.

02-24-2002 20:56:28

New MessageRE:Aliases (modified 1 times) booya
Profile
I created a .profile in the home directory for user root..
based on my passwd file user root has the home directory of /root
# cat /etc/passwd
root:x:0:0:Superuser:/root:/bin/ksh
^home directory

so I created the file
/root/.profile
it contains these lines

alias ls='ls -F'
cd /

so now when I telnet to Audrey and type ls I see directories marked with trailing /'s and executables with *'s

# ls /
.cmp/ bin@ data/ etc/ ls nto/ root/ tmp/
Physical# config/ dev/ kojak/ music/ proc/ temp/ usr/


Get help, chat, and be merry..
Join #audrey on Efnet
03-16-2002 17:38:03

New MessageRE:Aliases (modified 0 times) jhd3rd
Profile
You can make settings permanent by putting them in /kojak/go. You can also put your settings in /etc/profile.
03-16-2002 17:51:04

New MessageRE:Aliases (modified 1 times) booya
Profile
jhd3rd, thanks.. is /etc/profile used if .profile is not in a users home directory?
Get help, chat, and be merry..
Join #audrey on Efnet
03-16-2002 19:28:51

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3