参考
制作rpm包: https://wangbin.io/blog/it/yum-rpm-make.html
linux rpm安装mysql: https://www.jianshu.com/p/3e46b0c88200
rpm 和yum学习: https://www.cnblogs.com/gmlkl/p/9354254.html
url.sh
#!/bin/bash # author: shuoqi.yu
# url: www.runoob.com url="http://www.runoob.com/login.html"
echo -e "url = ${url}" # read only
readonly url # url Length
echo -e "{#url}= ${#url}" # cut off left begin characters
echo -e "{url#*//} = ${url#*//}" # cut off left end characters
echo -e "{url##*/} = ${url##*/}" # cut off right begin characters
echo -e "{url%/*} = ${url%/*}" # cut off right end characters
echo -e "{url%%/*} = ${url%%/*}" # part obtain
echo -e "{url:1:6} = ${url:1:6}" # part obtain
echo -e "{url:7} = ${url:7}" # part obtain: left first() right first(-)
echo -e "{url:0-7} = ${url:0-7}" # part obtain
echo -e "{url:0-7:3} = ${url:0-7:3}"
ls.sh
#!/bin/bash # author: shuoqi.yu for file in $(ls);do
echo "${file}"
done
test.sh
#!/bin/bash # author: shuoqi.yu
# url: www.runoob.com # quoto url.sh
source ./url.sh echo -e "$ 0 = $0"
echo -e "$ 1 = $1"
echo -e "$ # = $#" echo -e "url = ${url}\n" # define arr
arr=( ) # display arr value
echo -e "{arr[1]} = ${arr[1]}" # display
:<<EOF
echo "This is not display."
EOF # all arr elements
echo -e "{arr[@]} = ${arr[@]}" # arr Length
echo -e "{#arr[@]} = ${#arr[@]}" # single arr element Length
echo -e "{#arr[1]} = ${#arr[1]}"
bubble.c
/* Copyright (C) 2019 * Ltd. All rights reserved.
* Create date : 2019-09-24 22:33:28
*================================================*/ #include <stdio.h> void swap(int *a, int *b)
{
int temp;
temp = *a;
*a = *b;
*b = temp;
} void bubbleSort(int arr[], int len)
{
int i=, j=, temp;
for(i=; i<len-; i++)
{
for(j=; j<len--i; j++)
{
if(arr[j] > arr[j+])
swap(&arr[j], &arr[j+]);
} }
} void printArr(int arr[], int len)
{
int i = ;
for(i=; i<len; i++)
printf("%d ", *(arr + i));
printf("\n");
} int main()
{
int arr[] = {, , , , };
int len = (int) sizeof(arr)/sizeof(arr[]);
bubbleSort(arr, len);
printArr(arr, len);
}
quick.c
/* Copyright (C) 2019 * Ltd. All rights reserved.
* Create date : 2019-09-24 23:01:59
*================================================*/ void quickSort(int arr[], int left, int right)
{
if(left < right)
{
int i=left, j=right, tmp=arr[left];
while(i < j)
{
while(i<j && arr[j] >= tmp)
j--;
if(i < j)
arr[i++] = arr[j];
while(i<j && arr[i] < tmp)
i++;
if(i < j)
arr[j--] = arr[i];
}
s[i] = tmp; quickSort(arr, left, i-);
quickSort(arr, i+, right);
}
}
rpm的specs学习的更多相关文章
- rpm构建流程学习总结
rpm构建流程 学习链接: b站马哥: https://www.bilibili.com/video/BV1ai4y1N7gp RedHat: https://access.redhat.com/do ...
- 第四周LINUX 学习笔记
内核编译丶sed丶awk Linux:单内核 模块化:动态 /lib/modules lsmod,modinfo,modprobe,insmod,,modprobe -r , ...
- Linux基础学习系列目录导航
Linux基础学习-通过VM安装RHEL7.4 Linux基础学习-命令行与图形界面切换 Linux基础学习-基本命令 Linux基础学习-RHEL7.4之YUM更换CentOS源 Linux基础学习 ...
- Centos 5.5 更新网卡驱动 bnx2 version: 2.0.2
操作系统:CentOS release 5.5 (Final) 故障现象:网卡无故自动down掉,使用service network restart 重启后没多久又会自动down , 连接数大概在2 ...
- Linux 基础(3)
Linux 基础(三) rpm与yum学习 本篇分享一下自己学习rpm和yum过程中的一些心得,自己在使用yum过程中由于自己的虚拟机网络的问题在学习这一块品尝到不少苦头,还望学习这块的盆友先检查一下 ...
- 【原创】大数据基础之Ambari(1)简介、编译安装、使用
官方:http://ambari.apache.org/ The Apache Ambari project is aimed at making Hadoop management simpler ...
- Linux Guard Service - 进程分裂与脱离
进程分裂更名 void set_ps_name(char *name) { prctl(PR_SET_NAME, name); } 修改进程长名称 备份进程环境变量空间 for (i = 1; i & ...
- 关于configure和Makefile
http://blog.csdn.net/lltaoyy/article/details/7615833 转篇文章,讲的不是很清楚,再附上几个资料连接,来自http://www.linuxdw.com ...
- ambari 2.5.0源码编译安装
参考:https://www.ibm.com/developerworks/cn/opensource/os-cn-bigdata-ambari/index.html Ambari 是什么 Ambar ...
随机推荐
- CBES = component-based entity system
比较好的介绍 CBES 的文章 http://www.richardlord.net/blog/what-is-an-entity-framework
- vue知识点积累
vue中 列表组件写key,起作用是什么? <ul> <li v-for="item in items" :key="item.id"> ...
- ss user-rule自定义规则并硬连接到OneDrive进行自动同步
最近又换回Edge没了Switchy Omega用,仅仅使用GFWList感觉不够用,一些境内没服务器的网站直连还是挺慢的,于是就研究了一下PAC自定义规则. 简单说,平时用的规则就只有三种: 对于没 ...
- [转帖CCIX]
业界七巨头联手,数据中心通过PCIe实现25Gbps数据通信! 2017-06-07 17:31 CCIX(Cache Coherent Interconnect for Accelerators,针 ...
- django fields lookup methods(lookup类型)
__exact 精确等于 like 'aaa' __iexact 精确等于 忽略大小写 ilike 'aaa' __contains 包含 like '%aaa%' __ic ...
- 什么是SSL证书服务?
SSL证书服务(Alibaba Cloud SSL Certificates Service)由阿里云联合多家国内外数字证书管理和颁发的权威机构.在阿里云平台上直接提供的服务器数字证书.您可以在阿里云 ...
- postman的安装与使用方法介绍
软件介绍 在我们平时开发中,特别是需要与接口打交道时,无论是写接口还是用接口,拿到接口后肯定都得提前测试一下,这样的话就非常需要有一个比较给力的Http请求模拟工具,现在流行的这种工具也挺多的,像火狐 ...
- Python可修改和不可修改类型变量(mutuable and immutuable)
通俗的讲,可修改可以理解为可以在数据所在内存地址直接修改,而不可修改则意味着一旦修改便是创建新的数据对象,而不是在原来的对象内存地址修改 1,Mutuable object [sourcecode l ...
- 输入一个正整数n,输出所有和为n的连续正整数序列
public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { System. ...
- S03_CH03_AXI_DMA_OV7725摄像头采集系统
S03_CH03_AXI_DMA_OV7725摄像头采集系统 3.1概述 本课程讲解如何搭建基于DMA的图形系统,方案原理如下. 摄像头采样图像数据后通过DMA送入到DDR,在PS部分产生DMA接收中 ...