Shell 编程快速入门指南
第一个 shell 脚本 #!/bin/bash echo "hello, world" 运行程序可以作为解释器参数或者作为可执行程序 bash test.sh chmod +x te…
Shell 编程入门
什么是Shell脚本 看个例子吧: #!/bin/sh cd ~ mkdir shell_tut cd shell_tut for ((i=0 i<10 i++)) do touch test_$i.txt don…
解决 cross-env: command not found 错误
用于 npx 解决错误 cross-env: command not found,例如 npx cross-env NODE_ENV=production webpack --config build/webpack.co…
Shell 常用命令
下载文件:wget <url> 切换用户:sudo -u <userName> -i 解压 zip 文件:unzip <fileName> 添加别名:alias <newC…
INoteBook 基于 Gitbook 自动化发布 pages 的 shell 脚本
利用 start.sh 和 update.sh 动态更新 Gitbook 项目的简单操作。 在上传至 Github 之前,先使用 start.sh 进行 Gitbook 生成静态…
solr 的启动命令改写
这里用 shell 重写了 solr 的启动命令 一、主从同步式 solr # bin/sh # chkconfig: 2345 95 20 # description: Solr Server # So…
Node-Glob 是 JavaScript 中的 glob 实现
node 的 glob 模块允许你使用 * 等符号,来写一个 glob 规则,像在 shell 里一样,获取匹配对应规则的文件。这个 glob 工具基于 …
hbase shell 入门
使用 Ambari 部署 hbase 服务,在部署 hbase master 的节点上执行: $ hbase shell hbase(main):001:0> help hbase(main…