![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
AudreyHepburn?Yui Aragaki
这个作者很懒,什么都没留下…
展开
-
效率神器--Shell快捷键
Shell快捷键 ctrl + a :光标跳到行首。 ctrl + e :光标跳到行尾。 ctrl + d :后删一个字符;退出会话,类似于 exit 。 ctrl + k :剪切光标后到行尾的所有内容(可以当作清除用) ctrl + u :剪切光标前到行首的所有内容(可以当作清除用) ctrl + w :剪切光标前的单个单词,以空格分隔(可以当作清除用) ctrl + y :粘贴剪切的内容。 ctrl + r :反向搜索历史命令,实现快速匹配。(真的比 ↑↓ 键找或者是 h原创 2020-08-17 23:57:38 · 315 阅读 · 0 评论 -
一文掌握Shell中单引号和双引号区别
Shell中单引号和双引号区别 1)创建一个test.sh文件 $ vim test.sh 在文件中添加如下内容 #!/bin/bash do_date=$1 echo '$do_date' echo "$do_date" echo "'$do_date'" echo '"$do_date"' echo `date` 2)查看执行结果 $chmod u+x test.sh $./test.sh 2019-02-10 $do_date 2019-02-10 '2019-02-10' "$do_date原创 2020-08-17 00:00:31 · 128 阅读 · 0 评论