切换至root帐号:
sudo -i
查看服务器的ulimit大小:
ulimit -n
查看系统是64位还是32位
getconf LONG_BIT
查看版本信息:
lsb_release -a
进入mysql:
mysql-ib
删除写保护文件:
sudo rm -rf 文件名
查询表占有大小:
use information_schema;
select concat(round(sum(data_length/1024/1024),2),‘MB’) as data from tables where table_schema=‘bi_dw’ ;
linux查询各目录占用大小:
du -h --max-depth=1