Unix/Linux函数库中的函数有较多缩写(有些甚至需要查阅文档才知道表达什么意思)?
黄舟
黄舟 2017-04-17 15:28:27
0
3
345

阅读<<Unix环境高级编程>>一书,许多函数名称都是不明觉厉的缩写,还真是不太习惯

应该是:

  1. 历史原因?

  2. 习惯原因?

  3. 这些省略只是我不习惯而已?

注:

  1. 是问的C语言函数库中的函数名,不是命令行工具 (具体来说,是/usr/lib的这些)

  2. 函数名弄那么多缩写(不明觉厉的缩写), 真的好吗? (我幼稚地认为: 不好, 徒增许多心智负担)

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
Ty80

Reduce the amount of typing. Many commands are typed directly in the shell

For examplepwd-> print working directory

This gap in word count is too big


You won’t have a problem using abbreviations when you get used to it

In fact, native English speakers actually prefer to write a few fewer words in abbreviations, such as IMO and the like

大家讲道理

Try as little as possible on the terminal, people are very lazy. In addition, foreigners have the habit of abbreviating, and foreigners can know what many abbreviations mean at a glance.
Because many commands are so commonly used, some people will be lazy and want to type faster when they are used. A typical example:

ls -a => la
ls -l =>ll
cd /home/yourname  =>cd ~

In oh my zsh, cd .. becomes..

大家讲道理

Problems of efficiency in writing code

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template