centos 常见小问题记录
admin
2023-03-13 11:41:11
0

此文档用于记录自己遇到的问题和解决办法! 


1、CentOS执行ftp命令提示ftp:command not found解决方法

centos7.3.1611 安装ftp 客户端工具


[root@xxxx ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
cat /etc/redhat-release
http://mirror.centos.org/centos/7/os/x86_64/Packages/ftp-0.17-67.el7.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/7/os/x86_64/Packages/ftp-0.17-67.el7.x86_64.rpm

2、df -h  du -h ls -h 命令


xxxx@ubuntu:/tmp$ ls -l
total 12200788
-rw-r--r-- 1 xxxx xxxx 12493601071 Mar 14 18:18 Windows.zip

xxxx@ubuntu:/tmp$ ls -lh
total 12G
-rw-r--r-- 1 xxxx xxxx 12G Mar 14 18:18 Windows.zip

Linux du命令用于显示目录或文件的大小。du会显示指定的目录或文件所占用的磁盘空间。

xxxx@ubuntu:/tmp$ du -h
4.0K    ./.X11-unix
4.0K    ./.ICE-unix
12G     .

查看系统磁盘设备,默认是KB为单位:
xxxx@ubuntu:/tmp$ df
Filesystem                  1K-blocks     Used Available Use% Mounted on
/dev/mapper/ubuntu--vg-root  87845160 24205024  59154812  30% /
none                                4        0         4   0% /sys/fs/cgroup
udev                          4019860        4   4019856   1% /dev
tmpfs                          806220      592    805628   1% /run
none                             5120        0      5120   0% /run/lock
none                          4031088        0   4031088   0% /run/shm
none                           102400        0    102400   0% /run/user
/dev/sda1                      240972    37043    191488  17% /boot
使用-h选项以KB以上的单位来显示,可读性高:
xxxx@ubuntu:/tmp$ df -h
Filesystem                   Size  Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-root   84G   24G   57G  30% /
none                         4.0K     0  4.0K   0% /sys/fs/cgroup
udev                         3.9G  4.0K  3.9G   1% /dev
tmpfs                        788M  592K  787M   1% /run
none                         5.0M     0  5.0M   0% /run/lock
none                         3.9G     0  3.9G   0% /run/shm
none                         100M     0  100M   0% /run/user
/dev/sda1                    236M   37M  187M  17% /boot
查看全部文件系统:
xxxx@ubuntu:/tmp$ df -a
Filesystem                  1K-blocks     Used Available Use% Mounted on
/dev/mapper/ubuntu--vg-root  87845160 24205024  59154812  30% /
proc                                0        0         0    - /proc
sysfs                               0        0         0    - /sys
none                                4        0         4   0% /sys/fs/cgroup
none                                0        0         0    - /sys/fs/fuse/connections
none                                0        0         0    - /sys/kernel/debug
none                                0        0         0    - /sys/kernel/security
udev                          4019860        4   4019856   1% /dev
devpts                              0        0         0    - /dev/pts
tmpfs                          806220      592    805628   1% /run
none                             5120        0      5120   0% /run/lock
none                          4031088        0   4031088   0% /run/shm
none                           102400        0    102400   0% /run/user
none                                0        0         0    - /sys/fs/pstore
cgroup                              0        0         0    - /sys/fs/cgroup/cpuset
cgroup                              0        0         0    - /sys/fs/cgroup/cpu
cgroup                              0        0         0    - /sys/fs/cgroup/cpuacct
cgroup                              0        0         0    - /sys/fs/cgroup/memory
cgroup                              0        0         0    - /sys/fs/cgroup/devices
cgroup                              0        0         0    - /sys/fs/cgroup/freezer
cgroup                              0        0         0    - /sys/fs/cgroup/blkio
cgroup                              0        0         0    - /sys/fs/cgroup/perf_event
cgroup                              0        0         0    - /sys/fs/cgroup/hugetlb
/dev/sda1                      240972    37043    191488  17% /boot
binfmt_misc                         0        0         0    - /proc/sys/fs/binfmt_misc
systemd

        


相关内容

热门资讯

终于了解“旺旺冲击麻将.辅助开... 有 亲,根据资深记者爆料旺旺冲击麻将是可以开挂的,确实有挂(咨询软件无需...
今日重磅消息“POKER.辅助... 您好:POKER这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9752949】很多玩家在这款游...
玩家最新攻略“新青鸟大厅拼三张... 网上科普关于“新青鸟大厅拼三张有没有挂”话题很是火热,小编也是针对新青鸟大厅拼三张作*弊开挂的方法以...
玩家攻略科普“约约麻将.到底是... 家人们!今天小编来为大家解答约约麻将透视挂怎么安装这个问题咨询软件客服徽9752949的挂在哪里买很...
今日重大发现“先锋大厅.怎么装... 您好:先锋大厅这款游戏可以开挂,确实是有挂的,需要了解加客服微信【4282891】很多玩家在这款游戏...
【第一消息】“樱花牛牛.可以开... 您好:樱花牛牛这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9784099】很多玩家在这款游戏...
重磅消息“欢聚斗地主.怎么装挂... 有 亲,根据资深记者爆料欢聚斗地主是可以开挂的,确实有挂(咨询软件无需打...
今日重磅消息“推大石28杠.真... 家人们!今天小编来为大家解答推大石28杠透视挂怎么安装这个问题咨询软件客服徽9752949的挂在哪里...
【今日要闻】“中至南昌麻将.到... 网上科普关于“中至南昌麻将有没有挂”话题很是火热,小编也是针对中至南昌麻将作*弊开挂的方法以及开挂对...
今日重大发现“决战卡五星.怎么... 家人们!今天小编来为大家解答决战卡五星透视挂怎么安装这个问题咨询软件客服徽9784099的挂在哪里买...