linux rc是runcomm的縮寫,即名詞「run command」(執行指令)的簡寫;rc是任何腳本類別檔案的後綴,這些腳本通常在程式的啟動階段被調用,通常是Linux系統啟動時,例如「/etc/rc」是Linux啟動的主腳本,而「.bashrc」是當Linux的bash shell啟動後所執行的腳本。
本教學操作環境:linux5.9.8系統、Dell G3電腦。
linux rc是什麼的縮寫?
Linux中rc的意思
在Linux中,最常用的縮寫也許是“rc”,它是“runcomm”的縮寫――即名詞“run command” (運行命令)的簡寫。 rc」是任何腳本類別檔案的後綴,這些腳本通常在程式的啟動階段被調用,通常是Linux系統啟動時。如/etc/rc(連接到/etc/rc.d/rc)是Linux啟動的主腳本,而.bashrc是當Linux的bash shell啟動後所運行的腳本。
.bashrc的前綴“.”是一個命名標準,它被設計用來在用戶文件中隱藏那些使用者指定的特殊文件;“ls”命令預設不會列出此類文件,“rm”預設不會刪除它們。許多程式在啟動時,都需要“rc”後綴的初始文件或設定文件,這對於Unix的檔案系統視圖來說,沒有什麼神秘的。
[root@minimal test-rm]# pwd /home/huage/test-rm [root@minimal test-rm]# ls -Al total 0 -rw-r--r--. 1 root root 0 Apr 2 11:50 001 -rw-r--r--. 1 root root 0 Apr 2 11:50 002 -rw-r--r--. 1 root root 0 Apr 2 11:43 .003 -rw-r--r--. 1 root root 0 Apr 2 11:43 .004 [root@minimal test-rm]# rm -rf * [root@minimal test-rm]# ls -Al total 0 -rw-r--r--. 1 root root 0 Apr 2 11:43 .003 -rw-r--r--. 1 root root 0 Apr 2 11:43 .004
#"rc" (像是".cshrc" 或"/etc/rc" 中的rc 這兩個字母) = "RunCom"
"rc" 是取自"runcom", 來自麻省理工學院在1965 年發展的CTSS系統。相關文獻曾記載這一段話:"具有從檔案中取出一系列命令來執行的功能;這稱為"run commands" 又稱為"runcom",而這種檔案又稱為一個runcom (a runcom)。 "
awk = "Aho Weinberger and Kernighan" This language was named by its authors, Al Aho, Peter Weinberger and Brian Kernighan. grep = "Global Regular Expression Print" grep comes from the ed command to print all lines matching a certain pattern g/re/p where "re" is a "regular expression". rc (as in ".cshrc" or "/etc/rc") = "RunCom" "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.' Perl = "Practical Extraction and Report Language" Perl = "Pathologically Eclectic Rubbish Lister" The Perl language is Larry Wall's highly popular freely-available completely portable text, process, and file manipulation tool that bridges the gap between shell and C programming (or between doing it on the command line and pulling your hair out). For further information, see the Usenet newsgroup comp.lang.perl.misc.
相關推薦:《Linux影片教學》
以上是linux rc是什麼的縮寫的詳細內容。更多資訊請關注PHP中文網其他相關文章!