Linux commonly used commands and keyboard shortcuts

1, online download jdk8
 

wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz

wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz

2, root user switches to user

su lcy

su - //切换到root 用户,和root用户登录一样

su root // 切换到root用户,但环境变量仍然是当前用户的

3, the new user

useradd  -d  /home/username  -m  username  -s  /bin/bash

4, extract

unzip

tar -zxvf

5, upload files

scp 本地目录  [email protected]:/服务器目录

 

 

Second, the commonly used shortcut keys

 

1, paste the copied

     Copy, yy command line mode

     Paste, the command line p

2. Find

    Command-line mode /

Published 87 original articles · won praise 14 · views 80000 +

Guess you like

Origin blog.csdn.net/epitomizelu/article/details/104125530