Hello, why doesn't alias work in scripts? I run the script, for example, with alias ll="ls -l", but after executing it, no new alias is added. What could be the problem?
Aliases only work in interactive shell mode.
When run in scripts, they will not work.
If you need, use functions - they can also replace alias and will work in scripts