creating an alias in ubuntu , in .profile

烈酒焚心 提交于 2019-12-04 15:07:50

What happens if you log out and back in?

Alternatively you could just type

source .profile

and that should activate your alias. Many people using bash set their aliases up in the .bashrc file.

Arvind

to add alias permanent you can edit ~/.bashrc and add alias to it

gedit ~/.bashrc

add alias at the end

alias update_linux='sudo apt-get update'

dont forget to refresh bashrc configuration.

source ~/.bashrc

for more details on creating alias you can read following blog: Codebucket

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!