Linux命令簡寫和全稱

su:Swith user  切換用戶,切換到root用戶
cat: Concatenate  串聯
uname: Unix name  系統名稱
df: Disk free  空餘硬盤
du: Disk usage 硬盤使用率
chown: Change owner 改變所有者
chgrp: Change group 改變用戶組
ps:Process Status  進程狀態
tar:Tape archive 解壓文件 (最初設計目的是將文件備份到磁帶上)
chmod: Change mode 改變模式
umount: Unmount 卸載
ldd:List dynamic dependencies 列出動態相依
insmod:Install module 安裝模塊
rmmod:Remove module 刪除模塊
lsmod:List module 列表模塊
alias :Create your own name for a command
bash :GNU Bourne-Again Shell  linux內核 
grep:global regular expression print
httpd :Start Apache
ipcalc :Calculate IP information for a host
ping :Send ICMP ECHO_Request to network hosts
reboot: Restart your computer
sudo:Superuser do
 
/bin = BINaries 
/dev = DEVices 
/etc = 存放配置文件的地方。配置文件的目錄
       Editable Text Configuration 初期etcetra directory(ETCetera),後來"Editable Text Configuration" 或者 "Extended Tool Chest"。
/opt = Optional application software packages
pwd  =  print working Directory (打印工作目錄)。  
/lib = LIBrary 
/proc = PROCesses 
/sbin = Superuser BINaries 
/tmp = TeMPorary 
/usr = Unix Shared Resources 
/var = VARiable ? 是儲存各種變化的文件,比如log等等
FIFO = First In, First Out 
GRUB = GRand Unified Bootloader 
IFS = Internal Field Seperators 
LILO = LInux LOader 
MySQL = My最初作者的名字SQL = Structured Query Language 
PHP = Personal Home Page Tools = PHP Hypertext Preprocessor 
PS = Prompt String 
Perl = "Pratical Extraction and Report Language" = "Pathologically Eclectic Rubbish Lister" 
Python Monty Python's Flying Circus 
Tcl = Tool Command Language 
Tk = ToolKit 
VT = Video Terminal 
YaST = Yet Another Setup Tool 
apache = "a patchy" server 
apt = Advanced Packaging Tool 
ar = archiver 
as = assembler 
bash = Bourne Again SHell 
bc = Basic (Better) Calculator 
bg = BackGround 
cal = CALendar 
cat = CATenate 
cd = Change Directory 
chgrp = CHange GRouP 
chmod = CHange MODe 
chown = CHange OWNer 
chsh = CHange SHell 
cmp = compare 
cobra = Common Object Request Broker Architecture 
comm = common 
cp = CoPy 
cpio = CoPy In and Out 
cpp = C Pre Processor 
cups = Common Unix Printing System 
cvs = Current Version System 
daemon = Disk And Execution MONitor 
dc = Desk Calculator 
dd = Disk Dump 
df = Disk Free 
diff = DIFFerence 
dmesg = diagnostic message 
du = Disk Usage 
ed = editor 
egrep = Extended GREP 
elf = Extensible Linking Format 
elm = ELectronic Mail 
emacs = Editor MACroS 
eval = EVALuate 
ex = EXtended 
exec = EXECute 
fd = file descriptors 
fg = ForeGround 
fgrep = Fixed GREP 
fmt = format 
fsck = File System ChecK 
fstab = FileSystem TABle 
fvwm = F*** Virtual Window Manager 
gawk = GNU AWK 
gpg = GNU Privacy Guard 
groff = GNU troff 
hal = Hardware Abstraction Layer 
joe = Joe's Own Editor 
ksh = Korn SHell 
lame = Lame Ain't an MP3 Encoder 
lex = LEXical analyser 
lisp = LISt Processing = Lots of Irritating Superfluous Parentheses 
ln = LiNk 
lpr = Line PRint 
ls = list 
lsof = LiSt Open Files 
m4 = Macro processor Version 4 
man = MANual pages 
mawk = Mike Brennan's AWK 
mc = Midnight Commander 
mkfs = MaKe FileSystem 
mknod = MaKe NODe 
motd = Message of The Day 
mozilla = MOsaic GodZILLa 
mtab = Mount TABle 
mv = MoVe 
nano = Nano's ANOther editor 
nawk = New AWK 
nl = Number of Lines 
nm = names 
nohup = No HangUP 
nroff = New ROFF 
od = Octal Dump 
passwd = PASSWorD 
pg = pager 
pico = PIne's message COmposition editor 
pine = "Program for Internet News & Email" = "Pine is not Elm" 
ping =  Packet InterNet Grouper 
pirntcap = PRINTer CAPability 
popd = POP Directory 
pr = pre 
printf = PRINT Formatted 
ps = Processes Status 
pty = pseudo tty 
pushd = PUSH Directory 
pwd = Print Working Directory 
rc = runcom = run command, shell 
rev = REVerse 
rm = ReMove 
rn = Read News 
roff = RunOFF 
rpm = RPM Package Manager = RedHat Package Manager 
rsh, rlogin, = Remote 
rxvt = ouR XVT 
sed = Stream EDitor 
seq = SEQuence 
shar = SHell ARchive 
slrn = S-Lang rn 
ssh = Secure SHell 
ssl = Secure Sockets Layer 
stty = Set TTY 
su = Substitute User 
svn = SubVersioN 
tar = Tape ARchive 
tcsh = TENEX C shell 
telnet = TEminaL over Network 
termcap = terminal capability 
terminfo = terminal information 
tr = traslate 
troff = Typesetter new ROFF 
tsort = Topological SORT 
tty = TeleTypewriter 
twm = Tom's Window Manager 
tz = TimeZone 
udev = Userspace DEV 
ulimit = User's LIMIT 
umask = User's MASK 
uniq = UNIQue 
vi = VIsual = Very Inconvenient 
vim = Vi IMproved 
wall = write all 
wc = Word Count 
wine = WINE Is Not an Emulator 
xargs = eXtended ARGuments 
xdm = X Display Manager 
xlfd = X Logical Font Description 
xmms = X Multimedia System 
xrdb = X Resources DataBase 
xwd = X Window Dump 
yacc = yet another compiler compiler






/var 包含系統一般運行時要改變的數據。通常這些數據所在的目錄的大小是要經常變化或擴充的。原來 /var 目錄中有些內容是在 /usr 中的,但爲了保持 /usr 目錄的相對穩定,就把那些需要經常改變的目錄放到 /var 中了。每個系統是特定的,即不通過網絡與其他計算機共享。下面列出一些重要的目錄 ( 一些不太重要的目錄省略了 ) 。 
1. /var/catman : 包括了格式化過的幫助 (man) 頁。幫助頁的源文件一般存在 /usr/man/catman 中;有些 man 頁可能有預格式化的版本,存在 /usr/man/cat 中。而其他的 man 頁在第一次看時都需要格式化,格式化完的版本存在 /var/man 中,這樣其他人再看相同的頁時就無須等待格式化了。 (/var/catman 經常被清除,就像清除臨時目錄一樣。 ) 
2. /var/lib : 存放系統正常運行時要改變的文件。 
3. /var/local : 存放 /usr/local 中安裝的程序的可變數據 ( 即系統管理員安裝的程序 ) 。注意,如果必要, 
即使本地安裝的程序也會使用其他 /var 目錄,例如 /var/lock 。 
4. /var/lock : 鎖定文件。許多程序遵循在 /var/lock 中產生一個鎖定文件的約定,以用來支持他們正在使用某個特定的設備或文件。其他程序注意到這個鎖定文件時,就不會再使用這個設備或文件。 
5. /var/log : 各種程序的日誌 (log) 文件,尤其是 login (/var/log/wtmplog 紀錄所有到系統的登錄和註銷 ) 和 syslog (/var/log/messages 紀錄存儲所有核心和系統程序信息 ) 。 /var/log 裏的文件經常不確定地增長,應該定期清除。 
6. /var/run : 保存在下一次系統引導前有效的關於系統的信息文件。例如, /var/run/utmp 包含當前登錄的用戶的信息。 
7. /var/spool : 放置 “ 假脫機 (spool)” 程序的目錄,如 mail 、 news 、打印隊列和其他隊列工作的目錄。每個不同的 spool 在 /var/spool 下有自己的子目錄,例如,用戶的郵箱就存放在 /var/spool/mail 中。 
8. /var/tmp : 比 /tmp 允許更大的或需要存在較長時間的臨時文件。注意系統管理員可能不允許 /var/tmp 有很舊的文件。 
  
/etc 文件系統 
/etc 目錄包含各種系統配置文件,下面說明其中的一些。其他的你應該知道它們屬於哪個程序,並閱讀該程序的 man 頁。許多網絡配置文件也在 /etc 中。 
1. /etc/rc 或 /etc/rc.d 或 /etc/rc?.d : 啓動、或改變運行級時運行的腳本或腳本的目錄。 
2. /etc/passwd : 用戶數據庫,其中的域給出了用戶名、真實姓名、用戶起始目錄、加密口令和用戶的其他信息。 
3. /etc/fdprm : 軟盤參數表,用以說明不同的軟盤格式。可用 setfdprm 進行設置。更多的信息見 setfdprm 的幫助頁。 
4. /etc/fstab : 指定啓動時需要自動安裝的文件系統列表。也包括用 swapon -a 啓用的 swap 區的信息。 
5. /etc/group : 類似 /etc/passwd ,但說明的不是用戶信息而是組的信息。包括組的各種數據。 
6. /etc/inittab : init 的配置文件。 
7. /etc/issue : 包括用戶在登錄提示符前的輸出信息。通常包括系統的一段短說明或歡迎信息。具體內容由系統管理員確定。 
8. /etc/magic : “file” 的配置文件。包含不同文件格式的說明, “file” 基於它猜測文件類型。 
9. /etc/motd : motd 是 message of the day 的縮寫,用戶成功登錄後自動輸出。內容由系統管理員確定。常用於通告信息,如計劃關機時間的警告等。 
10. /etc/mtab : 當前安裝的文件系統列表。由腳本 (scritp) 初始化,並由 mount 命令自動更新。當需要一個當前安裝的文件系統的列表時使用 ( 例如 df 命令 ) 。 
11. /etc/shadow : 在安裝了影子 (shadow) 口令軟件的系統上的影子口令文件。影子口令文件將 /etc/passwd 文件中的加密口令移動到 /etc/shadow 中,而後者只對超級用戶 (root) 可讀。這使破譯口令更困難,以此增加系統的安全性。 
12. /etc/login.defs : login 命令的配置文件。 
13. /etc/printcap : 類似 /etc/termcap ,但針對打印機。語法不同。 
14. /etc/profile 、 /etc/csh.login 、 /etc/csh.cshrc : 登錄或啓動時 bourne 或 cshells 執行的文件。這允許系統管理員爲所有用戶建立全局缺省環境。 
15. /etc/securetty : 確認安全終端,即哪個終端允許超級用戶 (root) 登錄。一般只列出虛擬控制檯,這樣就不可能 ( 至少很困難 ) 通過調制解調器 (modem) 或網絡闖入系統並得到超級用戶特權。 
16. /etc/shells : 列出可以使用的 shell 。 chsh 命令允許用戶在本文件指定範圍內改變登錄的 shell 。提供一 
臺機器 ftp 服務的服務進程 ftpd 檢查用戶 shell 是否列在 /etc/shells 文件中,如果不是,將不允許該用戶登錄。 
17. /etc/termcap : 終端性能數據庫。說明不同的終端用什麼 “ 轉義序列 ” 控制。寫程序時不直接輸出轉義 
序列 ( 這樣只能工作於特定品牌的終端 ) ,而是從 /etc/termcap 中查找要做的工作的正確序列。這樣,多數的程序可以在多數終端上運行。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章