随笔分类 -  linux shell

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 78 下一页
摘要:001、 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 333 kkk gene 777 1 333 kkk exon 777 2 333 kkk exon 777 3 333 kkk gene 777 4 333 阅读全文
posted @ 2023-06-30 09:26 小鲨鱼2018 阅读(75) 评论(0) 推荐(0)
摘要:001、 阅读全文
posted @ 2023-06-23 19:08 小鲨鱼2018 阅读(38) 评论(0) 推荐(0)
摘要:001、问题 cmake 报错 [root@PC1 build]# cmake .. 002、解决方法, 下载zlib并安装 官网:http://www.zlib.net/ a、下载 b、解压并安装 [root@PC1 software]# tar -xzvf zlib-1.2.13.tar.gz 阅读全文
posted @ 2023-06-23 19:05 小鲨鱼2018 阅读(2169) 评论(0) 推荐(0)
摘要:001、问题 CMake Error at /root/anaconda3/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message): Failed to fi 002、 报错原因 centos中没有安装opengl依赖库 解决方法如下: [root 阅读全文
posted @ 2023-06-23 12:13 小鲨鱼2018 阅读(590) 评论(0) 推荐(0)
摘要:001、问题 -- Checking for curses support - Failed 002、解决方法 [root@PC1 cmake-3.27.0-rc3]# yum -y install ncurses-devel 003、再次编译(解决curses报错) [root@PC1 cmake 阅读全文
posted @ 2023-06-23 12:05 小鲨鱼2018 阅读(202) 评论(0) 推荐(0)
摘要:系统是centos7.6 001、问题 -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system vari 002、解决方法 [root@PC1 cmake-3.27.0-rc3]# yum 阅读全文
posted @ 2023-06-23 11:57 小鲨鱼2018 阅读(2035) 评论(0) 推荐(0)
摘要:可以分为两种情况: a、误删的文件正在被进程所使用 b、误删的文件没有被进程使用 001、 [root@PC1 test01]# ls [root@PC1 test01]# seq 5 > a.txt ## 创建测试文件 [root@PC1 test01]# ls a.txt [root@PC1 t 阅读全文
posted @ 2023-06-22 23:28 小鲨鱼2018 阅读(960) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test01]# ls a.txt c.txt x.txt [root@PC1 test01]# ls -l ## 测试数据 total 12 -rw-r--r--. 1 root root 6 Jun 22 23:00 a.txt -rw-r--r--. 1 root 阅读全文
posted @ 2023-06-22 23:09 小鲨鱼2018 阅读(601) 评论(0) 推荐(0)
摘要:001、-s 将多个连续的字符压缩为一个字符 [root@PC1 test01]# ls a.txt [root@PC1 test01]# cat a.txt ## 测试数据 ddddfffabccccc lerrrrdddd [root@PC1 test01]# cat a.txt | tr -s 阅读全文
posted @ 2023-06-22 22:37 小鲨鱼2018 阅读(79) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test01]# ls a.txt [root@PC1 test01]# cat a.txt ## 测试数据 1 2 3 4 5 6 7 8 [root@PC1 test01]# cat a.txt | paste -s -d " " ## 转换为一行 1 2 3 4 阅读全文
posted @ 2023-06-22 22:18 小鲨鱼2018 阅读(168) 评论(0) 推荐(0)
摘要:tee命令 :同时标准输出 和 保存文件。 001、 [root@PC1 test01]# ls [root@PC1 test01]# seq 3 | tee a.txt ## 标准输出的同时,保存文件 1 2 3 [root@PC1 test01]# ls a.txt [root@PC1 test 阅读全文
posted @ 2023-06-22 21:34 小鲨鱼2018 阅读(257) 评论(0) 推荐(0)
摘要:001、 利用cat命令给文件添加行号 [root@PC1 test01]# ls a.txt [root@PC1 test01]# cat a.txt ## 测试文件 a b c d 0 1 2 3 [root@PC1 test01]# cat -n a.txt ## -n 选项,给文件添加行号, 阅读全文
posted @ 2023-06-22 20:50 小鲨鱼2018 阅读(454) 评论(0) 推荐(0)
摘要:001、cat > file [root@PC1 test01]# ls [root@PC1 test01]# cat > a.txt a b c d ## 利用键盘输出内容 0 1 2 3 ## 利用ctrl + D 进行终止 [root@PC1 test01]# ls a.txt [root@P 阅读全文
posted @ 2023-06-22 20:46 小鲨鱼2018 阅读(501) 评论(0) 推荐(0)
摘要:echo: 字体颜色 和 背景颜色。 常见的字体颜色:重置=0,黑色=30,红色=31,绿色=32,黄色=33,蓝色=34,紫色=35,天蓝色=36,白色=37。 常见的背景颜色:重置=0,黑色=40,红色=41,绿色=42,黄色=43,蓝色=44,紫色=45,天蓝色=46,白色=47。 字体控制选 阅读全文
posted @ 2023-06-22 20:23 小鲨鱼2018 阅读(764) 评论(0) 推荐(0)
摘要:001、输出字符串 [root@PC1 test01]# printf "abcd\n" abcd [root@PC1 test01]# printf "%s\n" "abcd" ## 输出字符串 abcd 002、指定宽度 [root@PC1 test01]# printf "%s\n" "abc 阅读全文
posted @ 2023-06-22 18:03 小鲨鱼2018 阅读(514) 评论(0) 推荐(0)
摘要:001、测试 [root@PC1 test01]# printf "abcd\n" ## 输出abcd并换行 abcd [root@PC1 test01]# printf "ab!cd\n" ## 不能正常的输出感叹号 -bash: !cd\n": event not found [root@PC1 阅读全文
posted @ 2023-06-22 17:49 小鲨鱼2018 阅读(66) 评论(0) 推荐(0)
摘要:linux 中echo命令用于各种形式的字符串输出。 转义字符 含义\b 删除前一个字符\n 换行\t 水平制表符(tab)\v 垂直制表符(tab)\c \c后面的字符将不会输出,输出完毕后也不会换行\r 光标移动到首行,换行\f 换行,光标停在原处\e 删除后一个字符\ 输出\\0nnn 输出八 阅读全文
posted @ 2023-06-22 10:11 小鲨鱼2018 阅读(1102) 评论(0) 推荐(1)
摘要:001、方法1 [root@PC1 test01]# echo 'abc!' ## 使用单引号 abc! 002、方法2 [root@PC1 test01]# echo "abc! " ## 双引号, 感叹后后面加空格 abc! 003、方法3 [root@PC1 test01]# echo abc 阅读全文
posted @ 2023-06-22 09:38 小鲨鱼2018 阅读(295) 评论(0) 推荐(0)
摘要:001、查看当前用户所在的用户组 [root@PC1 test01]# whoami ## 当前用户 root [root@PC1 test01]# groups ## 当前用户所在的用户组 root 002、查看指定用户所属的用户组 [root@PC1 test01]# groups liujia 阅读全文
posted @ 2023-06-21 23:44 小鲨鱼2018 阅读(239) 评论(0) 推荐(0)
摘要:001、下载安装包 官网:https://cmake.org/ 002、解压安装包 tar -xzvf cmake-3.27.0-rc2-linux-x86_64.tar.gz cd cmake-3.27.0-rc2-linux-x86_64/bin ls 003、测试命令及版本 (base) [r 阅读全文
posted @ 2023-06-19 19:34 小鲨鱼2018 阅读(519) 评论(0) 推荐(0)

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 78 下一页