logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

linux边学边记---Shell脚本的追踪与debug

[root@linux ~]#sh [-nvx] scripts.sh参数:-n:不执行脚本,仅仅查询语法错误-v:执行脚本前,先将脚本scripts的内容输出到屏幕上-x:将使用到的脚本内容显示到屏幕上。

#linux
Linux系统、版本、CPU、内存查看、硬盘空间

查看系统版本:lsb_release -a[root@localhost /]# lsb_release -aLSB Version:    :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchDistributor ID

linux边学边记---判断语句if、case、while、for

利用 []、&&、|| 进行判断1、if判断语句:if [$a == “”]; then    “contents”elif [$b == “”]; then    “contents”else    “contents”filinux if命令1 字符串判断str1 = str2      当两个串有相同内容、长度时为真str1 != str2

#linux
linux重启环境变量

命令: . /etc/profile 解释:点 空格 路径

到底了