Learning python, the fourth day

echo contents> a content into the document ls -lh> a will overwrite the previous content

Appended to the end of the echo >> a not overwrite the original content

| Pipeline ls -lha ~ | more

shutdown shutdown shutdown now shutdown immediate shutdown -r restart shutdown -c cancel

shutdown 10:00 ten o'clock shutdown shutdown +10 ten minutes after shutdown

ifconfig configure the card to view information ifconfig | grep inet ip with a view to the

ping detection target ip address ping 127.0.0.1 connection is working properly check whether the local network adapter

ssh -p port user @ remote user is the user name remote ip port is the default value is 22

ssh -p 22 python (remote user name) @ip address

sudo root authority

windows installation shh

putty www.chiark.greenend.org.uk/~sgtatham/putty/latest.heml
xshell xshellcn.com

ssh scp different and are uppercase P
scp copy files
scp -P 22 source file destination (Remote User @ :)
01.py Python IP @: Desktop / 01.py

scp copy the folder
scp -r folder name python @ ip: Desktop

windows download www.filezlla.cn/download/client port number is 21

Password-free login mode ssh-keygen has been Enter
ssh-copy-id user name @ip address

Configure alias easy to use
to add a content ~ / .ssh / config in
Host mac (alias)
the HostName 172.16.140.1 (IP)
the User itheima (username)
Port 22 is (Port)

Guess you like

Origin blog.csdn.net/tiantianjingyu/article/details/92072560
Recommended