目标:
- 在命令行生成足够强大的随机密码
- 长度可以按需设置
- 由数字和大小写英文字母组成
- 最好可按需加入特殊字符
如没有安装smartmontools包,请先sudo pacman -S smartmontools
。然后使用sudo fdisk -l
命令列出系统中的分区信息。
使用sudo smartctl -H /dev/sda1
命令显示指定设备的SMART整体健康自我评估测试结果。如果结果是...test result: PASSED
,那么你的硬盘很健康,近期内不大可能发生硬件失效。
pacman是Arch Linux操作系统的软件包管理工具。藉由Arch Linux强大的软件仓库,pacman会让你觉得Arch Linux的软件管理非常简单方便。
为了在文章中显示数学公式,需要为Hexo开启相关插件,如:MathJax。以Hexo的Next主题为例,可在_config.yml中添加:
1 | theme: next |
斐波那契数列(Fibonacci Sequence)又称黄金分割数列,因数学家列昂纳多·斐波那契以兔子繁殖为例子而引入,故又称为“兔子数列”。在数学上斐波纳契数列以如下递归的方法定义:
The EOF
is NOT a character or a byte in files, but only a special value to announce the end of file is reached, such as -1 (0xFFFFFFFF) returned from getc() function or 1 (True) returned from eof() function.
The end of a text file is often denoted by placing one or more special characters, known as an end-of-file marker, after the last line in a text file. Such markers were required under the CP/M and MS-DOS operating systems. On modern operating systems such as Windows or Linux, text files do not contain any special EOF character.
Old text file did have an end-of-file maker (in MS-DOS it was ‘\x1A’), and it is not the EOF itself, but only a sign to tell eof() function to return 1 in a text reading progress.
文本文件可被看成特殊的二进制文件,文本以文字编码的形式储存在其中,行尾的分行符将文本分作一行又一行。反观二进制文件则没有行的概念,它们里面只保存以字节为单位的二进制数据。
Text files can be considered as special case of binary files, where text is encoded in the ASCII format and split up into lines, along with end of line marker at the end of each line. Whereas, binary files do not. They are not split up into lines or records, but only binary data in bytes.
分行符在不同的操作系统中的定义是不同的。
The end of line marker depends upon which operating system you are using: