In Linux, allowing a program to run We usually use & at the end of the program running in the background to let the program automatically in the background.
For example, we want to run a Java program in the background:
java -Xms512M -Xmx512M -Xmn200m -Xss4m -jar project.jar &。
But there are not many programs like Java, & does not work for some programs, then we can use nohup command:
nohup java -Xms512M -Xmx512M -Xmn200m -Xss4m -jar project.jar 。