上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 367 下一页
摘要: 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 阅读(138) 评论(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 阅读(178) 评论(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 阅读(313) 评论(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 阅读(356) 评论(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 阅读(669) 评论(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 阅读(401) 评论(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 阅读(34) 评论(0) 推荐(0) 编辑
摘要: linux 中echo命令用于各种形式的字符串输出。 转义字符 含义\b 删除前一个字符\n 换行\t 水平制表符(tab)\v 垂直制表符(tab)\c \c后面的字符将不会输出,输出完毕后也不会换行\r 光标移动到首行,换行\f 换行,光标停在原处\e 删除后一个字符\ 输出\\0nnn 输出八 阅读全文
posted @ 2023-06-22 10:11 小鲨鱼2018 阅读(879) 评论(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 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 001、问题 [liujiaxin01@PC1 ~]$ docker search omicsclass permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.s 阅读全文
posted @ 2023-06-22 08:50 小鲨鱼2018 阅读(34) 评论(0) 推荐(0) 编辑
上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 367 下一页