Link to home
Start Free TrialLog in
Avatar of NAMEWITHELD12
NAMEWITHELD12Flag for United States of America

asked on

how can I get powershell to show the history of commands used ?

is there a way like the linux command "history" you  can see all of your commmand history ?

thanks
Avatar of John
John
Flag of Canada image

Type DOSKEY in your command session and it will give you a list.
Avatar of NAMEWITHELD12

ASKER

perfect , thanks !!!!!!
Yes, it works very well.
SOLUTION
Avatar of Jeremy Weisinger
Jeremy Weisinger

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No, DOSKEY is not PowerShell, it is for use in cmd.exe. h and history are aliases for Get-History, which is the correct answer.
True, but DOSKEY works great and powershell then not needed. Hence my answer
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks again all !!!!!
You are very welcome and I was happy to help you with this.