上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 367 下一页
摘要: 两者都适用在linux 中进行文件查找。 001、find 01、通过对目录、子目录遍历进行查找 02、支持各种条件,比如文件名、类型 -type、大小-size、所有者-user、权限-perm、时间-mtime等 03、结合-exec,支持后续的操作,比如删除、查看、压缩,重命名等 002、lo 阅读全文
posted @ 2024-01-01 10:43 小鲨鱼2018 阅读(29) 评论(0) 推荐(0) 编辑
摘要: linux 中 []和[[]]都支持逻辑判断,后者比前者功能更强大,比较符合通用的编程规则。 001、举一例子 [root@pc1 test1]# a=10 [root@pc1 test1]# b=200 [root@pc1 test1]# if [ $a == 10 ]; then echo "a 阅读全文
posted @ 2024-01-01 10:27 小鲨鱼2018 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 001、输出字符串 [root@pc1 test1]# ls [root@pc1 test1]# printf "hello world\n" ## 方法一 hello world [root@pc1 test1]# printf "%s\n" "hello world" ## 方法二 hello 阅读全文
posted @ 2023-12-31 22:05 小鲨鱼2018 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 001、测试数据 [root@pc1 test1]# ls a.txt [root@pc1 test1]# cat a.txt ## 测试数据 d_j j k d d_kk 002、不指定分隔符 [root@pc1 test1]# ls a.txt [root@pc1 test1]# cat a.t 阅读全文
posted @ 2023-12-31 21:29 小鲨鱼2018 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 001、paste [root@pc1 test1]# ls a.txt b.txt [root@pc1 test1]# cat a.txt ## 测试文件 01 02 03 04 05 06 07 08 09 10 [root@pc1 test1]# cat b.txt ## 测试文件 1 2 [ 阅读全文
posted @ 2023-12-31 18:07 小鲨鱼2018 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 001、gemma软件编译安装报错如下: src/gemma.cpp:79:10: fatal error: openblas_config.h: No such file or directory 002、解决方法 阅读全文
posted @ 2023-12-31 16:44 小鲨鱼2018 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 001、问题,gemma编译, make报错如下: src/mathfunc.h:34:18: error: call of overloaded ‘isnan(double&)’ is ambiguous 002、感觉像是c++编译器版本低的问题,升级gcc编辑器 a、 yum -y instal 阅读全文
posted @ 2023-12-31 10:11 小鲨鱼2018 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 01、 PD(待定): pending;表示在排队 02、CF(配置):configurating 03、R(运行):running 04、CG(完): 表示正在退出 05、CA(取消) 06、S:管理员正在挂起。 阅读全文
posted @ 2023-12-31 00:22 小鲨鱼2018 阅读(635) 评论(0) 推荐(1) 编辑
摘要: 001、设置文件不能被修改,同时也不能删除给文件: chattr +i file a、修改 [root@pc1 test]# ls a.txt [root@pc1 test]# lsattr a.txt ## 查看隐藏属性无 a.txt [root@pc1 test]# chattr +i a.tx 阅读全文
posted @ 2023-12-31 00:15 小鲨鱼2018 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 001、id + 用户名 [root@pc1 ~]# id liujiaxin01 ## 查看用户liujiaxin01的用户信息 uid=1000(liujiaxin01) gid=1000(liujiaxin01) groups=1000(liujiaxin01) [root@pc1 ~]# i 阅读全文
posted @ 2023-12-30 20:25 小鲨鱼2018 阅读(45) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 367 下一页