root@ubuntu:/# sudo du -hsx * | sort -rh | head -10
7.4G var
1.5G usr
914M root
208M lib
166M swapfile
133M swap
65M boot
8.5M bin
7.4M sbin
5.3M run
```
### mysql 主从复制状态查询
Start the MySQL command-line utility on the slave server:
```shell
# cd /opt/mysql/mysql/bin
# mysql -u root -p
Enter password:
```
Check the replication status using the show slave status command (the status of the slave server is conveyed by the Slave_IO_Running and Slave_SQL_Running column values):