码迷,mamicode.com
首页 >  
搜索关键字:shell awk cat    ( 54363个结果)
SimpleDateFormat 与时区
Date now=new Date(); //yyyy年MM月dd日 HH时mm分ss秒 HH为24小时 hh为12小时 //yy/MM/dd HH:mm //yyyy-MM-dd HH:mm:ss == now.toLocaleString(); 格式可以自由组合,不受年月日 : 时分限制等限制  ...
分类:其他好文   时间:2020-06-15 19:26:46    阅读次数:70
什么是shell
一句话概括: 需要执行的命令保存到文本中,按照顺序执行,因为是解释型的,不需要编译 准确叙述: 若干命令+脚本的基本格式+脚本特定语法+思想=shell脚本 脚本的基本写法: 1.脚本第一行 /bin/bash 表示以下内容使用bash解释器 2.脚本的第二部分,注释(#)说明,就脚本的基本信息进行 ...
分类:系统相关   时间:2020-06-15 17:46:41    阅读次数:70
webpack安装完运行webpack命令提示 webpack: command not found
1.全局安装(官网不推荐) 2.指定目录运行,如:node_modules/.bin/webpack(找不到webpack命令是因为系统环境变量的原因) 3.自定义shell命令:alias webpack="node_modules/.bin/webpack",之后再用webpack命令 ...
分类:Web程序   时间:2020-06-15 17:35:53    阅读次数:188
[Python]调用shell cmd的几种方式
1.使用os.system()去调用,但是只能返回执行状态,不能获取shell cmd执行结果 #!/usr/bin/python # -*- coding: utf-8 import os status = os.system("ps aux |grep Xcode |grep -v grep") ...
分类:编程语言   时间:2020-06-15 16:12:20    阅读次数:73
Centos7间文件传输
Centos7间文件传输 Centos间文件传输基于SSH协议,那什么是SSH呢? 1、SSH是什么? SSH :是Secure Shell的缩写,是建立在应用程和传输层基础上的安全协议; 传统的网络服务程序,如FTP、POP和Telnet本质上是不安全的, 使用明文的方式在网络上传输数据、账号和口 ...
分类:其他好文   时间:2020-06-15 16:11:16    阅读次数:128
shell 强化1
#/bin/bash#使用date取得当前系统时间d=`date+%F`dir=/tmp/data/logs#判断目录是存在[-d$dir]||mkdir-p$direcho"$dlogs">$dir/$d.logdf-h>>$dir/$d.logfind$dir/-mtime+15|xargsrm>/dev/null2>&1
分类:系统相关   时间:2020-06-15 15:39:32    阅读次数:65
1031 Hello World for U
Given any string of N (≥) characters, you are asked to form the characters into the shape of U. For example, helloworld can be printed as: h d e l l r ...
分类:其他好文   时间:2020-06-15 15:34:10    阅读次数:61
linux把文件从A服务器备份到B服务器的两种办法
1.建立ssh的信任关系 1.1 进入A服务器的root文件夹里面的.ssh目录 cd /root/.ssh 1.2 生成公钥和私钥,命令行如下,并且一直回车即可 ssh-keygen -t rsa 1.3 把公钥内容添加到临时文件authorized_keys_server1中 cat id_rs ...
分类:系统相关   时间:2020-06-15 15:30:47    阅读次数:132
拥有云服务器后的操作-记录
查看centos版本号 [root@VM_0_16_centos ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) ...
分类:其他好文   时间:2020-06-15 13:52:50    阅读次数:51
docker desktop troubleshooting
https://docs.docker.com/docker-for-windows/troubleshoot/ This page contains information on how to diagnose and troubleshoot problems, send logs and co ...
分类:其他好文   时间:2020-06-15 13:44:07    阅读次数:90
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!