Giter Club home page Giter Club logo

screen_linux-notes's Introduction

Screen_Linux-Notes

Reference for some commands used while using linux screen

Command 1: To open a linux screen

  • Ckeck the path you open it in (e.g. users/documents) as you'll reopen the screen from it
  • write in terminal (on this path) screen -S "replace this line with any name you want for the screen"

Command 2: To get out from a screen

  • Inside the screen: ctrl + A + D

Command 3: To check the screens you've open

  • Inside the terminal: screen -ls
  • Note that: from this step you can get the names of the screen to re-attach to them if you forget their names.

Command 4: To re-connect to a screen

  • cd to the path of the screen you want to re-connect to
  • write in terminal: screen -r *replace_this_with_name_of_screen*

Command 4.2. To re-connect to a screen (if you've only one)

  • cd to the path of the screen you want to re-connect to
  • write in terminal: screen -rd

Command 5: To terminate a screen

  • Inside the screen: ctrl + A then k then y

GENERAL NOTE You cannot open a screen from 2 devices

Command 6: To open jupyter notebook in a screen

  1. On your computer (SSH terminal; e.g. gitBash): ssh -L xxxx:localhost:yyyy server.
  2. screen.
  3. jupyter notebook --no-browser --port=yyyy. [on remote server]
  4. In your browser: localhost:xxxx.

Command 7: Other options while having jupyter notebook on a screen

  1. To disconnect manually and reconnect: Exit the screen window: control + a and then d.
  2. Disconnect from the server: control + d And reconnect ssh -L xxxx:localhost:yyyy.
  • Optionally, you can reopen the screen window using screen -r. Go back to your notebook or reopen localhost:xxxx

screen_linux-notes's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.