记住这些快捷键shell操作的时候速度快很多!
5 tty - A command line interface
tty is a simple command line interface program where keystrokes are collected and interpreted. Completed lines are sent to the shell for interpretation. There is a simple history mechanism, which saves previous lines. These can be edited before sending them to the shell. tty is started when Erlang is started with the command:
erl
tty operates in one of two modes:
* normal mode, in which lines of text can be edited and sent to the shell.
* shell break mode, which allows the user to kill the current shell, start multiple shells etc. Shell break mode is started by typing Control G.
5.1 Normal Mode
In normal mode keystrokes from the user are collected and interpreted by tty. Most of the emacs line editing commands are supported. The following is a complete list of the supported line editing commands.
Note: The notation C-a means pressing the control key and the letter a simultaneously. M-f means pressing the ESC key followed by the letter f.
tty text editing Key Sequence Function
C-a Beginning of line
C-b Backward character
M-b Backward word
C-d Delete character
M-d Delete word
C-e End of line
C-f Forward character
M-f Forward word
C-g Enter shell break mode
C-k Kill line
C-l Redraw line
C-n Fetch next line from the history buffer
C-p Fetch previous line from the history buffer
C-t Transpose characters
C-y Insert previously killed text
5.2 Shell Break Mode
tty enters shell break mode when you type Control G. In this mode you can:
* Kill or suspend the current shell
* Connect to a suspended shell
* Start a new shell
分享到:
相关推荐
- `sudo command`: Run a command as root. - `sudo -s`: Open a root shell. - `sudo -s -u user`: Open a shell as a specific user. - `sudo -k`: Forget sudo passwords (logout). **2. Graphical Sudo ...
TTY和NOTTY模式无需回调-设计为纯外部控件的UI小部件在异步和同步任务中工作预设/主题支持自定义栏格式器(通过回调)用法可以使用多个示例,例如只需尝试$ node example.js const cliProgress = require ( 'cli-...
pseudo-tty,/dev/pts/#)交互式接口GUI:Graphic User InterfaceCLI:Command Line InterfaceShellBash Shell命令提示符执行命令内部命令外部命令执行外部命令 分区类型 GPT 只支持主分区 MBR 主分区:最多四个,...
[ 3.953017] Bluetooth: RFCOMM TTY layer initialized [ 3.958456] Bluetooth: RFCOMM socket layer initialized [ 3.964183] Bluetooth: RFCOMM ver 1.11 [ 3.968340] Bluetooth: BNEP (Ethernet Emulation) ver ...
[ 3.953017] Bluetooth: RFCOMM TTY layer initialized [ 3.958456] Bluetooth: RFCOMM socket layer initialized [ 3.964183] Bluetooth: RFCOMM ver 1.11 [ 3.968340] Bluetooth: BNEP (Ethernet Emulation) ver ...
[ 3.953017] Bluetooth: RFCOMM TTY layer initialized [ 3.958456] Bluetooth: RFCOMM socket layer initialized [ 3.964183] Bluetooth: RFCOMM ver 1.11 [ 3.968340] Bluetooth: BNEP (Ethernet Emulation) ver ...
命令行界面(Command Line Interface, CLI)是一种文本界面,用户可以通过输入命令来与计算机进行交互。相较于图形用户界面(Graphical User Interface, GUI),命令行具有以下优势: - **效率更高**:熟练使用命令行...
[ 3.953017] Bluetooth: RFCOMM TTY layer initialized [ 3.958456] Bluetooth: RFCOMM socket layer initialized [ 3.964183] Bluetooth: RFCOMM ver 1.11 [ 3.968340] Bluetooth: BNEP (Ethernet Emulation) ver ...
标签中的"CLI"代表命令行界面(Command Line Interface),这是Linux系统中最常用的操作方式,特别是在进行系统管理时。"text"可能指的是这些操作都是基于文本输出的,而非图形界面。 至于文件`task-main`,由于...