2023-05-18 16:55
147
0
0
0
Linux:ls以K、M、G为单位查看文件大小
```bash
#man ls
……
-h, --human-readable
print sizes in human readable format (e.g., 1K 234M 2G)
……
# ls
cuss.war nohup.out
# ls -l
total 30372
2023-05-18 16:50
128
0
0
0
linux查看文件夹下文件及文件夹数量
ls | wc -w
查看当前目录下字节数
ls | wc -c
查看当前文件夹下有多少个文件,多少个子目录
ls -l |wc -l
查看当前文件夹中文件的数量
/bin/ls -l |grep ^-|wc -l
2023-05-18 16:38
112
0
0
0
CentOS7安装mysql提示“No package mysql-server available
原因是:
CentOS7带有MariaDB而不是MySQL,MariaDB和MySQL一样也是开元的数据库,您可以使用命令安装
yum -y install mariadb-server mariadb
解决方案:
如果