alias is set, but when I disconnect from the session and relogin, and try to use the same alias it doesnt work. I think i have to save my alias into enviornmental variables, but i dont know how to do this
run below command after adding the alias in .profile
. .profile
to remove if you want to remove from teh session only then unalias is fine, but for permanently removing delete the line from .profile and run the above code or unalias.
i knw it getting bit annoyed, but i really appreciate ur help
so one more question,
by running this command, what basically wil happen, i mean is this file only used for setting alias, as i cant take risk by executing such command on my running server as a lot of services running.
services will not normally read the .profile for commands. This file is read only for interactive , login shells. So there should be no risk to a running server.
However, if for some reason a service is started under a user via remote login shell (such as rsh, ssh), the .profile might be read.