Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I have installed sun solaris on my pc and try to configure it, but to be honest i do not have no clue about unix.
I created some alias which works and put some new variables in my env like
alias rm='rm -i' and
export EDITOR=/usr/bin/vi
EDITOR is on my env now and I can use rm which will prompt me to the question if I want to delete the file y/n. Everything is fine till now, however when I logout and than login again, neither my Editor is there nor my alias. I have read they should be configured in my .profile? I do not have a .profile in my home directory, all what I have is there is lost+found folder. I searched in /etc/ as well and there i have just profile which is a generic one. Do I need to create a .profile? How do I do this? I tried simply to create a file with touch .profile, but it says permission denied. Does the ksh shell uses an other file to configure itself apart from .profile?
Can somebody help me? I know there are many questions but any help would be appreciate.
Regards
Giuliano

Sign in as a non-root user. Type
pwd
You should have something like
/home/username
Unless you are not the owner of your directory, for some reason like you did mkdir /home/username as root you should be able to edit files in your own directory.
echo "alias rm='rm -i'" > .profile
should create the .profile file with that line. You can also use vi if you like
vi .profile

![]() |
inserting data into a fil...
|
man command
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |