[root@localhost ~]# ssh-keygen -f /root/.ssh/id_rsa -N ""[root@localhost ~]# scp -r /root/.ssh 192.168.1.2:/root/ 192.168.1.2是对方主机安装可选包:[root@localhost ~]# yum -y install vim-
本文旨在积累平时写 shell 脚本是遇到的小问题的解决方法。在这里不定期的更新,以便以后查阅、沿用。 一,在shell 脚本中定义默认值 1. 对默认变量直接赋值 read -p "input>>:" nub &n
$@和$*的区别[lf@x201t~]$vim my_fun.sh#!/bin/bash# $@ and $* my_fun (){ echo "$#"}echo 'the number of parameter in "$@" is' $(my_fun "$@")echo 'the number of par
处理 sort 时的内容含有空行的问题
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号