摘要:
1、linux系统中字符串比较语句用来判断字符串是否相等、或者字符串的代表的变量是否被赋值过 = 表示字符串是否相同 [root@linuxprobe test]# a=xxx [root@linuxprobe test]# [ $a = "xxx" ] [root@linuxprobe test] 阅读全文
posted @ 2020-10-16 22:12
小鲨鱼2018
阅读(1985)
评论(0)
推荐(0)
摘要:
1、-eq 表示等于 [root@linuxprobe test]# [ 3 -eq 4 ] [root@linuxprobe test]# echo $? 1 [root@linuxprobe test]# [ 3 -eq 3 ] [root@linuxprobe test]# echo $? 0 阅读全文
posted @ 2020-10-16 21:37
小鲨鱼2018
阅读(528)
评论(0)
推荐(0)
摘要:
1、查看系统、java安装情况 [root@linuxprobe ~]# cat /etc/system-release Red Hat Enterprise Linux release 8.0 (Ootpa) [root@linuxprobe ~]# java bash: java: comman 阅读全文
posted @ 2020-10-16 18:55
小鲨鱼2018
阅读(1608)
评论(0)
推荐(0)
摘要:
1、查看系统版本及当前java环境 [root@linuxprobe home]# cat /etc/system-release ## 查看系统版本 Red Hat Enterprise Linux release 8.0 (Ootpa) [root@linuxprobe home]# java 阅读全文
posted @ 2020-10-16 17:47
小鲨鱼2018
阅读(1619)
评论(0)
推荐(0)
摘要:
1、系统版本、java环境查看 [root@linuxprobe home]# cat /etc/system-release ## 查看系统版本 Red Hat Enterprise Linux release 8.0 (Ootpa) [root@linuxprobe home]# java ## 阅读全文
posted @ 2020-10-16 00:14
小鲨鱼2018
阅读(896)
评论(0)
推荐(0)