commands scripts shell bash

hbase shell显示中文

1、 查看单个字段的值 后面加上 :toString 2、 查看所有数据 后面加上 {FORMATTER=>'toString'} ......
hbase shell

shell中三种语句

1:if语句 2:for语句 for语句就是循环语句,要指定一个列表或者变量,就是有具体的循环的次数,可以使用for语句 介绍: 使用for循环语句时,需要指定一个变量及取值列表,针对每个不同的取值重复执行相同的命令序列,直到变量值用完退出循环。然后在这里取值列表也被称为for语句的执行条件。for ......
语句 shell

Shell 拷贝文件带时间

1、 2、copy.sh #!/bin/bash #author: kikyo #date: 2023-12-07 suffix=`date +%Y-%m-%d_%H.%m.%S` for f in `find /www/k/data/ -type f -name "*.txt"` do #echo ......
拷贝 文件 时间 Shell

构建EDK2 UEFI shell之Shell.efi

如何搭建EDK2开发环境以及编译UEFI程序,请参考:ubuntu20.04下搭建EDK2开发环境 。 编译EDK2 UEFI shell程序: cd edk2 export WORKSPACE=$PWD export EDK_TOOLS_PATH="$PWD/edk2/BaseTools" exp ......
Shell shell EDK2 UEFI EDK

UEFI代码中执行UEFI shell命令

在UEFI代码中执行UEFI shell命令,类似于linux下C代码执行system("command")系统调用。 MyUefiShell.inf内容如下: [Defines] INF_VERSION = 1.25 BASE_NAME = MyUefiShell FILE_GUID = 6987 ......
UEFI 命令 代码 shell

Linux编写Shell脚本获取指定目录下所有文件并处理

Linux编写Shell脚本获取指定目录下所有文件进行处理并保存到新目录 #!/bin/bash app_name="shell" path="/dir" #原目录 last_path="/newDir" #新目录 echo " start ${app_name} " if [ -n "$(ls $ ......
脚本 文件 目录 Linux Shell

反弹Shell的各种姿势-Linux

反弹Shell-Linux 监听方式 nc -lnvp 7777 【监听端】centos: 192.168.35.152 【被控端】kali: 192.168.35.128 # 监听端执行[root@localhost ~]# nc -vvl 7777 #Ncat: Version 7.50 ( h ......
姿势 Shell Linux

hbase shell 常用命令

Hbase shell命令 1.进入hbase客户端命令hbase shell 2.查看帮助命令 help 主要学习下面三个: 3.namespace创建命名空间 (1)create_namespace ‘ns1’ (2)list_namespace 4.ddl (1)list 查看表格 (2)cr ......
命令 常用 hbase shell

解决:Command line is too long. Shorten command line for xxx or also for Application default configurat

解决:Command line is too long. Shorten command line for xxx or also for Application default configurat 解决:Error running 'xxx': Command line is too long. ......
line Application configurat for Command

Command line is too long. Shorten command line for xxx or also for Spring Boot default configuration 主要是命令行太长了,导致项目启动不成功

Command line is too long. Shorten command line for xxx or also for Spring Boot default configuration 主要是命令行太长了,导致项目启动不成功 目录 一、情景再现: 二、分析原因: 三、解决方法: 1、 ......
line configuration for 命令 Command

jupyter notebook代码补全扩展安装遇到 Jupyter command `jupyter-contrib` not found.” 问题

Jupyter command jupyter-contrib not found. 解决方案——新的安装方式。 方法1 : pip方式 1.先使用以下命令,卸载旧版本的 jupyter_contrib_nbextensions 和 upyter_nbextensions_configurator: ......

CVE初探之漏洞反弹Shell(CVE-2019-6250)

ZMQ(Zero MessageQueue)是一种基于消息队列得多线程网络库,C++编写,可以使得Socket编程更加简单高效。该编号为CVE-2019-6250的远程执行漏洞,主要出现在ZMQ的核心引擎libzmq(4.2.x以及4.3.1之后的4.3.x)定义的ZMTPv2.0协议中。 ......
漏洞 CVE Shell 2019 6250

Mysql定时备份 Using a password on the command line interface can be insecure

最近运维过程中需要备份Mysql数据库,网上找bat脚本执行发现提示不能直接在脚本里放密码,Using a password on the command line interface can be insecure,应该是高级的mysql数据库的安全策略。 首先建一个bat文件 --default ......
备份 interface password insecure command

fish 复用 .bash_profile 里的环境变量

vim ~/.config/fish/config.fish 添加以下代码 # REUSE ENVIRONMENT VARIABLES FROM ~/.bash_profile bash -c '. ~/.bash_profile; env' | while read e set var (echo ......
变量 bash_profile profile 环境 fish

Shell For Jenkins_1

定义变量时,变量名不加美元符号; 变量名和等号之间不能有空格,这可能和你熟悉的所有编程语言都不一样 --> 简直有毒!!! 只包含字母、数字和下划线: 变量名可以包含字母(大小写敏感)、数字和下划线 _,不能包含其他特殊字符。 不能以数字开头: 变量名不能以数字开头,但可以包含数字。 避免使用 Sh ......
Jenkins Shell For

ubuntu中vim乱码以及执行shell脚本时出现乱码

vim打开文件中文出现乱码情况,可以参考如下办法: 在vim /usr/share/vim/vimrc文件末尾中加入 (这个vimrc文件是Vim 的系统级配置文件、文档、插件、语法高亮定义、颜色方案等) set encoding=utf-8 set fileencodings=utf-8,gbk ......
乱码 脚本 ubuntu shell vim

Shell for Jenkins 1

#!/bin/bash echo "Hello World !" #! 是一个约定的标记,它告诉系统这个脚本需要什么解释器来执行,即使用哪一种 Shell echo 命令用于向窗口输出文本 chmod +x ./test.sh #使脚本具有执行权限 ./test.sh #执行脚本 一定要写成 ./t ......
Jenkins Shell for

I found no \bibdata command---while reading file main.aux

报错: I found no \bibdata command while reading file main.aux I couldn't open file name `main.aux' 使用vscode 原因是文章使用的是biblatex而不是natbib,所以要用biber而不是bibte ......
bibdata command reading found while

shell脚本-两个list查找匹配项

#!/bin/bash search_list='xx/search_list.txt' list='xx/revise_list.txt' result='xx/result.txt' # 逐行读取list文件 while IFS= read -r line; do # 在search_list文 ......
脚本 两个 shell list

对bash脚本增加tab自动补全

需求 高频使用自编benchmark工具, 希望能像原生命令一样tab补全。 要求: 能够针对-s补全指定数据集名称 能够针对-b补全分支名称(基于本地git仓库) 能够补全-d -e -q等普通参数 实现 依赖 常见Linux发行版都内置了自动补全的依赖,以Ubuntu默认shell bash为例 ......
脚本 bash tab

手写类似于BetterScroll样式的左右联动菜单 uni-app+vue3+ts (使用了script setup语法糖)

注意:在模拟器用鼠标滚动是不会切换光标的,因为使用的是触摸滑动。【自定义类型贴在最后了】 script 部分如下: import { onMounted } from 'vue' import type { orderDetail } from '@/types/category' import t ......
BetterScroll 语法 样式 菜单 uni-app

[script][fdtd]

fdtd, 对象:【监视器反射率】,操作:【使用script语言更改单位units】,【数据保存至txt/mat文件中】;难点:获取监视器中的数据,【.】独特的点运算,rawdata和getresult的区别,使用【?】获取变量的有无和名称, 待解决的小困惑点: 作图的反射率T的计算公式,获取教学视 ......
script fdtd

Linux环境Shell编程 ---- 系列文章

分类 - Linux / Shell 07-Shell运算符 06-Shell内置命令 05-Shell索引数组变量 04-Shell字符串变量 03-Shell环境变量深入 02-Shell变量 01-Shell脚本入门 出处:https://www.cnblogs.com/Icer-newer/ ......
环境 文章 Linux Shell

windows CPU 使用优化Shell Infrastructure Host High CPU on Windows

https://www.drivereasy.com/knowledge/shell-infrastructure-host-high-cpu/ ......
Infrastructure CPU windows Windows Shell

07-Shell运算符

1.算术运算符 1.1 expr命令 expr 是 evaluate expressions 的缩写,译为“求值表达式”。Shell expr 是一个功能强大,并且比较复杂的命令,它除了可以实现整数计算,还可以结合一些选项对字符串进行处理,例如计算字符串长度、字符串比较、字符串匹配、字符串提取等, ......
运算符 Shell 07

06-Shell内置命令

1.内置命令介绍 Shell 内置命令,就是由 Bash Shell 自身提供的命令,而不是文件系统中的可执行文件。 使用type 来确定一个命令是否是内置命令: type 命令 通常来说,内置命令会比外部命令(脚本文件)执行得更快,执行外部命令时不但会触发磁盘 I/O,还需要 fork 出一个单独 ......
命令 Shell 06

linux介绍、安装、shell

1-Linux发展介绍 零 什么是Linux Linux:和我们常见的Windows一样,都是操作系统,但不同的是: Windows: 收费,不开源,主要用于日常办公、游戏、娱乐多一些。 Linux: 免费,开源,主要用于服务器领域,性能稳定,安全。 例如:淘宝、百度、腾讯等互联网公司,他们使用的服 ......
linux shell

jenkins使用shell提交git指令时,怎么使用 credential凭证信息

在 Jenkins 中使用 shell 脚本提交 Git 指令时,你可以通过使用 Git 凭据信息来进行认证。这可以通过以下步骤来实现: 设置 Git 凭据: 在 Jenkins 中,你可以在“凭据”(Credentials)中添加 Git 的用户名和密码。在 Jenkins 主界面,点击“凭据”- ......
凭证 指令 credential jenkins shell

【AcWing-Linux】03. Shell

Shell 一、Shell简介 shell是我们通过命令行与操作系统沟通的语言。 shell是一种脚本语言,通过对应的脚本解释器解释执行,一般作为内置于操作系统的应用程序向用户提供访问操作系统内核的服务。 shell脚本(shell script)可以直接在命令行中执行,也可以将一套逻辑组织成一个文 ......
AcWing-Linux AcWing Linux Shell 03