commands detail - w
This shows user that you are logged on as:
This shows the sort of thing (exe, bat, alias, function) that you’re looking at:
This splits the path into its constituent folders, then does a dir to see if
the file (in this case I’m looking for whoami.exe) exists in each.