Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

Linux 指令與目錄名稱的英文縮寫由來大全

很多指令名字看起來莫名其妙,其實都是英文單字的縮寫。知道來源之後,參數就幾乎不用背了。

常用指令

  • ls:list(列出目錄內容)
  • cd:change directory(改變目錄)
  • pwd:print working directory(顯示當前路徑的絕對位置)
  • su:switch user(切換使用者)
  • ps:process status(進程狀態,近似 Windows 工作管理員),常用 -auxf
  • df:disk free(磁碟剩餘空間與 inode 資訊)
  • du:disk usage
  • rpm:RedHat Package Management
  • rmdir / rm:remove directory / remove
  • mkdir:make directory
  • cat:concatenate(串接,cat file1 file2 >> file3)
  • ln -s:link soft(建立捷徑)
  • man:manual pages
  • mkfs:make file system;fsck:file system check
  • uname:unix name
  • lsmod / insmod / rmmod:list / install / remove module
  • mv / cp:move / copy
  • fg / bg:foreground / background
  • chown / chgrp / chmod:change owner / group / mode
  • umount:unmount
  • tar:tape archive;ldd:list dynamic dependencies
  • dd:本應依「convert and copy」命名為 cc,但 cc 已被 C Compiler 佔用,故取 dd

目錄與副檔名

  • /bin BINaries、/sbin Superuser BINaries、/dev DEVices
  • /etc ETCetera、/lib LIBrary、/proc PROCesses
  • /tmp TeMPorary、/usr Unix Shared Resources、/var VARiable、/boot 開機檔
  • 檔尾的 rc(.bashrc、.xinitrc):Resource configuration
  • Knnxxx / Snnxxx:K = Kill、S = Service、nn = 執行順序、xxx = 服務標識
  • .a Archive(靜態庫)、.so Shared object(動態庫)、.o Object file
  • dpkg Debian package manager、apt Advanced Packaging Tool

其他常見縮寫

  • awk:Aho、Weinberger、Kernighan 三位作者姓氏首字母
  • bash:Bourne Again SHell;ksh:Korn SHell;tcsh:TENEX C shell
  • sed:Stream EDitor;vi:VIsual;vim:Vi IMproved
  • emacs:Editor MACroS;nano:Nano's ANOther editor
  • cron:Chronos(希臘文「時間」);daemon:Disk And Execution MONitor
  • GRUB:GRand Unified Bootloader;LILO:LInux LOader
  • FIFO:First In, First Out;IFS:Internal Field Separators
  • ssh:Secure SHell;ssl:Secure Sockets Layer;gpg:GNU Privacy Guard
  • grep 系列:egrep Extended、fgrep Fixed
  • mozilla:MOsaic GodZILLa;wine:WINE Is Not an Emulator
  • lisp:LISt Processing;yacc:yet another compiler compiler
  • ping 是擬聲詞,同時也被回溯解釋為 Packet InterNet Grouper
  • PHP:Personal Home Page Tools → PHP Hypertext Preprocessor
  • Perl:Practical Extraction and Report Language
  • Python 得名於電視劇 Monty Python's Flying Circus
  • Tcl:Tool Command Language;Tk:ToolKit
  • YaST:Yet Another Setup Tool;apache:a patchy server

把這些對照看過一遍,之後遇到陌生指令,往往猜也能猜個七八成。

Copyright © Linux教程網 All Rights Reserved