This is something simple I needed to do, but had to dig around a bit to figure it out since I’m a Windows guy.
I just wanted to run
http-server as a background job in linux.
npm run server > http.log 2>&1 &
Redirect stderr (the 2) to http.log, referred to by &1. The & at the end just means run in the background.