Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I find the combination of Ctrl+Z with subsequent fg on Bash very handy, it's like a command line analog of alt+tab, so I can switch from viewing one file to the output of a running process etc.

Is there an analog for Windows Powershell? I can't google anything but the "pause" which just stops the current running process but doesn't let me switch to the command line and then back.

share|improve this question
add comment

1 Answer

Yes, sort of - using the psjob commands (requires Powershell 2)

http://richardspowershellblog.wordpress.com/2007/12/03/background-jobs/

Edit: The site has the names wrong. It's 'start-job' instead of 'start-psjob'

See 'help start-job' for the complete (and correct) information.

share|improve this answer
    
Strange thing, I don't have Start-PSJob in my Powershell. $host.Version.Major yields 2; doesn't that mean I have Powershell 2? I have pscx installed, maybe it gets in the way? –  Igor Baltiyskiy Aug 23 '12 at 8:54
    
The site appears to be wrong - its 'start-job' instead of 'start-psjob' –  PhonicUK Aug 23 '12 at 8:57
    
and start-job does not have the Command parameter –  Igor Baltiyskiy Aug 23 '12 at 8:58
    
See 'help start-job' and 'help start-job -examples' –  PhonicUK Aug 23 '12 at 8:58
    
anyway, thanks for the suggestion --- I'll try to figure it out –  Igor Baltiyskiy Aug 23 '12 at 8:58
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.