linux基本命令 ulimit

2021-08-20 23:39:54 字數 1355 閱讀 9050

ulimit命令用來限制系統使用者對shell資源的訪問

[root@master ~]# ulimit -a   #顯示目前資源限制的設定
core file

size (blocks, -c) 0 #core檔案的最大值為100 blocks。

data seg size (kbytes, -d) unlimited #程序的資料段可以任意大。

scheduling priority (-e) 0

file size (blocks, -f) unlimited #檔案可以任意大。

pending signals (-i) 9830 #最多有98304個待處理的訊號。

max locked memory (kbytes, -l) 32 #乙個任務鎖住的物理記憶體的最大值為32kb。

max memory size (kbytes, -m) unlimited #乙個任務的常駐物理記憶體的最大值。

open files (-n) 1024 #乙個任務最多可以同時開啟1024的檔案。

pipe size (512 bytes, -p) 8 #管道的最大空間為4096位元組。

posix message queues (bytes, -q) 819200 #posix的訊息佇列的最大值為819200位元組。

real-time

priority (-r) 0

stack size (kbytes, -s) 10240 #程序的棧的最大值為10240位元組。

cpu time (seconds, -t) unlimited #程序使用的cpu時間。

max user processes (-u) 98304 #當前使用者同時開啟的程序(包括執行緒)的最大個數為98304。

virtual memory (kbytes, -v) unlimited #沒有限制程序的最大位址空間。

file locks (-x) unlimited #所能鎖住的檔案的最大個數沒有限制。

[root@master ~]# ulimit -n  #最大開啟檔案數

1024

linux基本命令

linux常用命令 基礎 eg man ls 就可以檢視ls相關的用法 注 按q鍵或者ctrl c退出,在linux下可以使用ctrl c終止當前程式執行。2.ls 檢視目錄或者檔案的屬 列舉出任一目錄下面的檔案 eg ls usr man ls l a.d表示目錄 directory 如果是乙個 ...

《linux基本命令》

博主部落格 斷橋殘雪 uname 顯示版本資訊 同win2k的 ver dir 顯示當前目錄檔案,ls al 顯示包括隱藏檔案 同win2k的 dir pwd 查詢當前所在的目錄位置 cd cd 回到上一層目錄,注意cd 與.之間有空格。cd 返回到根目錄。cat 檔名 檢視檔案內容 cat abc...

LINUX 基本命令

檔案和目錄操作的基本命令 cat clear cmp cut diff du emacs fgrep file grep head ln less more pico pwd sort stat strings tail touch umask uniq vi wc whatis ls ls 選項 ...