Monday, May 13, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 25071  / 2 Years ago, mon, february 21, 2022, 2:32:17

I have this as the last line in my .profile:



alias gl="cd /home/jrenner/glances/glances"


yet even after reboot I get command not found when typing gl. What is happening? I am logged in as the correct user.


More From » command-line

 Answers
4

I'm pretty sure that lpanebr's idea will work, but here's a more elegant solution. Do that alias command in .bashrc That's how I do it, or some people prefer to add a file dedicated to alias. Call it .alias or whatever and add .alias to your .bashrc



Wish I could do formatting like @lpanelbr. I wonder if there is a wiki?


[#32031] Tuesday, February 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
howesale

Total Points: 224
Total Questions: 117
Total Answers: 116

Location: Nauru
Member since Thu, May 18, 2023
1 Year ago
;