<强>
命令不全:在
命令没有输入完(引号或括号没有配对),就不小心按下了回车键,终端会提示出一个在代表命令不完整,这是可以继续输入,也可以ctrl + c终止输入,重新再来。(下面sed命令使用时,还有另外一种命令不全的问题)强>
<强>
Linux下命令的一些异常情况强>
命令不全:在命令没有输入完(引号或括号没有配对),就不小心按下了回车键,终端会提示出一个在代表命令不完整,这是可以继续输入,也可以ctrl + c终止输入,重新再来。
<>以前ct@ehbio: ~/ehbio_project美元,rename & # 39; ehbio2 祝辞& # 39; ct@ehbio: ~/ehbio_project美元,rename & # 39; ehbio2 在C ^ ct@ehbio: ~/ehbio_project $<>以前ct@ehbio: ~/ehbio_project $ ls ehbio2.fa , ehbio3.fa , ehbio4.fa , ehbio.fa second.fa #,重命名没有生效 ct@ehbio: ~/ehbio_project美元,rename & # 39; ehbio2& # 39;, & # 39; ehbio5& # 39; ebio2.fa ct@ehbio: ~/ehbio_project $ ls ehbio2.fa , ehbio3.fa , ehbio4.fa , ehbio.fa second.fa #,仔细看是ehbio2.fa写成了ebio2.fa,更正后即可。 Z8vb3e9jtel4m99ss6e7eZ: ~/ehbio_project美元,rename & # 39; ehbio2& # 39;, & # 39; ehbio5& # 39; ehbio2.fa ct@ehbio: ~/ehbio_project $ ls ehbio3.fa , ehbio4.fa , ehbio5.fa , ehbio.fa , second.fa <>以前ct@ehbio: ~/ehbio_project $ ls ehbio3.fa , ehbio4.fa , ehbio5.fa , ehbio6.fa , ehbio.fa second.fa ct@ehbio: ~/ehbio_project美元,ls . ./数据 ehbio2.fa first.fa #,当前目录没有ehbio2.fa ct@ehbio: ~/ehbio_project美元,less ehbio2.fa ehbio2.fa:没有那个文件或目录 #,ehbio2.fa在上一层目录的数据目录下 ct@ehbio: ~/ehbio_project美元,ls . ./数据/ehbio2.fa . ./数据/ehbio2.fa #,加上路径依然访问不了, ct@ehbio: ~/ehbio_project美元,less . ./数据/ehbio2.fa . ./数据/ehbio2.fa:没有那个文件或目录 #,上面的问题是软连接失效,在之前的操作中删掉了原始的ehbio2.fa,所以快捷方式失效 #,正确的访问 ct@ehbio: ~/ehbio_project美元,tail -n 3, . ./数据/first.fa ACGGAGCGAGCTAGTGCAGCGAGGAGCTGAGTCGAGC CAGGACAGGAGCTA >之前结束
原文地址: https://www.linuxprobe.com/linux-learning-command.html