Unix shell 使用日志
Unix shell 使用日志
-
Ctrl+Z fg
Ctrl+z使当前任务暂存于后台 > $traceroute www.baidu.com > > traceroute: Warning: www.baidu.com has multiple addresses; using 61.135.169.125 > > traceroute to www.a.shifen.com (61.135.169.125), 64 hops max, 52 byte packets > > 1 192.168.199.253 (192.168.199.253) 2.987 ms 2.010 ms 1.981 ms > > 2 *^Z > > [1] + 38175 suspended traceroute www.baidu.com > > $ fg可以恢复暂存于后台的任务 >[1] + 38175 continued traceroute www.baidu.com > >** > 3 * * 172.16.2.4 (172.16.2.4) 1.660 ms > 4 172.16.4.2 (172.16.4.2) 3.390 ms 3.445 ms 2.577 ms > 5 172.31.2.14 (172.31.2.14) 2.191 ms 2.205 ms 1.644 ms > 6 124.126.244.25 (124.126.244.25) 3.805 ms 3.545 ms 4.616 ms > 7 * * 17.254.120.106.static.bjtelecom.net (106.120.254.17) 2.907 ms > 8 bj141-162-181.bjtelecom.net (219.141.162.181) 3.204 ms > bj141-158-117.bjtelecom.net (219.141.158.117) 5.384 ms 5.096 ms > >
-
Ctrl+C
删除当前任务
-
open 打开
Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-b
] [-a ] [filenames] [--args arguments] Help: Open opens files from a shell.
By default, opens each file using the default application for that file.
If the file is in the form of a URL, the file will be opened as a URL.Options:
-a Opens with the specified application.
-b Opens with the specified application bundle identifier.
-e Opens with TextEdit.
-t Opens with default text editor.
-f Reads input from standard input and opens with TextEdit.
-F --fresh Launches the app fresh, that is, without restoring windows. Saved persistent state is lost, excluding Untitled documents.
-R, --reveal Selects in the Finder instead of opening.
-W, --wait-apps Blocks until the used applications are closed (even if they were already running).
--args All remaining arguments are passed in argv to the application's main() function instead of opened.
-n, --new Open a new instance of the application even if one is already running.
-j, --hide Launches the app hidden.
-g, --background Does not bring the application to the foreground.
-h, --header Searches header file locations for headers matching the given filenames, and opens them. -
alias “同名”
可以用在bash、zsh配置文件中,使前者与后者等价 ```bash alias typora="open -a typora" ```