转换 gbk txt文件为 utf-8 编码
这都是为了看《非正常人类异闻录》
iconv -c -f gbk -t utf-8 待转文件名 > target.txt
-c 的意思是在输出文本中忽略非法的字符序列
然而都弄好了,即没有认真看那本书。不喜欢那种风格,没办法
这都是为了看《非正常人类异闻录》
iconv -c -f gbk -t utf-8 待转文件名 > target.txt
-c 的意思是在输出文本中忽略非法的字符序列
然而都弄好了,即没有认真看那本书。不喜欢那种风格,没办法
ps
apt install -y procps
ping
apt install -y iputils-ping
telnet
apt install -y telnet
first,
sudo dpkg --configure -a
followed by:
sudo apt --fix-broken install
sudo
command: http_proxy=xxx:xxx sudo yourcommand
doesn't work, you should sudo http_proxy=xxx:yyy yourcommand
instead.ssh username@hostname 'bash -s' < your.local.script.sh
ssh username@hostname < your.local.script.sh 'bash -s' yourparam1 yourparam2
doesn't work, you should runssh username@hostname < your.local.script.sh 'bash -s' -- yourparam1 yourparam2
sudo fc-cache -fv
You are already using Linux, so you have dd already, you don't need any other tools to make a bootable USB disk!
sudo dd bs=1M if=galliumos-3.1-baytrail.iso of=/dev/sda ; sync
Notice:
You should use your iso file name and replace /dev/sda
to your own USB disk device.
我们都知道从当前行往下删除 n 行很容易, ndd
就好了。但往上删除呢? 我以前是不知道的,最近搜索了一下,找到了答案,而且额外学到了其他的技巧,你想听吗(不想听我也会写,哈哈
8dd其实是dd重复8次,容易记忆,但效率很低。正确的姿势是 7dj
或者 d7j
。我想你看到这里已经猜到应该怎么向上删除了。如果打算从当前行往上删除n行,你需要 {n-1}dk
或者 d{n-1}k
故事到这里应该结束了,然而.... 试试 V3kd
, V4jd
,注意是大写的V。你会对vim的强大有更多的理解。
By the way, 如果你要从当前行删除到你知道行号的某一行,举例来说,你要从当前行一直删到第434行,无所谓是向上删还是向下删,用 d434G
就可以了。