From ca913e744040ba0f28b81edce7afa6b72be80203 Mon Sep 17 00:00:00 2001 From: Lingyu Li <64261429+LingyuLi-math@users.noreply.github.com> Date: Mon, 11 Sep 2023 16:57:51 +0800 Subject: [PATCH] Update screen in computing_tips.md --- computing_tips.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/computing_tips.md b/computing_tips.md index 475dbe6..0ac2568 100644 --- a/computing_tips.md +++ b/computing_tips.md @@ -2,6 +2,12 @@ ## Running jobs in the background * Running jobs in the background with `screen`. [Anyone add some links or texts?] +* `screen -S sessionname`, Creates a session named sessionname (sessionname is defined by yourself) +* `screen jupyter notebook`, Copy the link and open Jupyter Notebook on the browser (the same as `screen jupyter lab`) +* `Ctrl + a + d`, Temporarily leave the current session, throw the current screen session to the background for execution, and return to the state before entering the screen. At this time, in the screen session, the process running in each window continues to execute, even if the logout does not affect +* `screen -ls`, Display all current screen jobs +* `screen -r sessionname`, Recover off-line screen job +* `kill sessionnumber`, Exits the current screen window and ends the current screen window ## IDE: PyCharm, VS Code, and Jupyter lab