linux用法总结


 scp -r -P 22 /srv/ox/demo ps@192.168.1.15:/home/ps/    本地demo目录文件传到ps下

 cp -r  /home/ps/demo  srv/ox/      复制功能

新建文件:touch setenv.sh

新建文件夹:mkdir setenv

 

 

 

将文件解压到/usr/local

 

2、在/usr/local 文件目录下 unzip apache-tomcat-9.0.2-windows-x86.zip

 

/usr/local

 


 

重命名:命令 mv apache-tomcat-9.0.2 tomcat9 apache-tomcat-9.0.2名改为 tomcat9

 

 

 

chmod 777 /usr/local/tomcat9/bin/catalina.sh   权限操作

 

 

 

删除命令 rm -rf app.txt 

 

 

 

直接执行命令nano /usr/local/tomcat9/bin/phty.txt   编辑查看文件内容

 

 

 

今天编写的语句:

删除

delete from table where id=1;

更新:

两表更新语句:
update product_template t0  set name=(select name_template from  product_product where product_tmpl_id=t0.id );


update product_template t0  set bm=(select name_template from  product_product where product_tmpl_id=t0.id limit 1 ),name=(select name_template from  product_product where product_tmpl_id=t0.id limit 1 );

 

 

 

 

 

 

 

 

 


 

原文地址:https://www.cnblogs.com/1314520xh/p/9054025.html