Bash

bash: ./gradlew: Permission denied 报错

![](https://img2023.cnblogs.com/blog/1987782/202308/1987782-20230828151639328-2013262824.png) ### 问题 在Ubuntu的Terminal命令行中执行`./gradlew`命令报错 ``` bash: . ......
Permission gradlew denied bash

运行命令出现错误 /bin/bash^M: bad interpreter: No such file or directory

在系统上运行一个 Linux 的命令的时候出现下面的错误信息: -bash: ./build.sh: /bin/bash^M: bad interpreter: No such file or directory 这个是在 Windows 作为 WSL 的时候出的错误。 原因和解决 出现问题的原因在 ......
interpreter directory 命令 错误 bash

解决 wg-quick 在 Mac 上 bash 3 无法运行的问题

## 问题原因 我可以理解,开发人员不想使用苹果使用的旧bash v3。但从用户的帖子来看,安装一个较新的bash并不那么好 所以我看了wireguard的wg-quick。需要支持的唯一变化,两个bash版本都是为了摆脱关联数组SERVICE_DNS,并处理v3的BASHPID。 ## 解决方案 ......
wg-quick 问题 quick bash Mac

Mac终端-bash No such file or directory以及执行操作时候command not found

问题记录,感谢参考博主分享 我们可以通过搭建临时路径的方式来找到bug。 我在调试Java环境的时候,在已经配好Java PATH的时候,错误的将当前的版本删除了,以至于我们找不到当前的版本了。 很显然,我们之前用过的vim操作,发生了一些冲突。 说明你的.bash_profile文件修改错误。 1 ......
终端 directory command 时候 found

Windows Terminal配置Git Bash

大部分程序员对Linux Bash的熟悉程度肯定高于Windows的Power Shell,而Git是程序员电脑上必装的软件之一(没装?Are you kidding me?),Git Bash可以在Windows上给我们提供Linux Bash的能力。 可是Git Bash这个古老质朴黑乎乎的界面 ......
Terminal Windows Bash Git

git for windows装完,bash里面开vim提示错误信息

git for windows装完,bash里面开vim提示错误信息 ``` $ vim Autocommands Error detected while processing /etc/vimrc: line 43: E10: \ should be followed by /, ? or & ......
错误 windows 信息 bash git

git bash中文文件名乱码的处理方法

1.git bash 窗口右键,选择 Options ->Text,选择zh_CN、UTF-8 ![image](https://img2023.cnblogs.com/blog/1447060/202308/1447060-20230817155309243-1562471512.png) 2.g ......
乱码 文件名 文件 方法 bash

Vscode 设置git bash为默认终端

1.文件-》首选项-》设置-》功能-》终端 2.点击上图中的在settings.json中编辑,添加如下信息: ``` { "terminal.integrated.profiles.windows": { "PowerShell -NoProfile": { "source": "PowerShe ......
终端 Vscode bash git

如何解决“-bash:yum-config-manager:未找到”错误,解决yum-config-manager找不到命令

如何解决“-bash:yum-config-manager:未找到”错误,解决yum-config-manager找不到命令 一、错误原因当我们在使用yum命令进行软件包安装或更新时,有时候会遇到“-bash:yum-config-manager:未找到”错误,这是因为系统中没有安装“yum-uti ......
yum-config-manager manager config yum 命令

手动写一个监控nacos单机服务是否挂掉的bash脚本

这个脚本其实不光可以监控nacos服务,所有的服务都可以监控。 脚本逻辑是,如果检测到nacos服务挂掉后调用http接口发送警告通知,然后暂停5分钟,之后继续监控。如果正常就暂停一小会,之后继续循环。 使用 Bash 脚本和 curl 命令: 安装所需工具: 确保 CentOS 服务器上已经安装了 ......
脚本 单机 手动 nacos bash

openssh升级后造成 登录 出现-bash: ulimit: open files

现象: openssh升级后造成 登录 出现-bash: ulimit: open files 解决方案: (1) # vim /etc/pam.d/login ==>session required pam_limits.so (2) # vi /etc/ssh/sshd_config ==>Us ......
openssh ulimit files bash open

mac .bash_profile

1,查看Mac osx的shell类别使用命令 echo $shell 查看电脑是什么样的shellcsh或者是tchs 就是C Shellbash ,sh ,zsh 就是Bourne shell的一个变种注:mac os x 10.2之前默认的是c shell.mac os x 10.3之后默认的 ......
bash_profile profile bash mac

Bash Game-Plus

> [Bash Game-Plus 洛谷](https://www.luogu.com.cn/problem/P9486) 题目描述 >巴什博弈:有一堆 $n$ 个物品,两名玩家轮流从中拿取物品。每次至少拿 $1$ 个,至多拿 $m$ 个,不能不拿,最终将物品拿完者获胜。 我们给这个游戏增加一些规则 ......
Game-Plus Bash Game Plus

第十章 认识与学习BASH

## 第十章 认识与学习BASH ### 10.1 认识BASH这个Shell 我们在第一章Linux是什么当中提到了:管理整个计算机硬件的其实是操作系统的核心(kernel),这个核心是需要被保护的!所以我们一般使用者就只能通过shell来跟核心沟通,以让核心达到我们所想要达到的工作。那么系统有多 ......
BASH

Bash 常用快捷键

Ctrl + C:中断当前进程 Ctrl + L:清屏 Ctrl + D:登出 Ctrl + A:光标移至行首 Ctrl + E:光标移至行尾 Ctrl + U:删除【光标当前位置 ~ 行首之间】的字符 Ctrl + K:删除【光标当前位置 ~ 行尾之间】的字符 Ctrl + Y:将最后一次使用 C ......
快捷键 常用 Bash

bash变量冒号扩展

## 参考自[网道](https://wangdoc.com/bash/variable) Bash 提供四个特殊语法,跟变量的默认值有关,目的是保证变量不为空。 - **如果变量为空则返回默认值,否则返回变量本来的值** ```shell ${varname:-defaultval} ``` 上面 ......
冒号 变量 bash

[Bash & Docker] cgroup

Okay, so now we've hidden the processes from Eve so Bob and Alice can engage in commerce in privacy and peace. So we're all good, right? They can no l ......
Docker cgroup Bash amp

[Bash & Docker] Namespaces

namespace While chroot is a pretty straightforward, namespaces and cgroups are a bit more nebulous to understand but no less important. Both of these ......
Namespaces Docker Bash amp

mac 配置环境变量 vim ~/.bash_profile

vim ~/.bash_profile source .bash_profile export M3_HOME=/Users/amy.zhang/Library/apache-maven-3.8.7 PATH=$M3_HOME/bin:$PATH export M3_HOME JAVA_HOME=/ ......
变量 bash_profile profile 环境 bash

linux中【/etc/environment】【~/.bashrc】【/etc/profile】【/etc/bashrc】【~/.bash_profile】 的区别

【/etc/environment】 1.属性 系统的环境变量,系统应用程序的执行与用户环境可以是无关的,但与系统环境是相关的 2. 修改environment文件: 1 vim /etc/environment 2 PATH="/usr/local/sbin:/usr/local/bin:/usr ......
profile bashrc etc bash_profile environment

bash: mkpasswd: command not found...

linux中 mkpasswd命令用于生成密码。 001、问题bash: mkpasswd: command not found... [root@PC1 test02]# mkpasswd bash: mkpasswd: command not found... 002、解决方法 [root@PC ......
mkpasswd command found bash not

Cygwin、Linux Bash计算某个时刻偏移一定时间长度后的时间通用函数:datetimecount

## datetimecount 函数代码 ``` datetimecount() { #计算某个日期时间偏移一定时间长度后的时刻(目前主要供录制IPTV直播源时计算视频时长使用) # $1-->偏移量:符合date命令的描述参数即可,也支持传递标准时间格式:eg: +01:23:35 (标记符号( ......
时间 datetimecount 函数 长度 时刻

一段bash确认某种重要操作的代码

#!/bin/bash File_Name=/root/a.txt if (whiptail --title "代码升级" --yesno "确定升级测试版吗?" 10 60) then if [ -e "$File_Name" ] then rm -f $File_Name else echo " ......
代码 bash

Git Bash安装

一、Git 1、下载 Git - Downloads (git-scm.com) 2、直接安装(略) 二、配置阿里云 1、打开 Git Bash 2、查看已有SSH密钥 cat ~/.ssh/id_rsa.pub 3、如果没有则生成SSH密钥 ssh-keygen -t rsa -C "<注释内容> ......
Bash Git

不小心删除服务[null]后,git bash出现错误,如何解决?

# 不小心删除服务[null]后,git bash出现错误,如何解决? # 错误描述:打开 git bash、msys2都会出现错误「bash: /dev/null: No such device or address」 # 问题定位: 1.使用搜索引擎搜索「bash: /dev/null: No ......
错误 null bash git

bash: accelerate: command not found

py AIGC Stable Diffusion文生图Lora模型微调实现虚拟上装详情 实验手册 实验报告 3. 安装Diffusers 进入PAI-DSW开发环境。 登录PAI控制台。 在页面左上方,选择DSW实例所在的地域。 在左侧导航栏单击工作空间列表,在工作空间列表页面中单击默认工作空间名称 ......
accelerate command found bash not

CentOS grub引导损坏 Minimal BASH-like line editing is supported.For the first word.TAB lists possible command completions.Anywhere else TAB lists possible deyice or file completions.

这是 GRUB boot loader 的命令行提示。它可能出现在以下情况中: 系统没有正确引导 启动项配置不正确 硬盘分区有问题 GRUB 配置有误等 为了解决这个问题,你需要做的是恢复 GRUB。以下是一般步骤,适用于大多数 Linux 发行版(如 Ubuntu): 启动 Live CD - 首 ......
completions possible lists BASH-like TAB

mac中bash和zsh终端切换方法和zsh配置

###zsh下使用bash下的全局命令 bash命令行工具是mac自带的,在网上查找自行安装zsh,然后运行命令的时候报错了 ```shell zsh: command not found: npm ``` npm命令没有找到,在之前bash中是因为在 .bash_profile 中配置了环境变量, ......
终端 zsh 方法 bash mac

Git安装与windows终端配置Git-bash

### Git概述 #### 简介 Git是一个分布式版本控制工具,通常用来对软件开发过程中的源代码文件进行管理。通过Git仓库存储和管理这些文件,Git仓库分为两种: * 本地仓库:开发人员自己电脑上的Git仓库 * 远程仓库:远程服务器上的Git仓库 commit:提交,将本地文件和版本信息保存 ......
终端 Git Git-bash windows bash

bash脚本,压缩和打包

1.给文件改名,并进行压缩 #!/bin/bash # -*- coding: utf-8 -*- ##给文件改名,并进行压缩 oldName="PriceAlarmServer" newName="PriceAlarmServerGnn" echo "oldName:"${oldName} ech ......
脚本 bash