linux命令的组成规则及缩写

版权声明:本文属博主原创,转载请联系QQ528055624 https://blog.csdn.net/qq_41825534/article/details/82349764

1、常用缩写 习惯

cd  == change dieectory  ##更改当前工作目录

dd == disk dump  ##磁盘转存

df == disk free  ##磁盘自由

du == disk usage ##磁盘详情

pwd == print working directory ##打印当前工作目录

ps == processes status ##工程状态

ps == prompt strings ##提示字符串

su == substitute user  ##切换用户

rc == run command  ##运行命令

tcl == tool command language  ##工具命令语言

扫描二维码关注公众号,回复: 3646585 查看本文章

cups == command unix printing system  ##unix命令打印系统

apt  == advanced packaging tool  ##先进的包装工具

bg == background  ##背景、隐藏位置

fg == foreground    ##前景

ping == packet internet grouper  ##网络检测

--------------------------------------------------------------------------------------

如果首字母后为h,通常为改变的意思,需要保留

chsh == change shell

chmod == change mode  ##更改模式

chown == change owner  ##更改所有者

chgrp == change group  ##变更群组

bash  == bourne again shell  ##

zsh ==  z shell  ##

ksh  == korn shell  ##

ssh == secure shell  ##安全命令

---------------------------------------------------------------------------------------

递归缩写类

gnu == gnu is not unix  ##

php == php hypertext preprocessor  ##

RPM == RPM package manager

WINE == WINE is not an emulator  ##

PNG == PNG is not GIF  ##

nano == nano is another editor ##nano 是另一个 编辑器

---------------------------------------------------------------------------------------

如果只有一个单词,通常取每个音节的首字母

cp == copy

ln == link  ##连接

ls == list  ##列表、目录

mv == move ##移动

rm ==remove  ##移动

---------------------------------------------------------------------------------------

对于目录通常使用前几个字母作为缩写

bin == binaries

dev == devices

etc == etcetera

lib == library

var == variable

proc == processes

sbin == superuser binaries

tmp == temporary

usr == unix shared resources ##unix 共享资源

###这种缩写的其他情况

diff  ==  differences 

cal  ==  calender

cat  ==  catenate

ed  ==  editor

exec  ==  execute

tab  ==  table

regexp  ==  regular expression

dmesg  ==  diagnostic message  ##错误报告

sed  ==  sream editor  ## 流编辑器

stty  ==  set tty

fstab  ==  filesystem table  ##文件系统表

passwd  ==  password

---------------------------------------------------------------------------------------

有些缩写中第一个字母代表gnu

awk  ==  aho weiberger and kernighan

gawk  ==  gnu awk

gpg  ==  gnu privacy guard   ##隐私保护

grep  ==  gnu regular expression print

egrep  ==  extended grep

Linux命令通常由以下三部分组成:
Command     [-option]    [argument]
其中Command即是要运行命令的本身,说白了就是一个软件(程序)
Option的话是可选的,即有些命令是没有选项的,选项(也有人称之为参数,因为从编程的角度来说,它就是参数),选项是控制命令运行状态和行为的。argument是参数,是命令要操作的文件、路径、数据等,也是可选的,因为有些命令不需要操作这些内容。
打个比方:以做饭为例,做饭就是命令,而我们可以加一些选项,比如:快速的、美味的
而参数就是食材,所以我们可以说“做一顿美味的红烧肉。”

fd == foppy  ##软盘驱动器

sd == SATA hard disk  ##SATA硬盘

man == manual    ##操作说明

cat == concatenate    ##意思为连续,其命作用是查看文件内容。

bash == Bourne Again SHell

env == environment      ##查看当前shell环境下的所有环境变量及其内容

args == arguments    ##参数

猜你喜欢

转载自blog.csdn.net/qq_41825534/article/details/82349764
今日推荐