随笔分类 -  linux shell

上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 78 下一页
摘要:1、问题 -bash: unrar: command not found 2、系统 root@ubuntu01:/home/test# hostnamectl Static hostname: ubuntu01 Icon name: computer-vm Chassis: vm Machine I 阅读全文
posted @ 2022-03-27 15:51 小鲨鱼2018 阅读(5908) 评论(0) 推荐(0)
摘要:1、测试数据 root@PC1:/home/test2# ls a.txt b.txt c.txt root@PC1:/home/test2# md5sum a.txt b.txt c.txt 3b0332e02daabf31651a5a0d81ba830a a.txt 3b0332e02daabf 阅读全文
posted @ 2022-03-27 15:41 小鲨鱼2018 阅读(248) 评论(0) 推荐(0)
摘要:1、测试数据 root@ubuntu01:/home/test# ls a.txt root@ubuntu01:/home/test# stat a.txt File: a.txt Size: 15 Blocks: 8 IO Block: 4096 regular file Device: 805h 阅读全文
posted @ 2022-03-27 14:30 小鲨鱼2018 阅读(794) 评论(0) 推荐(0)
摘要:1、使用stat命令获取atime、mtime、ctime root@ubuntu01:/home/test# ls a.txt root@ubuntu01:/home/test# stat a.txt File: a.txt Size: 10 Blocks: 8 IO Block: 4096 re 阅读全文
posted @ 2022-03-27 12:19 小鲨鱼2018 阅读(271) 评论(0) 推荐(0)
摘要:1、问题 root@ubuntu01:/home/test# ls a.txt root@ubuntu01:/home/test# stat a.txt ## 统计a.txt最后访问的时间 File: a.txt Size: 10 Blocks: 8 IO Block: 4096 regular f 阅读全文
posted @ 2022-03-27 12:06 小鲨鱼2018 阅读(694) 评论(0) 推荐(0)
摘要: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 阅读(116) 评论(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 阅读(115) 评论(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 阅读(1212) 评论(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 阅读(1482) 评论(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 阅读(400) 评论(0) 推荐(0)
摘要:1、硬链接 在Linux中,每个文件都有一个索引节点号(Inode index); 多个文件名指向同一索引节点是存在的。一般这种连接就是硬连接。 硬连接的作用是允许一个文件拥有多个有效路径名,这样用户就可以建立硬连接到重要文件,以防止“误删”的功能。因为只删除一个连接并不影响索引节点本身和其它的连接 阅读全文
posted @ 2022-03-26 11:42 小鲨鱼2018 阅读(251) 评论(0) 推荐(0)
摘要:1、/boot: 开机所需文件 内核、开机菜单以及所需配置文件等; 内核、开机启动项 2、/dev:以文件形式存放任何设备与接口; 硬盘、设备 3、/etc:配置文件; 配置文件 4、/home: 用户家目录; 普通用户家目录 5、/bin:存放单用户模式下还可以操作的命令; 命令 6、/lib:开 阅读全文
posted @ 2022-03-25 23:05 小鲨鱼2018 阅读(700) 评论(0) 推荐(0)
摘要:1、内存 (1)、 [root@localhost home]# cat /proc/meminfo | head -n 5 MemTotal: 2035624 kB ## 总的内存大小 MemFree: 824528 kB MemAvailable: 1221384 kB Buffers: 178 阅读全文
posted @ 2022-03-25 13:36 小鲨鱼2018 阅读(16697) 评论(0) 推荐(0)
摘要:1、系统 root@utuntu01:/home# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.4 LTS Release: 20.04 Codename: 阅读全文
posted @ 2022-03-25 12:20 小鲨鱼2018 阅读(2787) 评论(0) 推荐(1)
摘要:主要分为两大类型: 1、redhat 系列: 包括: fedora、 centos stream、 redhat、 centos 2、debian系列:包括: debian、ubuntu、mint 3、其他:openSUSE、 补充: 阅读全文
posted @ 2022-03-24 22:43 小鲨鱼2018 阅读(474) 评论(0) 推荐(0)
摘要:1、测试数据 root@PC1:/home/test2# ls a.txt root@PC1:/home/test2# cat a.txt 01 02 03 04 05 06 07 08 09 10 2、head 实现 root@PC1:/home/test2# ls a.txt root@PC1: 阅读全文
posted @ 2022-03-23 17:59 小鲨鱼2018 阅读(903) 评论(0) 推荐(0)
摘要:1、系统及测试文件 (1)ubuntu系统 root@PC1:/home/test2# ls outcome.map outcome.ped root@PC1:/home/test2# hostnamectl Static hostname: PC1 Icon name: computer-vm C 阅读全文
posted @ 2022-03-23 17:26 小鲨鱼2018 阅读(420) 评论(0) 推荐(0)
摘要:1、问题 ping: www.baudu.com: Temporary failure in name resolution 2、解决方法 在/etc/resolv.conf配置文件末尾追加:nameserver 8.8.8.8 root@ubuntu201:/home/test# tail -n 阅读全文
posted @ 2022-03-23 14:28 小鲨鱼2018 阅读(2530) 评论(0) 推荐(0)
摘要:1、测试数据 root@PC1:/home/test2# ls a.txt root@PC1:/home/test2# cat a.txt 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 阅读全文
posted @ 2022-03-23 11:36 小鲨鱼2018 阅读(884) 评论(0) 推荐(0)
摘要:1、测试数据 root@PC1:/home/test2# ls a.txt root@PC1:/home/test2# cat a.txt 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 阅读全文
posted @ 2022-03-23 11:05 小鲨鱼2018 阅读(6050) 评论(3) 推荐(1)

上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 78 下一页