tmate
tmate
is a tool that allows us to share our terminal with others. It is an essential tool for peer learning during the lab sessions.
To run tmate
, type
1 |
|
on the command prompt on any of the PE nodes.
This command clears the screen and displays a bar at the bottom with the word [tmux]
as well as the following message:
1 2 3 4 5 6 7 8 |
|
Follow the instructions given.
Sharing Your Terminal With Someone
The most important lines in the message above are the last two lines.
- If you want to show your terminal to someone else, but do not want to give them the control to type into your terminal, you can share the information about the read-only sessions on the second last line. This is useful, for instance, if your tutor wants to share your screen with the class.
- If you want to let someone else type into your terminal, share the last line with them. Doing so with your tutors might be helpful during the lab session for debugging or demonstration purposes.
Keep your tmate sessions private
Do not at any time, make these links public -- only share them with people you trust.
Quitting tmate
To exit from tmate
, you just need to hit Ctrl+D on your tmate
command prompt. This should bring you back to your usual command prompt (the bar labeling [tmux]
should disappear).