Re: 为了方便记忆,请问etc是什么的缩写, rc是什么的缩写?
Shark Wang <sharkwang@gmail.com> writes:
> 如题,请大虾们赐教!
Good question, and google does know a lot. :P
RC = runcomm
============
Perhaps the most common abbreviation in Linux is "rc," short for
"runcomm" -- short in term for "run command." Today, "rc" is a suffix
added to any script-like file that is called during the startup stage of
a program, or of Linux in general. Thus /etc/rc is the master script for
Linux startup, and .bashrc is the script that runs when the bash shell
starts. The "." prefix on .bashrc is a naming standard designed only to
hide user-specific administrative files from user files; the "ls"
command doesn't list such files by default, and "rm" doesn't delete them
by default. Many programs demand that startup files or profile files
begin with a period or have an "rc" suffix, but there's nothing magical
about either from the file system's perspective.
不过,下面这个解释的更好:
"rc" derives from "runcom", from the MIT CTSS system, ca. 1965.
'There was a facility that would execute a bunch of commands stored
in a file; it was called "runcom" for "run commands", and the file
began to be called "a runcom."
"rc" in Unix is a fossil from that usage.' Brian Kernighan & Dennis
Ritchie, as told to Vicki Brown
"rc" is also the name of the shell from the new Plan 9 operating system.
ETC = etcetera
==============
The "etc" in "/etc/bin" really does stand for "etcetera." In early Unix
systems, the most important directory was the "bin" directory (short for
"binaries" -- compiled programs), and "etc" was for trivial stuff like
startup, shutdown and admin. The list of things you need for running
Linux is: a program binary, etcetera, etcetera -- in other words, a sole
vital item, plus some less important bits and pieces. Today, "etc" holds
system-wide configuration files that you'd almost never do without --
hardly unimportant.
更多相关信息:
http://searchenterpriselinux.techtarget.com/tip/0,289483,sid39_gci1098161,00.html
--
William
Reply to: