03-19-2008
Hi Bakunin, thanks for this, actually I know someone would answer it this way, actually what im asking is the command used using ulimit, how do I do it using ulimit command?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I know in php if you use the function filesize it will return the size of the file in bytes, but is there an easy way to get the size in MB.
Cheers (2 Replies)
Discussion started by: jmg5
2 Replies
2. UNIX for Dummies Questions & Answers
SCO UNixware 7.1.1
Hi friends.
I would like to increase my file ulimit for all users to unlimited.
ulimit -f unlimited will only affect my current shell.
How can I increase for all users, all shells ?
Thanks in advance
Suresh (1 Reply)
Discussion started by: sureshy
1 Replies
3. Shell Programming and Scripting
How do I identify if there is any content in a file?
If there is nothing in a specified file, I'd like to send an email indicating that there is nothing to report.
Any help appreciated. (3 Replies)
Discussion started by: Cameron
3 Replies
4. Shell Programming and Scripting
I want to know if there is any unix command to view the size of the file?
eg.
i have a directory letter
in this i have file a,b,c,d,e.
i just want to know the size of file d and not any other. (3 Replies)
Discussion started by: infyanurag
3 Replies
5. Shell Programming and Scripting
Hello,
I have a script that should store file size in a variable $filesize.
I don't know what is the best way to do it.
I tried
ls -lt myfile.txt | sed something >$filesize
but I don't know how to use sed to get filesize. I know that the owner of the file is root and then we have some... (6 Replies)
Discussion started by: pppswing
6 Replies
6. Red Hat
The root user runs the following
ulimit -a | grep open
and gets a result of
open files (-n) 8162
A user runs the same command and gets a result of
open files (-n) 2500
How can you set the ulimit of the user to... (2 Replies)
Discussion started by: jsanders
2 Replies
7. AIX
Morning,
Somebody can tell me in AIX 6.1 what is the different between the maxuproc (lsattr -El sys0 | grep max) and the for a user.
Example:
Oracle is limited by :
#ulimit -u
processes(per user) unlimited
But lsattr -El sys0| grep maxuproc show me :
maxuproc 16384
So... (1 Reply)
Discussion started by: bacup540
1 Replies
8. AIX
Hi,
what are the ideal/best/recommended ulimit settings for a root user in AIX?
I understand that it depends on our environment. But I would like to know...what are settings you guys use in your environment for best performance.
default:
fsize = 2097151
core = 2097151
... (8 Replies)
Discussion started by: System Admin 77
8 Replies
9. UNIX for Advanced & Expert Users
I have seen two different ways for changing the ulimit for a user in aix. Which one is better?
Option 1
edit /etc/security/limits
oracle:
fsize = -1
data = -1
stack = -1
fsize_hard = -1
nofiles = -1
nofiles_hard = -1
Option 2
... (6 Replies)
Discussion started by: cokedude
6 Replies
ulimit(2) System Calls Manual ulimit(2)
NAME
ulimit() - get and set user limits
SYNOPSIS
Remarks
The ANSI C "" construct denotes a variable length argument list whose optional [or required] members are given in the associated comment
DESCRIPTION
provides for control over process limits. Available values for cmd are:
Get the file size limit of the process.
The limit is in units of 512-byte blocks and is inherited by child processes. Files of any size can be read.
The optional second argument is not used.
Set the file size limit of the process to the value
of the optional second argument which is taken as a long. Any process can decrease this limit, but only a
process with the privilege can increase the limit. Note that the limit must be specified in units of 512-byte
blocks.
Get the maximum possible break value
(see brk(2)). Depending on system resources such as swap space, this maximum might not be attainable at a given
time. The optional second argument is not used.
Security Restrictions
Some or all of the actions associated with this system call require the privilege. Processes owned by the superuser have this privilege.
Processes owned by other users may have this privilege, depending on system configuration. See privileges(5) for more information about
privileged access on systems that support fine-grained privileges.
RETURN VALUE
Upon successful completion, a non-negative value is returned. Errors return a -1, with set to indicate the error.
ERRORS
fails if one or more of the following conditions is true.
cmd is not in the correct range.
fails and the limit is unchanged if a process
without the privilege attempts to increase its file size limit.
SEE ALSO
brk(2), write(2), privileges(5).
STANDARDS CONFORMANCE
ulimit(2)