Lanttcat / Vimer

blog by Issues
0 stars 0 forks source link

Linux常用命令 #10

Open Lanttcat opened 5 years ago

Lanttcat commented 5 years ago
  1. rsync
  2. SSH
  3. losf -i :22
  4. nc -lp 22
Lanttcat commented 5 years ago

pstree查看进程树

Lanttcat commented 5 years ago

tty

Lanttcat commented 5 years ago

Linux命令中,各种符号

";"分号用法

// 从左到右的顺序,顺序执行,彼此之间无影响
command1 ; command2

"| "管道符

上一条命令的输出,作为下一条命令参数
command1 | command2

"&"符号

&放在启动参数后面表示设置此进程为后台进程
command1 &

"&&"符号用法

// 命令之前逻辑与,用于下一条命令依赖前一条命令是否执行成功
command1 && command2 [&& command3 ...]
// 细节待补充

"||"符号用法

// 逻辑或,只要有一个命令返回真,后面的命令就不会执行
command1 || command2 [|| command3 ...]

待补充~