Mac下Core Shell 使用lrzsz命令,上传,下载文件 新增~/.bashrc_Core_Shell # Bash support for Core Shell, reference: /etc/bashrc_Apple_Terminal on macOS # Report Working ...
分类:
系统相关 时间:
2021-04-20 15:02:28
阅读次数:
0
bash特殊变量 变量 含义 $0 函数名 \(n | n>=1,表示第一个、第二个、第n个参数、\)(10) $@ 全部参数 $* 全部参数 $# 参数个数 $_ 上一个命令的最后一个参数 $$ 当前shell进程ID $? 上一个命令的返回值 ...
分类:
其他好文 时间:
2021-04-20 14:55:25
阅读次数:
0
在/etc/profile.d目录里下新建 shell脚本 (设置alias别名命令的功能) 让新建的别名生效 设置完成后之际可以使用别名 gj 命令 执行poweroff一样效果的 ...
分类:
其他好文 时间:
2021-04-20 14:33:22
阅读次数:
0
1、编写脚本 createuser.sh,实现如下功能:使用一个用户名作为参数,如果 指定参数的用户存在,就显示其存在,否则添加之;显示添加的用户的id号等信息 read -p " input the user: " USER if id $USER &> /dev/null ; then echo ...
分类:
系统相关 时间:
2021-04-20 14:31:15
阅读次数:
0
开始 运行 输入 regedit 命令可以打开注册表,如下图 对应到以下路径 计算机\HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client 清除 Default, LocalDevices和Servers项中的数据 在此项中可以查到连 ...
配置git: git config --global user.name "XXX" git config --gloaal user.email "XXX@...com" 文件在用户目录下 .gitconfig 中,可以手动删除 关联远程仓库 转到工程目录下 为了下次连接远程仓库不用输入密码,设置 ...
分类:
其他好文 时间:
2021-04-19 15:55:18
阅读次数:
0
#! /bin/bash # @author # @breif auto ssh function show_usage(){ echo -e " This is Usage " echo -e " -h: which host to go,for example dev041" } functio ...
分类:
其他好文 时间:
2021-04-19 15:50:26
阅读次数:
0
通过nginx -t获得 nginx=`nginx -t 2>&1 | grep configuration` if [ ! -z "$nginx" ];then nginxtmp="${nginx#*file}" nginxf="${nginxtmp%test*}" echo $nginxf fi ...
分类:
系统相关 时间:
2021-04-19 15:38:16
阅读次数:
0
Explorer.EXE该文件没有与之关联的应用来执行该操作。请安装应用,若已经安装应用,请在"默认应用设置"页面中创建关联。 添加如下注册表信息即可解决: Windows Registry Editor Version 5.00 [[HKEY_CLASSES_ROOT\Folder\shell\e ...
分类:
其他好文 时间:
2021-04-19 15:11:29
阅读次数:
0
这里我们以禁止美国地址段为例,可以根据自己的需要将us.zone改为相应国家缩写 #/bin/bash wget -O /tmp/us.zone http://www.ipdeny.com/ipblocks/data/countries/us.zone for ip in `cat /tmp/us. ...
分类:
系统相关 时间:
2021-04-19 15:10:27
阅读次数:
0