I'd like to create alias by script, and use it in bash.
Namely:
#!/bin/bash
alias mycmd="ls -la"
Bash:
login@host ~$: ./script
login@host ~$: mycmd
*ls output*
Of course, alias should be available just for one session (not .bashrc etc). Is it possible? Unfortunately I have not found a solution.