ファイルとディレクトリの操作

命令 全拼 说明
ls list ディレクトリの内容を一覧表示
cd change directory 切换目录
pwd print working directory 現在の作業ディレクトリを表示
mkdir make directory 创建目录
rmdir remove directory 删除空目录
rm remove ファイルまたはディレクトリを削除
cp copy ファイルまたはディレクトリをコピー
mv move 移动或重命名文件/目录
ln link 创建链接
find find ファイルとディレクトリを検索
locate locate ファイルをすばやく特定
which which コマンドの場所を検索
whereis where is バイナリファイル、ソースコード、マニュアルページを検索する
du disk usage ディレクトリの使用容量を表示
df disk free ディスク領域の使用状況を表示

ファイル内容の操作

命令 全拼 说明
cat concatenate ファイルの内容を表示
more more ファイルの内容をページ単位で表示
less less ファイルの内容をページ単位で表示(より高機能)
head head ファイルの先頭部分を表示
tail tail ファイルの末尾部分を表示
grep global regular expression print テキスト検索ツール
sed stream editor 流编辑器
awk Aho, Weinberger, Kernighan テキスト処理ツール
sort sort 排序文本行
uniq unique 去除重复行
wc word count 単語数、行数、文字数を集計
cut cut 提取文本列
tr translate 字符转换
diff difference ファイルの差分を比較

ファイルの権限と属性

命令 全拼 说明
chmod change mode ファイルの権限を変更
chown change owner ファイルの所有者を変更
chgrp change group ファイルの所属グループを変更
umask user file-creation mode mask デフォルトの権限マスクを設定
stat status ファイルの詳細情報を表示
file file ファイルタイプを判別

进程管理

命令 全拼 说明
ps process status プロセスの状態を表示
top table of processes プロセス情報をリアルタイム表示
htop htop 対話型プロセスビューアー
kill kill 终止进程
killall kill all 名前を指定してプロセスを終了
jobs jobs ジョブの状態を表示
bg background ジョブをバックグラウンドに配置
fg foreground ジョブをフォアグラウンドに移動
nohup no hang up ハングアップせずにコマンドを実行

系统信息

命令 全拼 说明
uname unix name システム情報を表示
whoami who am i 現在のユーザー名を表示
id identification ユーザーIDとグループIDを表示
who who 現在のログインユーザーを表示
w who ログインユーザーとそのアクティビティを表示
uptime up time システムの稼働時間を表示
date date 日付を表示または設定
cal calendar 显示日历
free free メモリ使用状況を表示
lscpu list cpu CPU情報を表示
lsblk list block devices 列出块设备
lsusb list usb USBデバイスを一覧表示
lspci list pci PCIデバイスを一覧表示

网络相关

命令 全拼 说明
ping packet internet groper ネットワークの接続をテスト
wget web get 下载文件
curl client URL データ転送ツール
ssh secure shell 安全なリモートログイン
scp secure copy ファイルを安全にコピー
rsync remote sync 远程同步
netstat network statistics ネットワーク接続状態を表示
ss socket statistics ソケット統計を表示
ifconfig interface configuration ネットワークインターフェースを設定
ip internet protocol ネットワーク設定ツール

圧縮とアーカイブ

命令 全拼 说明
tar tape archive 归档文件
gzip gnu zip 压缩文件
gunzip gnu unzip 解压缩文件
zip zip zip圧縮ファイルを作成
unzip unzip zipファイルを解凍

文本编辑器

命令 全拼 说明
vi visual 文本编辑器
vim vi improved 改良版viエディター
nano nano シンプルなテキストエディター
emacs editing macros 高機能なエディター

系统服务

命令 全拼 说明
systemctl system control システムサービスの制御
service service サービス制御(旧版)
crontab cron table 定时任务表
su substitute user 切换用户
sudo substitute user do 他のユーザーとしてコマンドを実行

入出力リダイレクト

命令 全拼 说明
tee tee 出力をファイルと画面の両方に同時に書き込む
xargs extended arguments コマンドラインを構築して実行

その他のよく使うコマンド

命令 全拼 说明
man manual コマンドのマニュアルを表示
info information 情報ドキュメントを表示
help help ヘルプ情報を表示
history history コマンド履歴を表示
alias alias コマンドのエイリアスを作成
echo echo 输出文本
printf print formatted 格式化输出
sleep sleep 指定時間だけ遅延
watch watch 定期的にコマンドを実行
clear clear 清屏
exit exit 退出shell
logout logout 注销

その他のLinuxコマンドの略語

bin = Binaries (二进制文件)

/dev = Devices (设备)

/etc = Etcetera (等等)

/lib = LIBrary

/proc = Processes

/sbin = Superuser Binaries (超级用户的二进制文件)

/tmp = Temporary (临时)

/usr = Unix Shared Resources

/var = Variable (变量)

FIFO = First In, First Out

GRUB = GRand Unified Bootloader

IFS= Internal Field Seperators

LILO = LInux LOader

MySQL = My 是最初作者女儿的名字,

SQL = Structured QueryLanguage

PHP = Personal Home Page Tools = PHP HypertextPreprocessor

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

awk = “Aho Weiberger and Kernighan”三个作者的姓的第一个字母

bash = Bourne Again SHell

bc = Basic (Better) Calculator

bg = BackGround

biff = 作者HeidiStettner在U.C.Berkely养的一条狗,喜欢对邮递员汪汪叫。

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 BrokerArchitecture

comm = common

cp = Copy

cpio = CoPy In and Out

cpp = C Pre Processor

cron = Chronos 希腊文时间

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 IrritatingSuperfluous 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 = Passwd

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, rc还是plan9的shell

rev = REVerse

rm = ReMove

rn = Read News

roff = RunOFF

rpm = RPM Package Manager = RedHat PackageManager

rsh, rlogin, rvim中的

r = Remote

rxvt = ouR XVT

seamoneky = 我

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

tee = T (T形水管接口)

telnet = TEminaL over Network

termcap = terminal capability

terminfo = terminal information

tex = τέχνη的缩写,希腊文art

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

i = 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

Fish = the Friendly Interactive SHell

su = Switch User

MIME = Multipurpose Internet Mail Extensions

ECMA = European Computer ManufacturersAssociation