UNIX - Shell Script to show the max file size

March 5, 2011 at 18:10:22
Specs: Windows 7
Hello guys, I need a script that shows the maximum size you can write on a file/folder

The bash command "ulimit" is similar to this, what I need is the shell script. it should have options like "-n, -a, etc."

I do not have any knowledge about shell scripting. so please help me.

See More: UNIX - Shell Script to show the max file size

Report •

March 6, 2011 at 16:11:31
Why a shell? Why not simply use the ulimit command? On AIX for example, limits are set in the /etc/security/limits file. The ulimit command (on AIX, it is an external command in /usr/bin) provides all the information and options that you need. In order to script it on AIX, you'd need to parse the stanzas in the limits file, find the one that applies to the specific user, and then translate the attributes. Seems rather unnecessary since all that information will be output by the ulimit command itself.

I don't quite understand this question. Perhaps you could elaborate.

Report •
Related Solutions

Ask Question