摘要: 1、测试数据 root@ubuntu01:/home/test# ls log2013.log log2014.log root@ubuntu01:/home/test# cat log2013.log ## 测试数据 2013-01 2013-02 2013-03 2013-04 2013-05 阅读全文
posted @ 2022-03-26 22:28 小鲨鱼2018 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1、问题, windows中文件上传linux中出现^M, 如下: root@ubuntu01:/home/test# ls outcome.map root@ubuntu01:/home/test# cat -A outcome.map 1^Is64199.1^I0^I55910^M$ 1^IOA 阅读全文
posted @ 2022-03-26 22:06 小鲨鱼2018 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 root@ubuntu01:/home/test# ls a.txt b.txt root@ubuntu01:/home/test# cat a.txt sss eee rrr 555 888 333 bbb 777 yyy root@ubuntu01:/home/test# cat 阅读全文
posted @ 2022-03-26 14:44 小鲨鱼2018 阅读(1126) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 root@ubuntu01:/home/test# ls a.txt root@ubuntu01:/home/test# cat a.txt ## 测试数据 a g b d a b b d c b 2、统计重复项 root@ubuntu01:/home/test# ls a.txt r 阅读全文
posted @ 2022-03-26 14:22 小鲨鱼2018 阅读(1268) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 root@ubuntu01:/home/test# ls ## 测试数据 a.txt b.txt root@ubuntu01:/home/test# cat a.txt a b c d e root@ubuntu01:/home/test# cat b.txt c d e f g 2、 阅读全文
posted @ 2022-03-26 14:12 小鲨鱼2018 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 1、硬链接 在Linux中,每个文件都有一个索引节点号(Inode index); 多个文件名指向同一索引节点是存在的。一般这种连接就是硬连接。 硬连接的作用是允许一个文件拥有多个有效路径名,这样用户就可以建立硬连接到重要文件,以防止“误删”的功能。因为只删除一个连接并不影响索引节点本身和其它的连接 阅读全文
posted @ 2022-03-26 11:42 小鲨鱼2018 阅读(229) 评论(0) 推荐(0) 编辑