#1 03 Mar 2017 18:48

New Member
Registered: 03 Mar 2017
Posts: 1

ss64 - powershell - clear-content

SS64 says:


Delete all the contents of a file without deleting the file itself.


Clear-Item is similar to Clear-Content, but works on aliases and variables, instead of files.
Add-Content - Add to the content of the item
Equivalent bash commands: useradd - Create new user accounts

useradd is NOT the equivalent bash command - cannot think what it is but it is not useradd - maybe something like 'cat <NUL >file'.


#2 03 Mar 2017 20:05

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 1,070

Re: ss64 - powershell - clear-content

Good catch, I have fixed that now

Thanks for the heads up


Board footer

Powered by FluxBB