摘要: shell中 ! 叫做事件提示符,Event Designator,可以方便的引用历史命令,即history中记录的命令 !n 引用第n条命令 !-n 引导倒数第n条命令, !-1 引用倒数第一条命令 !! 同 !-1 !string 引用最近以string开始的命令 !$ 传递最后执行的命令参数 阅读全文
posted @ 2020-10-09 21:28 ascertain 阅读(572) 评论(0) 推荐(0) 编辑
摘要: return 返回的是状态码, return不返回函数返回值 可以在前面用 echo 返回函数返回值,return 返回指定函数退出状态码 echo 返回的是函数返回值,如果没有使用return,则函数退出状态码是函数最后一条命令的退出状态码 return后面的语句将不再执行 #!/bin/bash 阅读全文
posted @ 2020-10-09 20:58 ascertain 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: 自定义keyfile: 路径必须位于/etc/NetworkManager/system-connections/*.nmconnection This file must be owned by root and be readably only by root - otherwise Netwo 阅读全文
posted @ 2020-10-09 11:19 ascertain 阅读(5429) 评论(0) 推荐(0) 编辑