摘要:
echo "hello" > /dev/pts/142 这样就可以吧echo的内容打印到另外的一个terminal上面 who 命令可以查看所有的终端号 用who am i或者ps命令可以看到当前终端的信息,例如 % who am i user1 pts/137 ... 阅读全文
posted @ 2021-01-25 20:25
reasoner
阅读(196)
评论(0)
推荐(0)
摘要:
参考:https://man.linuxde.net/grep 找到不满足某个规则的文件 find . ! -name "*.c" -exec rm {} \; 保留文件路径复制 cp --parent $(cat list.txt) . 阅读全文
posted @ 2021-01-25 20:00
reasoner
阅读(60)
评论(0)
推荐(0)
摘要:
 阅读全文
posted @ 2021-01-25 19:53
reasoner
阅读(90)
评论(0)
推荐(0)
摘要:
切换到用户执行一个命令:su - oracle -c command 切换到用户执行一个脚本:su - oracle -s /bin/bash shell.sh 阅读全文
posted @ 2021-01-25 19:51
reasoner
阅读(514)
评论(0)
推荐(0)
摘要:
参考:https://wangdoc.com/bash/expansion.html 在terminal中输入命令,shell会先进行模式扩展,然后才会把扩展后的字符串解析为参数传递给命令。 参考:https://blog.csdn.net/weixin_43930641/article/detai 阅读全文
posted @ 2021-01-25 11:07
reasoner
阅读(149)
评论(0)
推荐(0)