Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2016-05-10 23:01:42
Size: 123
Editor: SamatJain
Comment:
Revision 4 as of 2017-03-20 23:38:42
Size: 536
Editor: SamatJain
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:

# Equivalent of UNIX `which`
(Get-Command which).Path
Line 6: Line 9:



== External links ==

 * [[https://technet.microsoft.com/en-us/library/bb613488(v=vs.85).aspx|Windows PowerShell Profiles]]: Where is the equivalent of .profile or .bashrc on Windows for Powershell?

 * https://github.com/Disassembler0/Win10-Initial-Setup-Script: PowerShell script to remove stupid defaults and user tracking from Windows 10

   1 # Print current environment (i.e. export)
   2 Get-ChildItem Env:
   3 
   4 # Equivalent of UNIX `which`
   5 (Get-Command which).Path


CategoryCheatSheet

SamatsWiki: CheatSheet/PowerShell (last edited 2019-12-18 21:01:59 by SamatJain)