简体   繁体   English

在ubuntu上安装应用程序后如何断开终端?

[英]how break terminal after oppening an app on ubuntu?

So let's say we open an app on ubuntu with terminal. 假设我们使用终端在ubuntu上打开了一个应用。 ex

user$gnome-photos

there will be displayed some text with different information about the app events and etc.(i think)and since this is displayed, you cannot run another command , until you terminate the app. 将会显示一些文本,其中包含有关应用程序事件等的不同信息。(我认为)并且由于显示了该文本,因此您无法运行其他命令,直到终止应用程序。 Is there any way to bypass this and be free to type anything other while the app you launched before , is still runninb ? 在您之前启动的应用程序仍然运行时,是否有任何方法可以绕过此操作并自由键入其他内容?

Yes. 是。 Run gnome-photos & in the command line to spawn it in a child process or (gnome-photos &) to spawn it in a new process. 在命令行中运行gnome-photos &在子进程中生成它,或者在(gnome-photos &)中在新进程中生成它。

You can simply put an & at the end to put the app in the background: 您只需在末尾加上&即可将应用程序置于后台:

As in: 如:

user$ gnome-photos & 用户$ gnome-照片&

Once that's done you can "disown" the job. 完成后,您可以“放弃”该工作。

user$ disown %1 用户$拒绝%1

%1 is the job specification , you type it as is. %1作业规范 ,请按原样键入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM