Running unix commands on windows Vista?

I want to run a simple unix command (sort file.txt | uniq > newfile.txt), but I don't know how to do it on my Vista machine.

Is there any way to do this, preferably without downloading any software? Using the command prompt will let me run a sort command on the file.txt, but it doesn't recognize the "uniq" command.

Any help? Thanks a LOT!

4 Answers

  • 1 decade ago
    Favorite Answer

    I would strongly recommend Powershell. You could replicate that command by the following command through Powershell:

    get-content file.txt | sort-object | group-object | foreach-object {$_.Name} > newfile.txt

    You'd have to download it, but it's really, really nice.

    If you're set on using Bash, you could try Cygwin. I'd recommend getting familiar with Powershell. It's quite powerful--even moreso than Bash (and with that, I feel the collective rage of thousands of linux users focusing in my direction...I love Linux and run it at home!).

    Source(s): Experience
    • Login to reply the answers
  • 4 years ago

    With Vista there's not a chance in H___. You would need to create a second boot sector for dual boot.

    • Login to reply the answers
  • 1 decade ago

    Powershell sucks. Use cygwin.

    You can also ssh into another Unix box.

    • Login to reply the answers
  • 1 decade ago


    with this you can simulate a linux box in your vista

    2) Yes Powershell indeed is other alternative.

    hope this helps


    • Login to reply the answers
Still have questions? Get your answers by asking now.