Score:0

How can I execute a command shotcut inside a command in terminal?

in flag

Does anybody know how can I execute a command shotcut inside a command ? For example, I have: alias cdp='cd /home/username' inside ~/.bashrc I want to execute: mv A cdp where A is a folder But it doesnt work, does anybody know how can I do that ?

Thank you !

FedKad avatar
cn flag
You cannot use an alias as a parameter to a command. In your example, it wouldn't be meaningful anyway... Try to use shell variables instead.
vanadium avatar
cn flag
Does this answer your question? [How to run an alias in a shell script?](https://askubuntu.com/questions/98782/how-to-run-an-alias-in-a-shell-script)
Hamza Ben Cheikh avatar
in flag
Yes, it does, thank you so much !
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.