首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏开源部署

    如何在 Linux 上复制文件/文件夹到远程服务器?

    这会连同shell-script 文件夹下所有的文件一同复制到/opt/back 下。 /bin/sh for server in `more server-list.txt` do   scp /home/daygeek/2g/shell-script/output.txt root@$ /bin/sh for server in `more server-list.txt` do   scp -r /home/daygeek/2g/shell-script/ root@$server: # pscp.pssh -H 2g.CentOS.com /home/daygeek/2g/shell-script/output.txt ovh.sh /opt/backup [1] 18:47:48 # pscp.pssh -h server-list.txt /home/daygeek/2g/shell-script/output.txt passwd-up.sh /opt/backup [1]

    17.3K10编辑于 2022-07-26
  • 来自专栏用户7721898的专栏

    shell脚本快速入门系列之------变量

    /bin/bash #This is my first shell-script read -p "请输入一个整数:" score echo "你的成绩为:$score" ~ [root@localhost /bin/bash #This is my first shell-script sum=0 sum=`expr $1 + $2` echo "总和为:$sum" [root@localhost opt /bin/bash #This is my first shell-script sum=0 sum=`expr $1 + $2` echo "总和为:$sum" echo "执行的脚本是:$0" echo /bin/bash #This is my first shell-script sum=0 sum=`expr $1 + $2` echo "是否执行成功:$?" /bin/bash #This is my first shell-script sum=0 sum=`expr $1 / $2` '改变成除法' echo "是否执行成功:$?"

    93830发布于 2020-09-03
  • 来自专栏运维技术迷

    Shell系列-编写及执行脚本

    /bin/bash   //sha-bang调用标记 #A test program for shell-script  //注释信息 echo "Hello World"      //可执行的脚本语句或命令行

    1K70发布于 2018-03-26
  • 来自专栏编程

    Linux常用网络工具总结(一)

    官方描述的功能包括: simple TCP proxies shell-script based HTTP clients and servers network daemon testing a SOCKS

    1.6K70发布于 2018-01-31
  • 来自专栏非著名运维

    1分钟配置Kubectl命令自动补全功能

    bash-completion/bash_completion # -*- shell-script

    6.7K20编辑于 2022-06-22
  • 来自专栏前端F2E

    Biome:更快的格式化和 Linting

    biomejs.dev/reference/configuration/#overrides [11] pre-commit 脚本: https://biomejs.dev/recipes/git-hooks/#shell-script

    1.2K10编辑于 2024-04-25
  • 来自专栏用户7721898的专栏

    shell脚本快速入门系列—————— shell脚本编程规范

    /bin/bash #This is my first shell-script '脚本描述信息' cd /boot echo "当前所在路径:" '输出友好提示信息' pwd echo "以vm为开头的文件是

    2.6K40发布于 2020-09-03
  • 来自专栏c++ 学习分享

    ​11 Building CGAL​

    less ideal world, one has to provide the CMakeLists.txt script either manually, or with the help of a shell-script /executables need a different linking than other source files. 15.3 cgal_create_cmake_script Such a shell-script

    69520编辑于 2023-07-08
  • 来自专栏漫流砂

    nc 反弹shell ​| Linux 后门系列

    Common uses include: · simple TCP proxies · shell-script based HTTP clients

    3.5K30发布于 2020-08-20
  • Linux Shell 脚本编程基础

    它允许用户编写由shell命令组成的程序.Shel编程语言具有普通编程语言的很多特点,比如它也有循环结构和分支控制结构等,用这种编程语言编写的Shell程序与其他应用程序具有同样的效果,下面我们会介绍Shell-Script

    2.5K20编辑于 2022-12-28
  • 来自专栏菜鸟成长学习笔记

    Linux常用网络工具总结

    官方描述的功能包括: simple TCP proxies shell-script based HTTP clients and servers network daemon testing a SOCKS

    6.8K10发布于 2020-05-19
  • Linux Shell脚本编程提高

    它允许用户编写由shell命令组成的程序.Shel编程语言具有普通编程语言的很多特点,比如它也有循环结构和分支控制结构等,用这种编程语言编写的Shell程序与其他应用程序具有同样的效果,下面我们会介绍Shell-Script

    3.8K10编辑于 2022-12-28
领券