1. 程式人生 > >linux伺服器-常用操作

linux伺服器-常用操作

切換至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