上一页 1 ··· 292 293 294 295 296 297 298 299 300 ··· 403 下一页
摘要: linux系统中如何删除文件的最后几行 1、 [root@centos79 test]# cat a.txt a g e d c j i x a e i r x v b x e w [root@centos79 test]# head -n -2 a.txt a g e d c j i x a e 阅读全文
posted @ 2021-07-04 18:14 小鲨鱼2018 阅读(1005) 评论(0) 推荐(0)
摘要: 1、linux系统中如何统计文件的行数 [root@centos79 test]# cat b.txt a g e d c j i x a [root@centos79 test]# wc -l b.txt 3 b.txt 2、 [root@centos79 test]# cat b.txt a g 阅读全文
posted @ 2021-07-04 17:58 小鲨鱼2018 阅读(1214) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-03 13:52 小鲨鱼2018 阅读(238) 评论(0) 推荐(0)
摘要: 1、自定义函数 test1 <- function(x = 5,y) ## 自定义函数test { a = x / y print(a) } test1(10,100) ## 使用位置参数,按顺序x = 10, y = 100 test1(y = 10, x = 100) ## 关键字参数 直接定义 阅读全文
posted @ 2021-06-29 22:09 小鲨鱼2018 阅读(1799) 评论(0) 推荐(0)
摘要: 1、 rm(list = ls()) dir() for (i in list.files(pattern=".r$")) { source(i) } 2、 rm(list = ls()) dir() for (i in dir()) { if(substr(i,nchar(i)-1,nchar(i 阅读全文
posted @ 2021-06-29 00:16 小鲨鱼2018 阅读(149) 评论(0) 推荐(0)
摘要: R语言中如何在函数内部定义全局变量。 1、在函数内部定义的变量无法在函数外调用 test1 <- function(x, y) { a <- x + y print(a) } test1(10,20) print(a) 2、在函数内定义全局变量 test2 <- function(x, y) { a 阅读全文
posted @ 2021-06-29 00:00 小鲨鱼2018 阅读(1437) 评论(0) 推荐(0)
摘要: 1、问题 [root@centos79 software]# dnf install R bash: dnf: command not found... 2、安装dnf [root@centos79 software]# yum install epel-release Loaded plugins 阅读全文
posted @ 2021-06-27 23:03 小鲨鱼2018 阅读(9987) 评论(0) 推荐(2)
摘要: 1、默认情况下root不能登录ssh 2、修改ssh服务配置文件 root@ubuntu01:~/Desktop# whoami root root@ubuntu01:~/Desktop# vim /etc/ssh/sshd_config ………… # Authentication: #LoginG 阅读全文
posted @ 2021-06-27 12:34 小鲨鱼2018 阅读(111) 评论(0) 推荐(0)
摘要: 1、查看当前主机名 root@liujiaxin01-virtual-machine:~/Desktop# hostname liujiaxin01-virtual-machine ##太长 2、修改主机名 root@liujiaxin01-virtual-machine:~/Desktop# wh 阅读全文
posted @ 2021-06-27 12:26 小鲨鱼2018 阅读(710) 评论(0) 推荐(0)
摘要: Ubuntu 20.04.2默认不能进行root登录 1、查看系统版本 liujiaxin01@liujiaxin01-virtual-machine:~/Desktop$ whoami liujiaxin01 liujiaxin01@liujiaxin01-virtual-machine:~/De 阅读全文
posted @ 2021-06-27 12:20 小鲨鱼2018 阅读(656) 评论(0) 推荐(0)
上一页 1 ··· 292 293 294 295 296 297 298 299 300 ··· 403 下一页