ssh
安装ssh服务器
sudo apt install openssh-server
安装OpenSSH服务器vim /etc/ssh/sshd_config
编辑sshd设置
新建ssh会话
ssh username@ip -p port
断开ssh会话
一段时间未使用ssh会话后,该terminal卡住无法进行任何操作,如何结束:1
2
31.按回车换行
2.Shift+` (即~)
3.`.`
可以使用man ssh
查看帮助,里面有一段是这样写的:1
2
3
4
5
6
7
8
9
10
11
12ESCAPE CHARACTERS
When a pseudo-terminal has been requested, ssh supports a number of functions through the use
of an escape character.
A single tilde character can be sent as ~~ or by following the tilde by a character other than
those described below. The escape character must always follow a newline to be interpreted as
special. The escape character can be changed in configuration files using the EscapeChar con‐
figuration directive or on the command line by the -e option.
The supported escapes (assuming the default ‘~’) are:
~. Disconnect.
网易云音乐
直接使用dpkg -i netease-cloud-music*
会提示缺乏依赖
ubuntu 16.04 安装网易云音乐1
2
3sudo apt-get update
sudo apt-get install -f
sudo dpkg -i netease-cloud-music*
初试Emacs
打开自带教程的特定语言版本
M-x help-with-tutorial-spec-language
即Alt+x同时按住,然后输入help-with-tutorial-spec-language
(注意: 没有引号,M+x后直接输入即可),之后选择需要的语言。
或是在图形界面下选择选项卡中的Help>Emacs Tutorial(choose language)…,之后输入对应语言的语言代码即可(如Chinese-GBK)。
一些控制键描述字符的解释
1 | C CTRL |
Ctrl Meta
请注意 C-f 、C-b 和 M-f 、M-b 两对之间的类比关系。通常的惯例是:META 系
列组合键用来操作“由语言定义的单位(比如词、句子、段落)”,而 CONTROL
系列组合键用来操作“与语言无关的基本单位(比如字符、行等等)”。
类似的惯例在“行”与“句子”之间也同样适用:C-a 和 C-e 可以将光标移动到
“一行”的头部和尾部;而 M-a 和 M-e 则将光标移动到“一句”的头部和尾部。虽然大部分命令把数字参数解释为其重复次数,但是也有些命令例外,它们将数
字参数另做它用。比如有些命令(我们目前还没学到)仅仅将前缀参数作为一个
标志――只要给出有一个前缀参数,不管其值为何,它都会改变命令的功能。而 C-v 和 M-v 则属于另一种类型的例外。当给定一个参数时,它们将滚动你指
定的“行数”,而不是“屏数”。举例来说,C-u 8 C-v 将文本向下滚动 8 行。
简单的光标移动命令
1 | C-f 向右移动一个字符 |