Shell Program

xiaoxiao2021-03-06  21

1)! $: Repeat the last command last parameters.

For example: You use a directory with the command mkdir peter / pan / documents / tinkerbell, now you enter the directory with the command 'CD', you can use CD! $, Shell will add the previous command 'mkdir' parameters to Now 'cd' behind.

2) ~: The home directory.

3) Command Replacement: Command1 $ (Command2)

EG: LOCATE README.MOUSE "The output" = /usr/x11r6/lib/x11/doc/readme.mouse "as the parameters of 'Less', then display the contents of the file .

转载请注明原文地址:https://www.9cbs.com/read-39732.html

New Post(0)