UAV-11 Linux,Git与Python
-
ubuntu18.04
-
修改镜像源:清华、阿里
[注]
修改sources.list
之后需要执行命令sudo apt-get update
-
安装vim
-
知道
.bashrc
的用处 (source 命令):打开终端时候执行 -
terminator 可以分屏:升级版的终端
-
Tmux:将会话和窗口分离:窗口关闭时,程序不断
-
杀死进程:
-
ctrl_z
-
kill -9 %[进程名] ==>> 不加
进程名
,杀死全部 -
ps -a ==>> 显示全部进程 || kill 进程号
-
写脚本杀进程
-
run_format.sh
#!/bin/bash python leader.py $1 $2 & uav_num=1 while(( $uav_num< $2 )) do python follower.py $1 $uav_num $2& let "uav_num++" done
-
stop_formation.sh
kill -9 $(ps -ef|grep follower.py|gawk '$0 !~/grep/ {print $2}' |tr -s '\n' ' ') kill -9 $(ps -ef|grep leader.py|gawk '$0 !~/grep/ {print $2}' |tr -s '\n' ' ')
-
-
-
git ==>>
https://www.liaoxuefeng.com/wiki/896043488029600
-
推导远程 gitee & GitHub
-
vscode
- vscode download
- .deb
- dpkg -i
-
python 版本管理
-
sudo updata-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo updata-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
-
sudo update-alternative --config python
-
~/.bashrc
export=[anaconda路径]
-