This question already has an answer here:
Suppose that I want to run a Java program so I would type
and then suppose that it prints some output to the screen but takes a few hours to finish running. If I want to keep working on the same terminal while it runs, what is the command that I should use? I tried & at the end and it did not seem to work.