Horje

List of Command

Session Management:
  • screen: Start a new screen session.
  • screen -S <session_name>: Start a new screen session with a specific name.
  • screen -ls: List all running screen sessions.
  • screen -d <session_id>: Detach a specific screen session.
  • screen -r <session_id_or_name>: Reattach to a specific screen session.
  • screen -x: Attach to a running session if there is only one.
  • Ctrl-a d: Detach the current screen session.
  • Ctrl-a D: Power detach and logout from the current screen session.
  • `Ctrl-a Ctrl-\`: Quit screen and terminate all windows.
Window Management within a Session:
  • Ctrl-a c: Create a new window (shell) within the current session.
  • Ctrl-a w: List all windows within the current session.
  • Ctrl-a n: Go to the next window.
  • Ctrl-a p: Go to the previous window.
  • Ctrl-a <number>: Go to a specific window by its number (e.g., Ctrl-a 0 for the first window).
  • Ctrl-a Ctrl-a: Toggle between the current and previous window.
  • Ctrl-a A: Rename the current window.
  • Ctrl-a k: Kill (close) the current window.
Copy and Paste:
  • Ctrl-a [: Enter copy mode (use arrow keys to navigate, space to select text).
  • Ctrl-a ]: Paste the copied text.
Other Useful Commands:
  • screen --version: Display the screen version.
  • Ctrl-a ?: Display a list of screen commands (help).
  • Ctrl-a H: Toggle logging of the current window to a file.
  • Ctrl-a S: Split the window horizontally.
  • Ctrl-a |: Split the window vertically.
  • Ctrl-a Tab: Switch between split regions.
  • Ctrl-a X: Close the active split region.
  • Ctrl-a Q: Close all split regions.




Category:
Command
Sub Category:
Linux Screen Command
Uploaded by:
Admin