Compreesion tar cf - paths-to-archive | pigz -9 -p 32 > archive.tar.gz
Here is a collection of commands relevant to using a remote server that I find helpful.
Establish connection ssh -X -p *port* user_name@server_ip ssh command establishes a ssh connection with the server. -X opens an X-server, which allows you to open GUI software (e.g. firefox) on the server and convey the display to your local computer -p selects the specific port the connection is going to be established. Not all ports of a computer are always open for security reasons.
This is a collection of common git commands that I use very often in my daily work. I have only touched on GitHub and find it fairly sufficient for my needs, and thus this post will base on GitHub as well.
Case 1: start a new repository Let’s say we want to upload ~/analysis/ to GitHub
On GitHub: create a new repository The only things I will set here are the repository name and the choice whether it is public or private.
This post will cover how to
start running a programme in a terminal’s background
monitor the programme and
stop the programme
I decided to write this post beacuse I did not find any comprehensive tutorial to cover this aspect.
start running a programme in a terminal’s background To do so, simply add & at the end of the line. What occurs after the enter is hit is that the first line will be run at the background and the terminal will prompt you another line of input.
TL;DR: $PATH will call the value stored in the environmental variable PATH as a command, but echo $PATH will print out the value stored in the variable PATH.
How I found out:
Recently I have been trying to integrate WSL with RStudio.
One thing intrigues me is that the bash in Rmd has a different PATH with WSL. For example, one cannot run the software installed with conda directly from Rmd - the conda bin directory needs to be added into PATH (using export .