Create a separate file in your (ms1104) home directory that defines all of the aliases you use when you login as ms1104 by moving those alias definitions from your .profile (or whatever startup file your shell uses to define aliases when you login) file and adding a line in your .profile file to source that file. For example if you moved the alias definitions into .ms1104aliases, add the line:
to your .profile file.
Then after you sudo to user wisusr, run the command:
before you do anything else.
hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix.
please explain..
thanks (4 Replies)
Hi.
I have a C program that is using the **environ pointer and I am trying to set up aliases for a system("/bin/ksh") call. This works for other environment variables but not for the aliases. Does anyone know if this can be done? Thanks ahead of time. (1 Reply)
Hello:
i have several server with own etc aliases. right now i want to combine it all into a general etc aliases in a new freebsd server. cause it consist hundred thousand of record user inside how to make a shell script to combine it or configure it.
all etc aliases record example: ... (0 Replies)
Hello
I really wonder what's trap in etc/profile and in each user .profile.
I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing.
I want to know ...
1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Hello all,
Please my shell is ksh. I created .profile such that users can pick environments they want to use:
echo Select your Environment!!
echo " 1. Nigeria DEV"
echo " 2. UEMOA DEV"
echo " 3. CEMOA DEV"
echo "Make your choice : \c"
read choice
if
then
...
fi
if
then (6 Replies)
Hi,
I dont find any .profile under my user home directory.
These are the only files i see in my home directory.
# ls -laq
total 44
drwx------ 4 user1 adm 4096 Nov 23 05:10 .
drwxr-xr-x. 12 root root 4096 Nov 22 13:05 ..
-rw-r--r-- 1 user1 adm 18 Nov 22 13:05 .bash_logout... (3 Replies)