linux命令行常见约定
2015-12-21 17:10
519 查看
命令行风格
原始unix风格
命令行选项以连字符'-'开头的单个字符。
后面不带参数的模式标志可以组合在一起。
-a -b or -ab
偏爱小写字母,大写字母另有含义。
以简练为美.
GNU风格
两个连字符开头后接关键字。
如果有选项,空白和'='都可以作为分割。
--sort=size or --sort size
容易记忆,但是麻烦。
X toolkit风格
略过。
大多数程序是unix风格和gnu风格混用。
ls -l --sort size
1 a-z 命令行默认约定
随着时间的推移,一些字母的含义已经成为一种默认的
约定,遵循最小立异性原则,应该掌握这种常识。
-a
all(ls -a)
append
-b
set buffer/block size (du)
-d
debug
directory(ls -d)
delete
diffrent
-D
define(gcc -Dmac)
-e
execute(sed -e 'command' -e 'command1')
exclude
expression
-f
file(grep -f file)
force(rm -rf)
-h
header(ps)
-i
initialize
ineractive(rm -i)
-I
include(gcc -Ipath)
-k
keep(passwd, bzip, fetchmail)
kill
-l
list(ls -l)
load(gcc -llib)
-m
message(git commit -m)
-n
number(head -n 1)
-o
output(wget)
-p
port(ssh)
protocol(fetchmail)
-q
quite(make)
-r(R)
recurse(cp)
reverse(sort)
-s
slient(fetmail)
subject(mail, mutt)
size
-t
tag(vi)
-u
user(ps, fetchmail)
-v
verbose(tar, cp, cat)
version(patch)
-V
version(gcc, hostname)
-w
width(od)
warning(flex)
-x
启用调试 -d
-y
yes(yum update -y)
-z
启用压缩(bzip, tar)
原始unix风格
命令行选项以连字符'-'开头的单个字符。
后面不带参数的模式标志可以组合在一起。
-a -b or -ab
偏爱小写字母,大写字母另有含义。
以简练为美.
GNU风格
两个连字符开头后接关键字。
如果有选项,空白和'='都可以作为分割。
--sort=size or --sort size
容易记忆,但是麻烦。
X toolkit风格
略过。
大多数程序是unix风格和gnu风格混用。
ls -l --sort size
1 a-z 命令行默认约定
随着时间的推移,一些字母的含义已经成为一种默认的
约定,遵循最小立异性原则,应该掌握这种常识。
-a
all(ls -a)
append
-b
set buffer/block size (du)
-d
debug
directory(ls -d)
delete
diffrent
-D
define(gcc -Dmac)
-e
execute(sed -e 'command' -e 'command1')
exclude
expression
-f
file(grep -f file)
force(rm -rf)
-h
header(ps)
-i
initialize
ineractive(rm -i)
-I
include(gcc -Ipath)
-k
keep(passwd, bzip, fetchmail)
kill
-l
list(ls -l)
load(gcc -llib)
-m
message(git commit -m)
-n
number(head -n 1)
-o
output(wget)
-p
port(ssh)
protocol(fetchmail)
-q
quite(make)
-r(R)
recurse(cp)
reverse(sort)
-s
slient(fetmail)
subject(mail, mutt)
size
-t
tag(vi)
-u
user(ps, fetchmail)
-v
verbose(tar, cp, cat)
version(patch)
-V
version(gcc, hostname)
-w
width(od)
warning(flex)
-x
启用调试 -d
-y
yes(yum update -y)
-z
启用压缩(bzip, tar)
相关文章推荐
- java调用linux脚本
- linux 命令总结
- Linux下安装Mysql5.6.23
- Linux常用命令大全
- Linux系统安装GCC软件的依赖关系
- Linux安装gcc软件的依赖关系
- 每天一个Linux之pwd命令
- Linux系统文件系统的结构层次详解
- linux时区的设置
- linux系统编译C++程序时头文件和库文件搜索路径
- linux-centos挂载新硬盘操作
- linux查看日志常用的一个命令
- Linux和windows下内核socket优化项 (转)
- Linux下C语言SOCKET中accpet返回值。
- Install wkhtmltopdf On CentOS 6.5
- linux中查看服务器名称的命令 -- hostname
- linux系统的时间调整
- Linux实践篇--linux软件的安装,更新与卸载
- Linux实践篇--linux软件的安装,更新与卸载
- 简单实现linux聊天室程序