LINUX/UNIX: Difference between revisions
Jump to navigation
Jump to search
(12 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
== Introduction to UNIX == | |||
Compute Canada has put together some introductions to UNIX. | |||
* [https://docs.computecanada.ca/wiki/Linux_introduction Basic intro from Compute Canada] | |||
* [https://www.sharcnet.ca/help/index.php/LINUX_SHELL Sharcnet - fairly in-depth] | |||
* [http://www.ee.surrey.ac.uk/Teaching/Unix/index.html SciNet - also pretty in-depth] | |||
== Odds and Ends == | |||
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]] | ||
Line 20: | Line 38: | ||
* Remote/Virtual desktop with [[NoMachine NX]] | * Remote/Virtual desktop with [[NoMachine NX]] | ||
* [[Manual process placement on multi-processor machines]] | * [[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 hood.math]] | ||
* [[info specific to boogaloo.math and belize.math]] | * [[info specific to boogaloo.math and belize.math|info specific to belize, belize2.math (formerly boogaloo), belize3.math]] | ||
* [[info specific to bow, minnewanka, waterton]] ("mountain lakes") | |||
* [[info specific to sutton, rondeau, pelee]] ("provincial parks") | |||
* [[simple local file sharing]] | |||
* [[Login script]] (.profile, .cshrc) for the MFCF-administered machines |
Latest revision as of 12:49, 9 April 2024
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 belize, belize2.math (formerly boogaloo), belize3.math
- info specific to bow, minnewanka, waterton ("mountain lakes")
- info specific to sutton, rondeau, pelee ("provincial parks")
- simple local file sharing
- Login script (.profile, .cshrc) for the MFCF-administered machines