![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
中国lanwp
这个作者很懒,什么都没留下…
展开
-
vscode配置shell开发环境
文章目录vscode开发shell安装shell相关插件Code Runner配置setting.jsonRun In Terminalvscode开发shell安装shell相关插件本地安装git使用里面的bash,可以在window本机运行code runner 运行shellshell man 代码提示,片段AutoComplate shell 代码提示,片段shell-format shell格式化remote deployment (可选)远程开发-可以在本地连接到远程服务器,原创 2020-08-12 01:46:14 · 15183 阅读 · 5 评论 -
vscode代码片段shell 和bat
shell开发安装插件shellman 代码片段AutoComplate shell 代码片段其他shell-formatshellcheckbat安装插件 bat-snippets原创 2020-07-24 00:42:47 · 1068 阅读 · 0 评论 -
Linux-shell教程
一、shell菜鸟教程地址 http://www.runoob.com/linux/linux-shell.html原创 2019-02-22 19:01:40 · 228 阅读 · 0 评论 -
linux shell命令
一、常用命令1.shell 脚本中 : set -x 是开启, set +x是关闭set -e 表示有报错即退出, set +e 表示关闭这种设置。 set -e 等价于 set -o errexit , set +e 等价于 set +o errexit 。2. 设置用户免密sudo(1) visudovisudo后在编辑内容中加入chris ALL=(ALL:A...原创 2019-03-16 01:24:01 · 317 阅读 · 0 评论 -
linux-sshpass 绕过ssh 密码交互式验证
sshpass 绕过ssh 密码交互式验证登录sshpass -p 123 ssh -o StrictHostKeyChecking=no root@192.168.72.116ssh直接执行命令sshpass -p 123 ssh -o StrictHostKeyChecking=no -t root@192.168.72.116 "echo hello"ssh StrictH...原创 2019-05-10 15:49:56 · 911 阅读 · 0 评论 -
shell遍历数组
脚本#!/usr/bin/env bash# 文件中按行读取内容# ./arrayElement.txt# a# b c# 22fdslkj# 22fdslkj123# have space# have space# my.com/fcsp-mysql:5.6.37_1list=`cat ./arrayElement.txt`...原创 2019-05-20 17:11:33 · 955 阅读 · 0 评论 -
linux下 dos转unix文件格式去除^M
Linux中使用Vim快速更换文档中Windows换行符为Linux平台一、简述平时我们把Windows编写好的sh文件放在linux上跑时,经常出现换行符的问题。快速切换的解决方法如下:二、解决1.vimvim test.sh:set ff?如果出现fileforma=dos 表示是Windows上的换行符。:set fileformat=unix:wq!dos2unix...原创 2019-06-04 09:11:06 · 170 阅读 · 0 评论