close

Linux 指令摘要
一般用戶指令/bin

 

一般用戶指令  指令功能說明  範例
bash  GNU Bouren-Again Shell  bash shell_script
cat 觀看一般文字檔案 cat file.txt
chgrp 更改群組 chgrp groupname file
chmod 更改文件許可權 chmod 755 file
chown 更改文件owner chown username file
cp 複製檔 cp file1 file2
date 顯示日期與時間 date
dd disk dump dd if=input of=output
df 顯示磁片使用空間 df -m
dmesg 顯示啟動資訊 dmesg | more
echo 顯示文字 echo “Hello World”
ed 最普通的Editor ed textfile
egrep 類似grep 的字串搜索工具 egrep keyword file
grep 字串搜索工具 grep keyword file
gunzip 解壓縮.gz 工具 gunzip file.gz
gzip 壓縮檔 gzip file
hostname 顯示主機名稱 hostname
kill 刪除process kill <PID>
ln link file ln -s file linkfile
ls 顯示目錄與檔 ls -l /
mail 收/發電子郵件 mail
mkdir 建立空目錄 mkdir -p /tmp/usr/who
mknod 產生硬體裝置檔 mknod /dev/dsp0c290
more file perusal filter more long_file
mount 掛接檔系統 mount -t iso9660 /dev/cdrom /cdrom
mv 移動文件 mv file1 file2
netstat 監看網路狀態 netstat -ns
ping 查詢遠端主機連線狀態 ping linux.ee.nctu.edu.tw
ps 顯示系統process status ps -aux
pwd 顯示目前工作目錄 pwd
rm 刪除檔 rm -rf
rmdir 刪除目錄 rmdir -p /tmp/user
rpm RPM pachage 管理程式 rpm -ivh xxx.i386.rpm
stty 改變或查看terminal 的顯示模式 stty -a
sh GNU Bourne Shell sh shell_script
su Switch User su root
sync 將在記憶體的資料寫回硬碟 sync;sync;sync
tar GNU tar 檔壓縮程式 tar zcvf tar.file.gz dir_source/
tcsh extended C-shell tcsh shell_script
touch 改變檔時間 touch file
umount 卸下檔系統 umount /cdrom
uname 顯示OS 版本 uname -r
vi Visual Editor vi file
zcat 觀看.gz 壓縮檔內容 zcat textfile.gz
alias 設置別名 alias dir="ls -alF"
apropos 查詢指令用法 apropos ls
as portable GNU assembler as
at 工作行程排定程式 at -f job_file 執行時間
atq 查詢at 已經排定的工作 atq
atrm 刪除at 排定的工作 atrm jobnumber
bzip2 壓縮程式,壓縮檔.bz2 bzip2 file
bzless 觀看使用bzip2 壓縮的文字檔案 bzless text.bz2
cal calendar 日曆 cal 12 1991
cc gNU C Compiler cc -o output_file source.c
chfn 改變用戶資料 chfn
chsh change Shell chsh
clear 清除螢幕畫面 clear
cmp 比較兩個文件 cmp file1 file2
compress 壓縮程式,壓縮檔.Z compress file
corntab 比at 強大的行程排定程式 crontab -e
diff 文字檔案比較程式 diff file1 file2
dir 功能和ls 一樣 dir
du 查詢目錄檔使用空間 du -sm dir
egcs 新版的g++ 與gcc egcs file.cpp or file.c
eject 退出光碟 eject
elm 電子郵件程式 elm
emacs emacs 編輯器 emacs -nw
env 顯示Shell 環境變數 env
expr 計算運算式 expr 1+4
file 顯示檔類別 file filename
find 文件搜索工具 find ./-name pattern
finger 查詢本地或遠端機器用戶資訊 finger username
 
ftp 檔傳輸程式 ftp ftp.nctu.edu.tw
ftpwho 查看目前FTP 上網人數 ftpwho
head 顯示檔頭 head -20 logfile
g++ gNU C++ Compiler g++ -o execute file.cpp
gcc gNU C Compiler gcc -o execute file.c
gzip gNU zip, 壓縮檔.gz gzip file
ispell 英文拼寫檢查程式 ispell article
joe 類似PE2 的文本編輯器 job file.txt
last 查看系統登錄記錄 lash -100
less 一頁一頁顯示文字檔案 less longfile
locale 顯示Shell 的地方化設置 locale
locate 檔搜索指令 locate keyword
lpr 將檔放進printer queue 中等候列印 lpr -Plp0 file
lpq 顯示printer queue 的內容 lpq -Plp0
lprm 刪除lpr 送出的列印工作 lprm jobnumber
make 可讓一堆程式同時編譯的工具 make
man 網上文件 man make
man2html 可將man 文件轉成html 文件 man2html /usr/man/ls.1 >ls.html
mc Midnight commander 檔管理員 mc
ncftp 支持續傳功能的ftp 程式 ncftp ftp.nctu.edu.tw
nslookup 查詢主機DNS 名稱或IP Address nslookup 140.113.1.1
passwd 更改用戶密碼 passwd username
pdftops 將PDF 文件轉成PS 文件 pdftops PDF-file PS-file
pdftotext 將PDF 文件轉成text 文件 pdftotext PDF-file text-file
pico pico textfile 功能強大的電子郵件程式
pine 功能強大的電子郵件程式 pine
arrow
arrow

    Joaquin(就愛睏) 發表在 痞客邦 留言(0) 人氣()