how can I setup an alias so it will be in cli everytime I start up my pc
I want to create a shutdown command
#alias s="sudo shutdown -h now"
[SOLVED] alias
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Topics in this forum are automatically closed 6 months after creation.
[SOLVED] alias
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: alias
Edit the .profile file in your home folder (press Ctrl+H in your file manager to show hidden files like this one), and add the following line at the end:
Code: Select all
alias s="sudo shutdown -h now"