Sample Header Ad - 728x90

Bash alias not working for aliased command in Linux

1 vote
1 answer
1021 views
Trying alias in Bash, not able to see it working in conjunction with
command or maybe any command.
[0s][/nobackup/sumikum7]> sjc-tftp
-bash: /auto/tftp-xeinfra/sumikum7/: Is a directory
[0s][/nobackup/sumikum7]> cd sjc-tftp
-bash: cd: sjc-tftp: No such file or directory
[0s][/nobackup/sumikum7]> cd /auto/tftp-xeinfra/sumikum7/
[0s][/auto/tftp-xeinfra/sumikum7]>
Tried searching few places, but didn't find this issue mentioned anywhere for Linux. Note: - bash version : GNU bash, version 4.4.19(1)-release (x86_64-redhat-linux-gnu) - Found something for MAC, lemme kindly know if this is the reason here as well.
Asked by Sumit Singh (113 rep)
Jun 30, 2021, 05:39 AM
Last activity: Apr 1, 2025, 10:00 AM