随笔分类 -  linux shell

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 78 下一页
摘要:centos 7 中 网络配置方式 netconnection网络配置方式到 netmanager改进了什么?为什么改? 阅读全文
posted @ 2024-04-03 11:43 小鲨鱼2018 阅读(21) 评论(0) 推荐(0)
摘要:ubuntu desktop 和 ubuntu server 有什么区别? Ubuntu Desktop和Ubuntu Server的主要区别在于它们的用途、提供的界面、预装软件、性能优势不同。具体如下:12 用途不同。Ubuntu Desktop适用于个人电脑或办公室的图形界面环境,提供办公生产力 阅读全文
posted @ 2024-04-03 11:42 小鲨鱼2018 阅读(2663) 评论(0) 推荐(0)
摘要:001、测试1 centos7 [root@pc1 ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) ## centos7系统 [root@pc1 ~]# nmcli d ## 查看网络接口,ens32 DEVICE T 阅读全文
posted @ 2024-04-03 11:40 小鲨鱼2018 阅读(608) 评论(0) 推荐(0)
摘要:001、查看系统 [root@PC1 liujiaxin01]# cat /etc/system-release Rocky Linux release 9.3 (Blue Onyx) ## rocky9 002、进入配置文件目录 [root@PC1 liujiaxin01]# cd /etc/Ne 阅读全文
posted @ 2024-04-03 11:28 小鲨鱼2018 阅读(8104) 评论(0) 推荐(2)
摘要:rpm: redhat package management yum: yellow dog updater, modified rpm:解决单一rpm的依赖。 rpm本质上是一种包; yum:解决软件的所有的依赖,自动从服务器下载rmp包并且安装。yum本质上是一个安装包的软件。 参考: 01、h 阅读全文
posted @ 2024-04-03 11:26 小鲨鱼2018 阅读(72) 评论(0) 推荐(0)
摘要:001、问题 linux 中 很多服务的后面都加一个d是什么意思; 比如 sshd; httpd 002、解释 d是daemon的缩写,说明它自己是个守护进程(daemon) ,它在后台运行,一般都是用来做服务端程序。 所以后面都多了一个d,以方便大家理解这个程序的行为。 003、什么是守护进程 一 阅读全文
posted @ 2024-04-03 11:25 小鲨鱼2018 阅读(375) 评论(0) 推荐(1)
摘要:001、测试数据 [root@pc1 test01]# ls a.txt [root@pc1 test01]# cat a.txt ee root kk aa ee ddd ee ROOT kk ee dd Root 002、 方法1 vim 打开查找文件, 在查找内容的后边增加\c, 如果不在末尾 阅读全文
posted @ 2024-04-03 11:17 小鲨鱼2018 阅读(453) 评论(0) 推荐(0)
摘要:001、问题, 安装完成rocky9, 发现ssh无法使用root登陆 a、系统 [root@PC1 home]# cat /etc/redhat-release Rocky Linux release 9.3 (Blue Onyx) b、root登陆出现如下界面 002、解决方法,在ssh服务的配 阅读全文
posted @ 2024-04-03 10:45 小鲨鱼2018 阅读(4247) 评论(0) 推荐(0)
摘要:001、$ 加 双括号(()) [root@pc1 test]# ls [root@pc1 test]# echo $((5 + 100)) 105 [root@pc1 test]# echo $((100 / 5)) 20 [root@pc1 test]# echo $((100 / 3)) ## 阅读全文
posted @ 2024-04-01 15:29 小鲨鱼2018 阅读(101) 评论(0) 推荐(0)
摘要:ctrl + v; 然后按tab键 01、step1 ctrl + v 02、step2 tab键 阅读全文
posted @ 2024-04-01 15:24 小鲨鱼2018 阅读(144) 评论(0) 推荐(0)
摘要:001、 [root@pc1 test]# ls a.txt [root@pc1 test]# cat a.txt ## 测试数据 1 2 3 [root@pc1 test]# sum=0 [root@pc1 test]# for i in $(seq 3); do let sum+=$i; don 阅读全文
posted @ 2024-04-01 12:46 小鲨鱼2018 阅读(18) 评论(0) 推荐(0)
摘要:001、 [root@pc1 test]# ls a.txt [root@pc1 test]# sum=0 [root@pc1 test]# cat a.txt | while read i; do let sum+=$i; done ## 循环方式1 [root@pc1 test]# echo $ 阅读全文
posted @ 2024-04-01 12:38 小鲨鱼2018 阅读(20) 评论(0) 推荐(0)
摘要:001、awk [root@pc1 test01]# ls a.txt [root@pc1 test01]# cat a.txt 8 3 2 5 [root@pc1 test01]# awk '{sum += $1} END {print sum}' a.txt ## awk计算第一列数据的和 18 阅读全文
posted @ 2024-04-01 12:29 小鲨鱼2018 阅读(264) 评论(0) 推荐(0)
摘要:001、 如下测试数据,想在每行最后的两个字符之前添加特定字符,比如QQ,如何实现 [root@pc1 test01]# ls a.txt [root@pc1 test01]# cat a.txt ## 测试数据 2+adey 2-ddfr 7_dgqd 002、可以借助&实现 [root@pc1 阅读全文
posted @ 2024-04-01 12:19 小鲨鱼2018 阅读(81) 评论(0) 推荐(0)
摘要:Linux中文件的隐藏权限通常有2个参数; i 和 a; 使用chattr 修改文件的隐藏权限; 使用lsattr 查看文件的隐藏权限; 001、-i参数; a、对文件:无法对文件进行修改; b、对目录:仅能修改目录中的子文件的内容而不能新建或者删除文件 01、增加、查看文件的-i隐藏属性 [roo 阅读全文
posted @ 2024-03-31 16:06 小鲨鱼2018 阅读(811) 评论(0) 推荐(0)
摘要:001、测试数据 [root@pc1 test01]# ls a.txt idx.txt [root@pc1 test01]# cat a.txt ## 测试数据 01 02 03 04 05 06 1 07 08 09 10 11 12 2 13 14 15 16 17 18 3 19 20 21 阅读全文
posted @ 2024-03-27 18:23 小鲨鱼2018 阅读(59) 评论(0) 推荐(0)
摘要:001、 [root@pc1 test]# ls a.txt [root@pc1 test]# cat a.txt ## 测试数据 aa bb cc aa jj kk aa mm uy aa mm ww [root@pc1 test]# grep "aa\t" a.txt ##\t在这里不能被识别, 阅读全文
posted @ 2024-03-27 10:57 小鲨鱼2018 阅读(247) 评论(0) 推荐(0)
摘要:001、R语言出现如下报错: 读取的项目数必需是列数的倍数 > egg <- read.table("XXX.emapper_reformat.annotations",sep="\t",header=T) Warning messages: 1: In scan(file = file, what 阅读全文
posted @ 2024-03-25 22:04 小鲨鱼2018 阅读(401) 评论(0) 推荐(0)
摘要:eggnog.db.gzeggnog_proteins.dmnd.gzeggnog.taxa.tar.gzmmseqs.tar.gzpfam.tar.gz 阅读全文
posted @ 2024-03-25 11:51 小鲨鱼2018 阅读(20) 评论(0) 推荐(0)
摘要:001、问题 locate定位文件的时候出现如下问题: locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory 002、原因分析; 安装locate命令后没有更新 解决方法:更新命令库,使用如下 阅读全文
posted @ 2024-03-18 11:19 小鲨鱼2018 阅读(619) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 78 下一页