我想尾部 -fa 文件可能包含很长的行。我还希望每个屏幕行看到一行,并在必要时滚动到一侧,就像 Vim 的 zL 和 zH 一样,因此没有换行,
有办法做到这一点吗?理想情况下,无需使用 vim 或 emacs 来完成此任务。使用另一个终端模拟器没问题,但我使用的是 Mac(现在使用 iTerm2)。
我可以显示我刚刚启动的进程的 PID,理想情况下在命令行的末尾吗?
Example:
root in ~: mysqld .................. [PID 34567]
12121 mysql-logs start to come in...
12125 more logs...
Run Code Online (Sandbox Code Playgroud)
例如,当我启动两个mysqld进程而第二个进程不“工作”(端口等)时,我无法确定哪个守护进程具有哪个 PID。
具体例子:
mysqld >/dev/null 130 ?
120126 15:44:05 [Note] Plugin 'FEDERATED' is disabled.
120126 15:44:05 InnoDB: The InnoDB memory heap is disabled
120126 15:44:05 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120126 15:44:05 InnoDB: Compressed tables use zlib 1.2.3
120126 15:44:05 InnoDB: Initializing buffer pool, size = 128.0M
120126 15:44:05 InnoDB: Completed initialization of buffer pool
InnoDB: …Run Code Online (Sandbox Code Playgroud)