Linux Use

This blog records some basic commends about the use in Linux Server.

SSH

SSH is used to make connection with the remote server.

Connect the server

1
ssh xxx@xxx.ecs.soton.ac.uk

Close the connection

1
exit

SCP

1
SCP is for transport between the local and remote.

Transfer the entire file folder

1
2
The formmer path is the `from` location, the latter one is the destination.
scp -r xxx@xxx.ecs.soton.ac.uk:/home/sa2y18/mydocuments/4_dataMining ~/Desktop/

Transfer a single file

no -r

1
scp xxx@xxx.ecs.soton.ac.uk:PATH LOCALPATH


Use Jupyter

Run jupyter on the remote and open it from local port. You can follow the instruction: [http://fizzylogic.nl/2017/11/06/edit-jupyter-notebooks-over-ssh/]

1
2
3
jupyter notebook --no-browser --port=8080  # run on the remote machine

ssh -N -L 8080:localhost:8080 xxx@xxx.ecs.soton.ac.uk # run in the local machine terminal