上一页 1 ··· 239 240 241 242 243 244 245 246 247 ··· 408 下一页
摘要: 1、该指令只能用于查找二进制文件、源代码文件和man手册页,一般文件的定位需使用locate、find命令。 root@DESKTOP-1N42TVH:/home/test# whereis top ## 输出了二进制文件和man手册叶 top: /usr/bin/top /usr/share/ma 阅读全文
posted @ 2022-04-30 23:19 小鲨鱼2018 阅读(478) 评论(0) 推荐(0)
摘要: locate特定: 001:速度快 002:查找依赖于/var/lib/mlocate/mlocate.db 为了时效性查找,在使用locate命令之前可以先更新库: updatedb 示例: 1、locate + file root@DESKTOP-1N42TVH:/home/test# loca 阅读全文
posted @ 2022-04-30 23:05 小鲨鱼2018 阅读(428) 评论(0) 推荐(0)
摘要: 1、 root@DESKTOP-1N42TVH:/home/test# echo $a root@DESKTOP-1N42TVH:/home/test# [ -z $a ] && echo "null" || echo "no null" ## -z判断变量是否为空,空返回TRUE,非空返回FALS 阅读全文
posted @ 2022-04-30 22:30 小鲨鱼2018 阅读(649) 评论(0) 推荐(0)
摘要: 1、 > a <- c("a", NA, "d", "e", NA, "b") > complete.cases(a) ## 向量中不为空返回TRUE,为空则返回FALSE [1] TRUE FALSE TRUE TRUE FALSE TRUE > is.na(a) ## 向量中为空返回TRUE, 阅读全文
posted @ 2022-04-30 22:03 小鲨鱼2018 阅读(461) 评论(0) 推荐(0)
摘要: 1、应用于向量 > a <- c("d", "e", NA, "k", NA, "m") > a [1] "d" "e" NA "k" NA "m" > as.character(na.omit(a)) ## 清除向量中的空值 [1] "d" "e" "k" "m" > na.omit(a)[1:l 阅读全文
posted @ 2022-04-30 21:51 小鲨鱼2018 阅读(1036) 评论(0) 推荐(0)
摘要: 1、下载地址:http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/ 2、赋予权限 root@DESKTOP-1N42TVH:/home/software# ll -h total 34M drwxr-xr-x 4 root root 4.0K 阅读全文
posted @ 2022-04-30 00:04 小鲨鱼2018 阅读(1608) 评论(0) 推荐(0)
摘要: 1、举例 root@DESKTOP-1N42TVH:/home/test3# a="aa.bb.cc.dd" root@DESKTOP-1N42TVH:/home/test3# echo $a aa.bb.cc.dd root@DESKTOP-1N42TVH:/home/test3# echo ${ 阅读全文
posted @ 2022-04-29 23:03 小鲨鱼2018 阅读(174) 评论(0) 推荐(0)
摘要: 1、举例 #*.的作用 root@DESKTOP-1N42TVH:/home/test3# a="aa.bb.cc.dd" root@DESKTOP-1N42TVH:/home/test3# echo ${a} aa.bb.cc.dd root@DESKTOP-1N42TVH:/home/test3 阅读全文
posted @ 2022-04-29 22:55 小鲨鱼2018 阅读(2825) 评论(0) 推荐(0)
摘要: 1、举例%.*的作用 root@DESKTOP-1N42TVH:/home/test3# a="aa.bb.cc.dd" root@DESKTOP-1N42TVH:/home/test3# echo ${a} aa.bb.cc.dd root@DESKTOP-1N42TVH:/home/test3# 阅读全文
posted @ 2022-04-29 22:43 小鲨鱼2018 阅读(3192) 评论(0) 推荐(1)
摘要: 1、 测试数据 > df <- data.frame(Age=c(22,24,25,26), Gender=c("Girl","Girl","Boy","Boy"), + City=c("Shanghai","Beijing","Guangzhou","Nanjing")) > df Age Gen 阅读全文
posted @ 2022-04-29 21:55 小鲨鱼2018 阅读(1204) 评论(0) 推荐(0)
上一页 1 ··· 239 240 241 242 243 244 245 246 247 ··· 408 下一页