Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux Learning tutorial-some exceptions to commands under Linux

Shulou Source: shulou.com Published: 2022-06-02 06:34:07 10月04日 Update

Incomplete command: when the command is not finished (quotation marks or parentheses are not matched), the enter key is pressed accidentally, and the terminal will prompt a > indicating that the command is incomplete, which can continue to be entered, or ctrl+c can terminate the input and start all over again. (there is another problem of incomplete commands when using the following sed command.) some anomalies of commands under Linux

Incomplete command: when the command is not finished (quotation marks or parentheses are not matched), the enter key is pressed accidentally, and the terminal will prompt a > indicating that the command is incomplete, which can continue to be entered, or ctrl+c can terminate the input and start all over again.

When using the following sed command, there is another problem with incomplete commands: ct@ehbio:~/ehbio_project$ rename 'ehbio2 >' ct@ehbio:~/ehbio_project$ rename 'ehbio2 > ^ Cct@ehbio:~/ehbio_project$

File name input error: one more letter, one less letter, case problem ct@ehbio:~/ehbio_project$lsehbio2.fa ehbio3.fa ehbio4.fa ehbio.fa second.fa# renaming did not take effect ct@ehbio:~/ehbio_project$ rename 'ehbio2'' ehbio5' ebio2.fact@ehbio:~/ehbio_project$ lsehbio2.fa ehbio3.fa ehbio4.fa ehbio.fa second.fa# look carefully that ehbio2.fa is written into ebio2.fa, correct it. Z8vb3e9jtel4m99ss6e7eZVB3e9jtel4m99ss6e7eZVb3e9jtel4m99ss6e7eZVb3e9jtel4m99ss6e7eZVb3e9jtel4m99ss6e7eZVb3e9jtel4m99ss6e7eZVb3e9jtel4m99ss6e7eZVb3e9jtel4m99ss6e7eZVb3e9jtel4m99ss6e7eZVB3e9jtel4m99ss6e7eZVB3e9jtel4m99ss6e7eZVB3e9jtel4m99ss6e7eZVB3e9j Without providing an absolute path. Or soft connection failure ct@ehbio:~/ehbio_project$ lsehbio3.fa ehbio4.fa ehbio5.fa ehbio6.fa ehbio.fa second.fact@ehbio:~/ehbio_project$ ls.. / dataehbio2.fa first.fa# there is no ehbio2.fact@ehbio:~/ehbio_project$ less ehbio2.faehbio2.fa in the current directory: there is no file or directory # ehbio2.fa is in the data directory of the previous directory ct@ehbio:~/ehbio_project$ ls.. / data/ehbio2. Fa.. / data/ehbio2.fa# plus path still cannot access ct@ehbio:~/ehbio_project$ less.. / data/ehbio2.fa.. / data/ehbio2.fa: there is no file or directory # the problem above is soft connection failure The original ehbio2.fa was deleted in the previous operation, so the shortcut fails # correct access to ct@ehbio:~/ehbio_project$ tail-n 3.. / data/first.fa ACGGAGCGAGCTAGTGCAGCGAGGAGCTGAGTCGAGCCAGGACAGGAGCTAend

Original address: https://www.linuxprobe.com/linux-learning-command.html

Tags: Command directory input file question representative letter quotation mark parenthesis terminal path this is prompt situation wrong original original address size location Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft NVidia Redmi Xiaomi Huawei