上一页 1 ··· 389 390 391 392 393 394 395 396 397 ··· 403 下一页
摘要: 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)
摘要: 1、测试数据 [root@linuxprobe test]# ls outcome.map outcome.ped [root@linuxprobe test]# cat outcome.ped DOR 1 0 0 0 -9 C C C C A A G G A G G G G G G C DOR 2 阅读全文
posted @ 2020-10-15 19:24 小鲨鱼2018 阅读(3173) 评论(0) 推荐(0)
摘要: 1、linux系统中case主要用于选择执行、在需要进行多重分支的情况下使用,case在多个范围内匹配数据,若匹配成则执行相关的命令并结束整个条件测试。 简单示例: [root@linuxprobe test]# ls test.sh [root@linuxprobe test]# cat test 阅读全文
posted @ 2020-10-14 21:00 小鲨鱼2018 阅读(1993) 评论(0) 推荐(0)
摘要: 1、 直接创建用户 [root@linuxprobe home]# pwd/home [root@linuxprobe home]# ls a.txt linuxprobe software test.sh [root@linuxprobe home]# seq -f liujiaxin%02g 1 阅读全文
posted @ 2020-10-14 14:53 小鲨鱼2018 阅读(873) 评论(0) 推荐(0)
摘要: 1、&& 表示与,上一句执行成功则执行下一句;|| 表示或,上一句执行失败则执行下一句 [root@linuxprobe test]# touch a.txt [root@linuxprobe test]# ls a.txt [root@linuxprobe test]# [ -e a.txt ] 阅读全文
posted @ 2020-10-14 12:13 小鲨鱼2018 阅读(191) 评论(0) 推荐(0)
摘要: 1、Linux系统中文件测试语句用于判断文件是否存在、是文件或者目录、或者权限判断 linux系统中 echo $? 用于判断上一句是否成功执行,成功返回0,不成功返回其他数字, 简单示例: [root@linuxprobe test]# ls [root@linuxprobe test]# mkd 阅读全文
posted @ 2020-10-13 22:57 小鲨鱼2018 阅读(420) 评论(0) 推荐(0)
上一页 1 ··· 389 390 391 392 393 394 395 396 397 ··· 403 下一页