List the order of calls from installed packages/commands

rajz@LordOfWarriors:~$ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
rajz@LordOfWarriors:~$ which ruby
/usr/bin/ruby
rajz@LordOfWarriors:~$ which -a ruby
/usr/bin/ruby
/home/linuxbrew/.linuxbrew/bin/ruby
rajz@LordOfWarriors:~$ /home/linuxbrew/.linuxbrew/bin/ruby -v
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
rajz@LordOfWarriors:~$

★ 2 min read · Rajesh Pandian M · linux , shell