Powered by md-Blog  文 - 篇  访客 -

  • CloudconeAgent

    #!/bin/bash # Set environment PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GATEWAY=$(cat /opt/cloudcone/gateway) SERVERKEY=$(cat /opt/cloudcone/serverkey) function encode() { echo "$1" | base64 } function getOS() { if [ -f /etc/lsb-release ]; then os_name=$(lsb_release -s -d) elif [ -f /etc/debian_version ]; then os_name="Debian $(cat /etc/debian_ver

    2020-11-10 00:10:50   2020-11-10 00:10:50
    分类:Shell / 浏览:016049382507472
  • 全网测速

    #!/usr/bin/env bash # # Description: Test your server's network with Speedtest to China # # Copyright (C) 2017 - 2017 Oldking <[email protected]> # # URL: https://www.oldking.net/305.html # # Colors RED='33[0;31m' GREEN='33[0;32m' YELLOW='33[0;33m' SKYBLUE='33[0;36m' PLAIN='33[0m' # check root [[ $EUID -ne 0 ]] && echo -e "${RED}Error:${PLAIN} This script must be run as root!" && e

    2020-11-10 00:10:50   2020-11-10 00:10:50
    分类:Shell / 浏览:016049382506940
  • Linux命令行文本工具

    Linux命令行文本工具浏览文件Copycat 查看文件内容 more 以翻页形式查看文件内容(只能向下翻页) less 以翻页形式查看文件内容(可以上下翻页) head 查看文件的头几行(默认10行) tail 查看文件的尾几行(默认10行) 示例: 1、查看前10行Copy$ head -n 10 test.log 2、跟踪查看最后100行Copy$ tail -f -n 100 test.log

    2020-11-10 00:10:49   2020-11-10 00:10:49
    分类:Shell / 浏览:016049382491542
  • Shell字符串和数组

    shell-bookShell脚本学习系列教程:6小节内容轻松掌握shell编程。View on GitHub03- Shell脚本学习–字符串和数组字符串字符串是shell编程中最常用最有用的数据类型(除了数字和字符串,也没啥其它类型好用了),字符串可以用单引号,也可以用双引号,也可以不用引号。单双引号的区别跟PHP类似:单双引号的区别:双引号

    2020-11-10 00:10:49   2020-11-10 00:10:49
    分类:Shell / 浏览:016049382492127
  • 1
  • Konvict


     
    百度站内搜索