共計 2213 個字符,預計需要花費 6 分鐘才能閱讀完成。
本篇內容介紹了“linux rc 指的是什么意思”的有關知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓丸趣 TV 小編帶領大家學習一下如何處理這些情況吧!希望大家仔細閱讀,能夠學有所成!
linux rc 是 runcomm 的縮寫,即名詞“run command”(運行命令)的簡寫;rc 是任何腳本類文件的后綴,這些腳本通常在程序的啟動階段被調用,通常是 Linux 系統啟動時,比如“/etc/rc”是 Linux 啟動的主腳本,而“.bashrc”是當 Linux 的 bash shell 啟動后所運行的腳本。
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 rc 指的是什么意思”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識可以關注丸趣 TV 網站,丸趣 TV 小編將為大家輸出更多高質量的實用文章!