Display hashed commands for your current shell session

982 Views Asked by At

Display hashed commands for your current shell session By shell script file extension .sh

1

There are 1 best solutions below

3
Ko Cour On

If you want to execute a script in your current shell, you can use source shell builtin command.

So if your script contains a hash command and you run your script like:

source script.sh

It will show hashed commands for your current shell.