Linux 总结

查看端口 

lsof -i:8000

查看进程 

ps -ef  |  grep  python  

netstat -tunlp |grep 端口号

拷贝

cp 文件 生成文件名

做软连接找到目标文件目录  

ln -s  找到文件路径 添加到 /usr/bin/

或者  vim ~/.bash_profile 

PATH=$PATH:/opt/python/bin

source  ~/.bash_profile 执行文件让它生效

全局变量文件生效

source /etc/profile1

 

posted @ 2019-05-08 17:56  呼呼嘻嘻  阅读(107)  评论(0编辑  收藏  举报