I'm encountering an issue where I'm unable to execute multiple alias commands at the same time in my shell environment. For example, when I try to run two alias commands together, only one seems to execute, or I get an error.
The below example shows that what I am exactly trying
If I want to copy file.txt from one system another system, we scp command. So, i was trying
scp -i auth_key file.txt userid@target_hostname:/target/path/
alias1= 'scp -i auth_key'
alias2= 'userid@target_hostname:/target/path/'
I was trying to execute the below command
alias1 file.txt $alias2
Asked by Subhash
(1 rep)
Jul 29, 2025, 02:45 PM
Last activity: Jul 29, 2025, 02:49 PM
Last activity: Jul 29, 2025, 02:49 PM