hopeless-dream

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

08 2021 档案

tail、tailf、head命令
摘要:tail命令 查看文件的末尾10行 [root@localhost test]# vim log_file line1 line2 line3 line4 line5 Hello World - line 6 line7 line8 line9 line10 line11 Hello again - 阅读全文

posted @ 2021-08-28 13:21 hopeless-dream 阅读(189) 评论(0) 推荐(0) 编辑

cat、more、less命令
摘要:cat命令查看文件内容 [root@localhost test]# cat test.sh #!/bin/bash 参数 -n 给所有行加行号 [root@localhost test]# cat -n test 1 #version=DEVEL 2 # System authorization 阅读全文

posted @ 2021-08-28 13:04 hopeless-dream 阅读(197) 评论(0) 推荐(0) 编辑

file命令
摘要:file命令用于查看文件类型 [root@localhost test]# ll total 12 lrwxrwxrwx 1 root root 4 Aug 24 17:28 s1_test -> test lrwxrwxrwx 1 root root 4 Aug 24 17:19 s_test - 阅读全文

posted @ 2021-08-28 10:59 hopeless-dream 阅读(91) 评论(0) 推荐(0) 编辑

Linux文件系统——链接文件
摘要:链接文件是Linux文件系统的一个特性。如需要在系统上维护同一文件的两份或多份副本,除了保存多份单独的物理文件副本之外,还可以采用保存一份物理文件副本和多个虚拟副本的方法。这种虚拟的副本就称为链接。链接是目录中指向文件真实位置的占位符。在Linux中有两种不同类型的文件链接: 符号链接(软链接) 硬 阅读全文

posted @ 2021-08-28 10:31 hopeless-dream 阅读(6427) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示