Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 382 Bytes

which.md

File metadata and controls

15 lines (12 loc) · 382 Bytes

which

which can be used to determine what a shell command actually points to. I was familiar with using it with an installed binary program to find out where that binary actually lives. But you can also use it with aliases and functions to see what they actually equate to:

$ which take
take () {
	mkdir -p $@ && cd ${@:$#}
}

See man which for more details.