Common linux system commands - Download

Download and install the update install undate uninstall remove --purge

sudo apt-get install openssh-server #安装

sudo service ssh start / restart / stop # start
/etc/init.d/ssh start / restart / stop # start

ssh [-p port] username @ ip remote login
Exit: exit or ctrl-D
to the local file to the remote system:
scp username @ tohostname localfile: / newfilename

The remote file transfer to the local system:
SCP username @ tohostname: / remotefile / localfile
1. Production of keys: ssh-keygen After performing .ssh generates a folder in the main directory, which contains the public key and private key file id_rsa file id_rsa.pub.
2. In additional content on the server host id_rsa.pub file ~ / .ssh / authorized_keys file, there is no new file added added.

sudo apt-get install mysql-server / mysql-client mysql server / client
sudo /etc/init.d/mysql Start | STOP | restart
MySQL -hlocalhost-uroot--p123456
Exit: exit or ctrl-D

apt-get install git git repository version

Guess you like

Origin www.cnblogs.com/chenlulu1122/p/11888606.html