摘要:
1、测试数据 [root@linuxprobe test]# ls ## 测试数据 a.txt [root@linuxprobe test]# cat a.txt fd gfd fgd fsdafds dfs sfa [root@linuxprobe test]# cat -A a.txt fd g 阅读全文
摘要:
1、linux系统中find命令主要用于查找文件,可以设置不同的查找条件进行查找 创建测试数据: [root@linuxprobe test]# touch a.txt b.txt c.txt ## 创建三个普通文件 [root@linuxprobe test]# mkdir test1 test2 阅读全文
摘要:
1、linux系统中字符串比较语句用来判断字符串是否相等、或者字符串的代表的变量是否被赋值过 = 表示字符串是否相同 [root@linuxprobe test]# a=xxx [root@linuxprobe test]# [ $a = "xxx" ] [root@linuxprobe test] 阅读全文
摘要:
1、-eq 表示等于 [root@linuxprobe test]# [ 3 -eq 4 ] [root@linuxprobe test]# echo $? 1 [root@linuxprobe test]# [ 3 -eq 3 ] [root@linuxprobe test]# echo $? 0 阅读全文
摘要:
1、查看系统、java安装情况 [root@linuxprobe ~]# cat /etc/system-release Red Hat Enterprise Linux release 8.0 (Ootpa) [root@linuxprobe ~]# java bash: java: comman 阅读全文
摘要:
1、查看系统版本及当前java环境 [root@linuxprobe home]# cat /etc/system-release ## 查看系统版本 Red Hat Enterprise Linux release 8.0 (Ootpa) [root@linuxprobe home]# java 阅读全文
摘要:
1、系统版本、java环境查看 [root@linuxprobe home]# cat /etc/system-release ## 查看系统版本 Red Hat Enterprise Linux release 8.0 (Ootpa) [root@linuxprobe home]# java ## 阅读全文
摘要:
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 阅读全文
摘要:
1、linux系统中case主要用于选择执行、在需要进行多重分支的情况下使用,case在多个范围内匹配数据,若匹配成则执行相关的命令并结束整个条件测试。 简单示例: [root@linuxprobe test]# ls test.sh [root@linuxprobe test]# cat test 阅读全文
摘要:
1、 直接创建用户 [root@linuxprobe home]# pwd/home [root@linuxprobe home]# ls a.txt linuxprobe software test.sh [root@linuxprobe home]# seq -f liujiaxin%02g 1 阅读全文