# Linux – how to execute command after current running command in bash

bashlinux

I'm downloading file with wget, and I want to turn off my computer after downloading will be finished, but I need to go somewhere now 🙂 Is it possible to execute command in bash exacly when process will be finished?

I know that this works:

wget http://example.com/file.rar; shutdown now

But what if I type only:

wget http://example.com/file.rar