Linux中常用的命令都是那些单词的缩写?

2025-02-22 23:40:52
推荐回答(1个)
回答1:

文件管理:
ls -- LiSt
cd -- Change Directory
pwd -- Print Working Directory
cp -- CoPy
mv -- MoVe
rm -- ReMove
pushd -- PUSH to Directory
popd -- POP from Directory(这俩个是很有用的命令,在编译LFS的时候学到的)
mkdir -- MaKe DIRectory
rmdir -- ReMove DIRectory
cat -- CATenate(有说是conCATenate,这两个词是一个意思吧)
sed -- Stream EDitor
diff -- DIFFerence
wc -- Word Count(不是那个wc啊)
chmod -- CHange MODe
chown -- CHange OWNer
chgrp -- CHange GRouP
awk -- Aho Weinberger and Kernighan(自恋,服气)( @xx xxxx 谢谢指错)
gawk -- Gnu Aho Weinberger and Kernighan
grep -- General Regular Expression Print( @闫子昂 谢谢)
ln -- LiNk
tar -- TARball

硬件管理:
df -- Disk Free
du -- Disk Usage
dd -- Data Description(一说是Convert and Copy, 但是cc被用掉了,就用dd了)
parted -- PARTition EDitor
lspci -- LiSt Peripheral Component Interconnect
lscpu -- LiSt Central Process Unit
lsusb -- LiSt Universal Serial Bus

系统管理:
depmod -- DEPend MODule
lsmod -- LiSt MODule
modprobe -- MODule PROBE
modinfo -- MODule INFOrmation
insmod -- INSert MODule
rmmod -- ReMove MODule
ps -- Processes Status
su -- Substitute User
bash -- Bourne Again SHell
init -- INITialization(差点把这个忘了)
ssh -- Secure SHell
wine -- Wine Is Not an Emulator(哈哈,又来了)
exec -- EXECute
fstab -- FileSystem TABle
passwd -- PASSWorD
tty -- TeleTYpe
sudo -- SuperUser DO
grub -- GRand Unified Bootloader(Linux全家桶启动就靠它了)
tzselect -- Time Zone SELECT
sync -- SYNChronize(确认关机前多执行几次。有次我在tty1用vim改nginx配置文件,朋友在tty2给我直接关机了(用halt关的,这个猪脑子,我说过好多次用shutdown了),导致开机的时候nginx启动不起来,关机前配置文件我改了很多,但是vim没有备份那么多,还要重改www)
装了systemd -- SYSTEM Daemon 的话,会有systemctl bootctl journalctl loginctl localectl timedatectl 等等,都是blablabla ConTroL

上面给出了大部分命令的来源,欢饮各路好汉补充,在此建议Linux小白通过《Linux就该这么学》这本书来学习各种命令的用法和使用