Command Detail - T
tail
gc
is an alias for get-command
tail -f
tee
The Powershell equivalent of the unix tee
is tee-object
....which, by default is aliased to tee
So you can do this:
...to both get a list of processes on your screen and get that output saved into the file in c:\temp
time
The Powershell equivalent of the bash shell 'time' is 'measure-command'.
So, in bash you would do this:
....and get all the egrep output, then
In Powershell, you would do this
...and get...
...you don't get the 'user CPU' time and 'system CPU' time, but you do get the added bonus of seeing how long the command took rendered as a fraction of a day!
touch - create an empty file
I found the set-content command at Super User, the contributor being user techie007
touch - update the modified date
I got this from a comment by Manung Han on the Lab49 Blog. Doug Finke shares touch function in a later comment on the same post that fully implements the linux command.
Last updated