ulimit command

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat ulimit command
# 1  
Old 07-25-2012
ulimit command

In Linux, What is the difference between using this command ulimit -c `ulimit -cH` and ulimit -c `ulimit -Hc` ?


Thanks
# 2  
Old 07-27-2012
Here is the diff, 1st it would be better to do 'man ulimit'

Code:
[root@linux ~]# man ulimit

[root@src1 ~]# ulimit -Hc
unlimited
[root@src1 ~]# 

[root@src1 ~]# ulimit -cH
-bash: ulimit: H: invalid number

---------- Post updated at 06:53 AM ---------- Previous update was at 06:47 AM ----------

Also refer

ulimit -a and /etc/security/limits.conf
# 3  
Old 07-29-2012
I am asking about Linux and not AIX. -cH does not work AIX only on Linux. the manual says ulimit -Hc. The -Hc works on both. Since I have a Linux OS, do i really need to change -cH to -Hc ? Because it will require a an app reboot. Any thoughts if if I leave it as -cH on my Linux box if it will cause an issue !

Thanks



Quote:
Originally Posted by Srvesh
Here is the diff, 1st it would be better to do 'man ulimit'

Code:
[root@linux ~]# man ulimit
 
[root@src1 ~]# ulimit -Hc
unlimited
[root@src1 ~]# 
 
[root@src1 ~]# ulimit -cH
-bash: ulimit: H: invalid number

---------- Post updated at 06:53 AM ---------- Previous update was at 06:47 AM ----------

Also refer

ulimit -a and /etc/security/limits.conf
# 4  
Old 07-29-2012
Ulimit is implemented by the shell, and thus the options that are recognised, and thus the allowable order of the options, is up to each shell. Kshell allows either ulimit -Hc value or ulimit -cH value while bash seems only to allow -Hc value (probably because it assumes any characters following the 'c' without a space are to be interpreted as the value).

So the real question is what is your underlying shell that is interpreting your script? If it is bash, then you'll have to ensure that ulimit -Hc is what is coded. If you are using Kshell, then either format should work. I cannot say how other shells will react as I don't have any installed anywhere to test.
# 5  
Old 08-13-2012
Perfect answer. thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Ulimit -c unlimited

I was trying to generate core dump of a process.But it is not generated. While digging up the issue I found that Core File Size is set to 0. I set it with #ulimit -c unlimited.After that I found the core file size is set to 0 (ulimit -a).I exit that session and again logged in.But found the core... (12 Replies)
Discussion started by: Anjan Ganguly
12 Replies

2. Linux

ulimit -n

Hi im a complete noob to shell commands but here is my problem i have a dedicated server i7 with 24 gig ram i have whm/cpanel on it now ive added a minecraft system to root but i cannot set the server to more than 512mb memory i was told its because the memory is being blocked and was told to... (7 Replies)
Discussion started by: gazzac
7 Replies

3. Solaris

ulimit

Hello, could you help me please? I write in command line: "ulimit 500" -> i've set the max size of 512-bytes blocks that i can write in one file. But when after it i use ulimit.3c in my program: "ulimit(UL_GETFSIZE);" the result turns out 1000. Why is it so? They always differ so that one is... (2 Replies)
Discussion started by: Zhenya_
2 Replies

4. HP-UX

ulimit Command Problem???

Hi, I have changed the ulimit for the user dsadm on one of my server. Its only changed IF i su to dsadm from root, but its not changing if i ssh to dsadm. i want to change the data(kbytes)to unlimited. i edit the /etc/profile and .profile of dsadm user by set this my OS 11.31 ulimit -d... (1 Reply)
Discussion started by: mousa55
1 Replies

5. Solaris

ulimit

how do i check the ulimit set on my server.. ca i know whats the command ?? thanks in advance .. (5 Replies)
Discussion started by: expert
5 Replies

6. UNIX for Advanced & Expert Users

ulimit

hi what is the difference between file and data? if file is unlimited, does that mean we can have a file as big as we like? thanks. file(blocks) unlimited data(kbytes) 1048576 (6 Replies)
Discussion started by: JamesByars
6 Replies

7. Solaris

ulimit command

Hi, I have a Sun machine 5.8 and would like to modify the ulimit parameter for numner of file descriptors. the output of plimit <process name> is: 4100: process_name resource current maximum time(seconds) unlimited unlimited file(blocks) ... (8 Replies)
Discussion started by: inquirer
8 Replies

8. Solaris

ulimit

Hi, I need to increase the open files on my server to run a test. Usually what I do is: ulimit -n 5000 My questions are: 1] I want to set this parameter once and for all. What is the right parameter to set in /etc/system: rlim_fd_max or rlim_fd_cur? 2] How to make sure that this... (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

9. UNIX for Dummies Questions & Answers

ulimit

Hi, system aix 4.3 when I execute umilit i get result "unlimited". why cant i ftp or extract from media filesize over 2gig.... e.g FS /test/testy is large file enabled. any help will be greatly appreciated. thnx (3 Replies)
Discussion started by: Student37
3 Replies

10. UNIX for Dummies Questions & Answers

ulimit -d

All I am trying to do ulimit -d unlimited and I get "sh: ulimit: The specified value exceeds the user's allowable limit." Can someone please help me understand, how to change this! Thanks (1 Reply)
Discussion started by: adadevil
1 Replies
Login or Register to Ask a Question

Featured Tech Videos