首页 > 学院 > 开发设计 > 正文

Linux&Shell命令系列(一)

2019-11-08 03:02:40
字体:
来源:转载
供稿:网友

1、 进程最大可打开文件数: ulimit -n 或修改vi /etc/security/limit.conf 文件limits.conf中, *soft nofile 65535:应用软件级别限制的最大可打开文件数 *hard nofile 65535: 操作系统级别限制的最大可打开文件数

2、 在linux系统中,所有进程都会有一个临时的核心配置文件存放路径: /PRo/进程号/limit

3、 linux路径命令

##/home/tmp/test/test.sh##执行命令./test.shcurrentdir=`pwd`#/home/tmp/testbasename=`basename`#testtemp="${BASE_SOURCE-$0}"#./test.shtemp2=${dirname ${temp}}#.${cd ${temp2}; pwd}#/home/tmp/test
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表