i want to learn how to save my cmd output to text file. i also want to learn how to login to my windows if i forget the password
On the command line you can route text output using | (pipe) or > or >>
| sticks the output into another command (not into a text file) so is beyond what you want to do here.
> sticks the output into a text file. If the text file already exists it deletes the text file and recreates it with the output you've just created.
>> appends the output to a text file. If the text file doesn't exist it creates it. if it does exist it adds the output on the end.
...and I'd agree with po1nted, don't forget your password.
an alternative to the stickynote is to put it in your mobile as a text note attached to a contact with a fake name - one that looks like a real contact but isn't.