第55页谢先斌的博客
-
ss
在无数次使用过
netstat命令后,终于有一天发现了 ss 命令。好用、强大呀。 -
setfacl / getfacl
setfacl - set file access control lists / getfacl - get file access control lists
-
rsync 远程数据同步
rsync命令是一个远程数据同步工具,可快速同步多台主机间的文件。rsync只传送两个文件的不同部分,因此速度相当快。 -
read
Linux的
read是一个强大的内置工具,用于从命令行或文件读取数据,并支持对字符串进行字段分隔 -
rcmd
使用SSH命令时,经常会遇到SSH命令需要封装很多参数(如ssh key),导致每次执行的命令比较复杂,可以使用如下方法对SSH进行封装,使你的远程执行操作事半功倍。
-
pwdx
pwdx作用是查看Linux服务的工作目录。 -
pidof
pidof– find the process ID of a running program. -
node_exporter 安装介绍
node_exporter是一个 Prometheus 数据采集器,用于收集节点的监控指标数据,默认监听端口为 9010。2014-11-11 monitor linux,prometheus,exporter,node_exporter -
mpstat
mpstat是Multiprocessor Statistics -
lsof/fuser: 检查文件是否被占用
在 Linux 系统中,检查文件是否被占用(被哪个进程打开)主要有两个常用的命令:
lsof和fuser。 -
iostat
iostatReport Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions. -
ifstat
ifstat(network interfaces status) 一个统计网络接口活动状态的工具,下面介绍如何在Linux中安装和使用ifstat命令。
-
id Linux用户和组信息查询工具
iduse to print real and effective user and group IDs -
gzip / gunzip 压缩解压工具
gzip/gunzipcompress or expand files -
grep
grep, egrep, fgrep(Global Regular Expression Print) - print lines matching a pattern
-
find
Linux find 命令可以用来查找文件和目录,并对它们进行后续操作。它支持按文件、文件夹、名称、创建日期、修改日期、所有者和权限进行等镜像搜索。通过使用
-exec参数可以对找到的文件或文件夹执行其他 UNIX 命令。 -
dstat
Dstatis a versatile replacement forvmstat,iostatandifstat. -
denyhost
-
bg
bg命令用于将作业放到后台运行,使前台可以执行其他任务,fg命令将后台任务切换到前台
-
awk
awk是一个强大的文本分析工具,awk工作原理:把文件逐行的读入,以空格为默认分隔符将每行切片,切开的部分再进行各种分析处理。