DEV Community

Discussion on: Improve your productivity by using more terminal and less mouse (πŸš€).

Collapse
 
ezek-iel profile image
π™΄πš£πšŽπš”πš’πšŽπš•

Powershell Alternative for touch is New-Item or ni. And No Powershell is not shit

Collapse
 
orenc profile image
Chanan Oren

Does New-Item also update the timestamp on existing files? I'm not against PowerShell, just might not be an entirely equivalent command if it doesn't update timestamps (though does cover the most common use).

touch updates accessed and modified timestamps if the file(s) exist (current time by default arguments available for setting a specific time).

Collapse
 
jefflindholm profile image
Jeff Lindholm

Nope it does not - but it is easy to create a touch command in powershell, and put it in your profile.