LINUX/UNIX: Difference between revisions
Jump to navigation
Jump to search
m (Separate the servers into their own section, not just part of odds and ends.) |
m (→Odds and Ends: Adding quick reference to key screen commands. Also reformatting a bit (to enable linking to sections).) |
||
Line 10: | Line 10: | ||
This is a collection of useful tools, commands, and random odds and ends. | This is a collection of useful tools, commands, and random odds and ends. | ||
=== [[ssh config]] === | |||
=== screen === | |||
* A useful terminal manager - especially on remote servers. | |||
** See [https://www.gnu.org/software/screen/manual/screen.html User Manual] | ** It allows you to continue to run scripts in interactive sessions on servers, even if you need to disconnect from the server (or get disconnected). | ||
** Useful for scripts that take a long time, or when you only have a few minutes to spare / want to check in on it later. | |||
* See [https://www.gnu.org/software/screen/manual/screen.html User Manual] | |||
* See also this [https://www.bangmoney.org/posts/2004-03-24-screen.html Blog] | |||
* Key commands to remember are: | |||
** Create a new screen with the name <name>: <code>screen -S <name></code> | |||
** Detach from current screen: <code>crtl+a d</code> | |||
** Re-attach screen: <code> screen -r <name> </code> (can omit <name> if only one session exists) | |||
** List all currently running screen sessions: <code> screen -ls</code> | |||
** To end a screen session: <code> exit</code> from within the session | |||
=== RSA Keys === | |||
Tired of typing in your password every time you log in somewhere? Use an RSA Key. It's also more secure. | |||
* Learn more [https://www.sharcnet.ca/help/index.php/Choosing_A_Password#Recommended_strategy here] and [https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2 here] | |||
=== Misc. === | |||
* Source code comparison [[Mdiff]] | * Source code comparison [[Mdiff]] | ||
* [[MPIRUN in the background]] | * [[MPIRUN in the background]] |
Revision as of 15:25, 26 May 2020
Introduction to UNIX
Compute Canada has put together some introductions to UNIX.
Odds and Ends
This is a collection of useful tools, commands, and random odds and ends.
ssh config
screen
- A useful terminal manager - especially on remote servers.
- It allows you to continue to run scripts in interactive sessions on servers, even if you need to disconnect from the server (or get disconnected).
- Useful for scripts that take a long time, or when you only have a few minutes to spare / want to check in on it later.
- See User Manual
- See also this Blog
- Key commands to remember are:
- Create a new screen with the name <name>:
screen -S <name>
- Detach from current screen:
crtl+a d
- Re-attach screen:
screen -r <name>
(can omit <name> if only one session exists) - List all currently running screen sessions:
screen -ls
- To end a screen session:
exit
from within the session
- Create a new screen with the name <name>:
RSA Keys
Tired of typing in your password every time you log in somewhere? Use an RSA Key. It's also more secure.
Misc.
- Source code comparison Mdiff
- MPIRUN in the background
- Limiting MATLAB processor usage
- Combine PNG images into an AVI movie file mkavi.sh
- Cleaning up model output files Keep.sh
- Remote/Virtual desktop with NoMachine NX
- Manual process placement on multi-processor machines
Linux servers owned by the Fluids Lab
- info specific to winisk and kazan (no longer in service)
- info specific to hood.math
- info specific to boogaloo.math and belize.math
- info specific to bow, minnewanka, waterton ("mountain lakes")
- simple local file sharing
- Login script (.profile, .cshrc) for the MFCF-administered machines