W
W
wolverine7772019-06-06 16:04:44
linux
wolverine777, 2019-06-06 16:04:44

How to write alias in .profile so that they are not deleted after putty is closed?

Hello, today I learned what alias is! Super convenient, of course, but I found that after closing putty, they are all erased from memory!
I casually heard that in order to avoid this - you need to register them in .profile ...
5cf90f629f26f980790655.png
But it does not work like that - do not tell me how? Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2019-06-06
@wolverine777

How did you determine what wasn't working?
After the profile was corrected, did you log in again?
.profile is loaded upon login.
Log in and check again.

V
Vladimir, 2019-06-06
@MechanID

Try adding aliases to .bashrc in your user's home directory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question