How to make ulimit change permanent

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to make ulimit change permanent
# 1  
How to make ulimit change permanent

ulimit -a gives the following output:
$ulimit -a
time(seconds)        unlimited
file(blocks)         2097152
data(kbytes)         131072
stack(kbytes)        16384
memory(kbytes)       unlimited
coredump(blocks)     32768
nofiles(descriptors) 400
vmemory(kbytes)      147456

Abot output means my system has maximum filesize limit as 1 GB, I want to make it 2GB, I think i'll make it double and then it would be
file(blocks)         4194304

But when I logout and login again, system shows the old limit ie file(blocks) 2097152, how to make this change for all users and permanent and please also confirm that filesize 4194304 blocks means 2GB or do I need some other figure.

Thanks in advance.
# 2  
Depending on your OS, the solution will vary, for example on RH like distros you can set this in /etc/security/limits.conf
# 3  
$uname -a
UnixWare unix1 5 7.1.1 i386 x86at SCO UNIX_SVR5

# 4  
Try the following:
sadm -Fvxfs -o largefiles /test1       <----test1 is a mounted FS
cd /etc/conf/bin
#display current values 
./idtune -g HFSZLIM
./idtune -g SFSZLIM
#Set the kernel parameter for filesize limit to unlimited
./idbuild -B                           <----Rebuild the kernel
shutdown -g0 -y -i6                    <----Reboot the system


Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #719
Difficulty: Medium
Alan Minsky wrote the book Artificial Neural Networks, attacking the work of Frank Rosenblatt, which became the foundational work in the analysis of artificial intelligence applications in machine learning.
True or False?

10 More Discussions You Might Find Interesting

1. AIX

How to make NFS4 mount permanent ?

Hello, I'm able to mount NFSv3 shares permanently (/etc/filesystems) via smitty nfs. />lsfs -a Name Nodename Mount Pt VFS Size Options Auto Accounting /dev/hd4 -- / jfs2 2097152 -- yes no /dev/hd1 -- ... (5 Replies)
Discussion started by: System Admin 77
5 Replies

2. Shell Programming and Scripting

Add character to specific columns using sed or awk and make it a permanent change

Hi, I am writing a shell script where I want that # should be added in all those lines as the first character where the pattern matches. file has lot of functions defined #!/bin/bash fn a { beautiful evening sunny day } fn b { } fn c { hello world .its a beautiful day ... (12 Replies)
Discussion started by: ashima jain
12 Replies

3. AIX

Chdev hostname change is not permanent

Dear Gurus, I have an AIX 7.1 box whose hostname is set to (FQDN) and I'm trying to change it to turtle. I'm using the below command for this: chdev -l inet0 -a hostname=turtle On running this, the hostname changes to turtle but once i reboot the machine, FQDN is back. ... (6 Replies)
Discussion started by: pocodot
6 Replies

4. UNIX for Dummies Questions & Answers

Will authconfig make permanent change or lost after reboot?

Hi, I made following configuration to create user directory: # authconfig --enablemkhomedir --update But the directory is created as permission 755, I'd like to modify the script to change directory access permission to 700, where is the script which copies /etc/skel to /home... (0 Replies)
Discussion started by: hce
0 Replies

5. Solaris

how to make IP address permanent.

Greetings, I am using solaris10 x86 OS. I configured IP address using the command. >ifconfig e1000g0 plumb >ifconfig e1000g0 up How to make this configured IP as permanent.. to solaris os. (2 Replies)
Discussion started by: bhargav90
2 Replies

6. HP-UX

set permanent ulimit

Hi all I have a request from user to change the file descriptors limit to 8192. The current setting are: root@xxxxx:(wmdev)> ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) 1048576 stack(kbytes) 131072 memory(kbytes) unlimited... (3 Replies)
Discussion started by: hedkandi
3 Replies

7. Solaris

Process to make changed MAC address permanent

Hi If suppose there is a MAC address of NIC port. I have change the MAC address through following command # ifconfig hme0 ether The change MAC address will be there till reboot. Now I would like to know how to make the change MAC address permanent. I believe that... (1 Reply)
Discussion started by: amity
1 Replies

8. Shell Programming and Scripting

How to make Environment Variable Permanent ??

How can i set a environment variable in unix shell ?? I can set it using setenv or export but when i close & open the terminal again i couldn't see that environment variable, how can i make that change permanent ?? (1 Reply)
Discussion started by: chaditya
1 Replies

9. Solaris

how do i make a route entry permanent in the routing table on solaris 8?

how do I make sure that the entry in the routing table on Solaris 8 stay permanent after rebooting the server. For example route add -netmask Each time the server reboots the entry disappears when using the command netstat -nr (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

10. UNIX for Dummies Questions & Answers

permanent change in file

Hi! i want to replace ; by ok in a file as below test1(filename) containt:- Hi i am kaushlesh; i am new to Unix. i want permanent change in the file like below:- Hi i am kaushlesh ok i am new to unix How i will complite this..? (2 Replies)
Discussion started by: kaushelsh168
2 Replies

Featured Tech Videos