Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to change size of command line in unix Post 302129074 by ggr on Saturday 28th of July 2007 01:36:12 AM
Old 07-28-2007
Krishna,
As far I know, in POSIX UNIX, the value which control the arg length is _POSIX_ARG_MAX, whose max value can be found in /usr/include/limits.h which is 4096. In HP-UX 11 and above, this value is 2048000

Snippet from Man page of limits:
Code:
_POSIX_ARG_MAX         4096  /* max length of arguments to exec */

ARG_MAX
    Maximum length of argument to the exec functions including
 environment data. Minimum Acceptable Value: _POSIX_ARG_MAX

I am not sure how to change it, but I think you will need the kernel source and would have to change it and recompile the kernel to take effect.

Also remember that the env variables also are included in this 4096.

-GGR
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to change the GRUB command line to graphical interface?

Hi, I am i new Unix linux user. I've installed the linux 9 and i uninstall it. the first time i install the linux, the GRUB show the graphical interface. But after i reinstall it again, the GRUB change to command line. I can't boot my comp now. What should I do? And i don't know how to deal with... (1 Reply)
Discussion started by: lee_chongeu
1 Replies

2. Linux

How change GRUB command line to graphical interface?

Hi, I am i new Unix linux user. I've installed the linux 9 and i uninstall it. the first time i install the linux, the GRUB show the graphical interface. But after i reinstall it again, the GRUB change to command line. I can't boot my comp now. What should I do? And i don't know how to deal with... (4 Replies)
Discussion started by: lee_chongeu
4 Replies

3. Shell Programming and Scripting

File size limitation of unix sort command.

hi , iam trying to sort millions of records which is delimited and i cant able to use sort command more than 60 million..if i try to do so i got an message stating that "File size limit exceeded",Is there any file size limit for using sort command.. How can i solve this problem. thanks ... (7 Replies)
Discussion started by: cskumar
7 Replies

4. Shell Programming and Scripting

Command/script to find size of Unix Box ?

Please could anyone provide me the Command/script to find the size and usage of Unix box ASAP ? (6 Replies)
Discussion started by: sakthifire
6 Replies

5. Shell Programming and Scripting

Using sed command to change end of line

I am looking to change a data file into a javascript string and this is the code that I am using: sed -i '' -e 's/^/str += "/' -e 's/$/";/' file.xml The first part -e 's/^/str += "/' works as intended, but the second part -e 's/$/";/' adds an additional newline to my file, so that instead of... (3 Replies)
Discussion started by: figaro
3 Replies

6. Shell Programming and Scripting

Change filename extensions..from command line

I want to change the extensions of a folder full of files (some of the files are located in subfolders as well) to another extension, but instead of replacing the files I want the new files to be copied into a newly created folder. Here is the folder structure: /Downloads/3eb... (3 Replies)
Discussion started by: bound4h
3 Replies

7. Programming

How to get the size of the datatype passed as the command line argumet?

#include <stdio.h> int main(int argc, char *argv) { printf("%d\n", sizeof(argv)); return 0; } when I run the executable a.out after compiling the above program as: a.out short (or) a.out "long double", I expected to get the output as 2 and 12, but I am always getting the size of... (2 Replies)
Discussion started by: royalibrahim
2 Replies

8. Shell Programming and Scripting

one line command to change mode only if necessary

hi, sorry for posting this for a quick answer. Is there a one line command to change permissions on files in a directory to a given mode (say 554) and only for those files that do not already have that mode? Running chmod updates the last access/modified timestamp on the files, and i want to... (11 Replies)
Discussion started by: ysrini
11 Replies

9. UNIX for Dummies Questions & Answers

Looking for command line to find dirs based on size and date

Hi, My first time on this site, please excuse me if I've come to the wrong forum. I'm fairly new to Unix/Linux and hoping you can help me out. I'm looking for a command line that will return a list of directories that are larger than 50M and older than 2 days. I thought it may be... (6 Replies)
Discussion started by: Wisconsingal
6 Replies

10. OS X (Apple)

Change Name of Bluetooth Device from Command Line in macOS

Mac Version 10.15.2 (macOS Catalina) Does anyone know how to change the name of a connected bluetooth device from the command line on macOS? I am having trouble with various bluetooth devices which I cannot get the "rename" option in the GUI to "save" properly and so I cannot rename a few... (0 Replies)
Discussion started by: Neo
0 Replies
limits(5)							File Formats Manual							 limits(5)

Name
       limits - header files for implementation-specific constants

Syntax
       #include <limits.h>
       #include <float.h>

Description
       The  header  file  <limits.h> specifies the sizes of integral types as required by the proposed ANSI C standard.  The header file <float.h>
       specifies the characteristics of floating types as required by the proposed ANSI C standard.  The constants that refer to long doubles that
       should appear in <float.h> are not specified because RISC does not implement long doubles.

       The file <limits.h> contains the following:
       #define	CHAR_BIT  8	    /* # of bits in a `char'		  */
       #define	SCHAR_MIN (-128)    /* min integer value of a `signed	  */
				    /* char'				  */
       #define	SCHAR_MAX (+127)    /* max integer value of a `signed	  */
				    /* char'				  */
       #define	UCHAR_MAX 255	    /* max integer value of `unsigned	  */
				    /* char'				  */
       #define	CHAR_MIN  (-128)    /* min integer value of a `char'	  */
       #define	CHAR_MAX  (+127)    /* max integer value of a `char'	  */
       #define	SHRT_MIN  (-32768)  /* min decimal value of a `short'	  */
       #define	SHRT_MAX  (+32767)  /* max decimal value of a `short'	  */
       #define	USHRT_MAX 65535     /* max decimal value of `unsigned	  */
				    /* short'				  */
       #define	INT_MIN   (-2147483648) /* min decimal value of an `int'  */
       #define	INT_MAX   (+2147483647) /* max decimal value of a `int'   */
       #define	UINT_MAX  4294967295  /* max decimal value of `unsigned   */
				      /* int'				  */
       #define	LONG_MIN  (-2147483648) /* min decimal value of a `long'  */
       #define	LONG_MAX  (+2147483647) /* max decimal value of a `long'  */
       #define	ULONG_MAX 4294967295  /* max decimal value of `unsigned   */
				      /* long'				  */
       #define	USI_MAX  4294967295    /* max decimal value of `unsigned' */
       #define	WORD_BIT   32		 /* # of bits in a ``word'' or	  */
					 /* `int'			  */
       #define CHILD_MAX       25	/* max # of processes per user id */
       #define CLK_TCK 60		/* # of clock ticks per second	  */
       #define LOCK_MAX    0   */ max # of entries in system		  */
			      /* lock table				  */
       #define LINK_MAX        32766	/* max # of links to a single	  */
					/* file 			  */
       #define LONG_BIT        32	/* # of bits in a "long" (X/OPEN) */
       #define NAME_MAX        255  /* max # of characters in a file name */
       #define NGROUPS_MAX     32	       /* max # of groups	  */
       #define MAX_INPUT       256	 /* max # of bytes in terminal	  */
					 /* input queue 		  */
       #define MAX_CANON       256	 /* max # of bytes in term canon  */
					 /* input line			  */
       #define MAX_CHAR        256	 /* max # of bytes in term canon  */
					 /* input line (X/OPEN) 	  */
       #define OPEN_MAX        64	/* max # of files a process can   */
					/* have open			  */
       #define PASS_MAX        8	/* max # of characters in	  */
					/* a password			  */
       #define PATH_MAX        1024	/* max # of characters in	  */
					/* a path name			  */
       #define PID_MAX	       30000	/* max value for a process ID	  */
       #define SYSPID_MAX      2	/* max value for a system	  */
					/* proc ID (X/OPEN)		  */
       #define PIPE_BUF        4096	/* max # bytes atomic in	  */
					/* write to pipe		  */
       #define PIPE_MAX        4096	/* max # bytes written to a	  */
					/* pipe in a write		  */

       #define PROC_MAX        100    /* max # of simultaneous processes  */
       #define STD_BLK	       8192   /* # bytes in a physical I/O block  */
       #define SYS_NMLN        32 /* # of chars in uname-returned strings */
       #define SYS_OPEN        200 /* max # of files open on system	  */
       #define TMP_MAX 17576 /* max # of calls to tmpnam(3S) before	  */
				/* recycling of names occurs		  */
       #define UID_MAX	       32000	/* max value for a user or group  */
					/* ID				  */
       #define NZERO 20
					/* default nice value (as seen	  */
				       /* by nice(3), not intrinsically)  */
       /*
	* Internationalization constants
	*/
       #define MB_LEN_MAX      1  /* max number of bytes in a multibyte   */
				  /* character, any locale: placeholder   */
       #define NL_ARGMAX       9  /* max value of digits in calls to	  */
				  /* nl_scanf(3S) and nl_printf(3S)	  */
       #define NL_MSGMAX       32767   /* max message number		  */
       #define NL_NMAX	       2    /* max n-to-1 bytes in mapping chars  */
       #define NL_SETMAX       255     /* max set number		  */
       #define NL_TEXTMAX      256     /* max no. of bytes in a message   */
				       /* string			  */
       #define NL_LBLMAX       32767   /* max number of labels		  */
				       /* in catalogue			  */
       #define NL_LANGMAX      32      /* max number of bytes in LANG	  */
				       /* name				  */
       /*
	*      POSIX minimum values
	*
	*      These values are the MINIMUM allowable by POSIX. Actual values
	*      for ULTRIX are defined above.
	*/
       #define _POSIX_ARG_MAX	4096   /* Length of arguments for	  */
				       /* exec( )			  */
       #define _POSIX_CHILD_MAX 6      /* Number of simultaneous	  */
				       /* procs per uid 		  */
       #define _POSIX_LINK_MAX	8      /* Number of file links		  */
       #define _POSIX_MAX_CANON 255    /* Number of bytes in		  */
				       /* a terminal canon		  */
				       /* input queue			  */
       #define _POSIX_MAX_INPUT 255    /* Number of bytes		  */
				       /* for which space is		  */
				       /* guaranteed in terminal	  */
				       /* input queue			  */
       #define _POSIX_NAME_MAX	14     /* Number of bytes in a filename   */
       #define _POSIX_NGROUPS_MAX 0    /* Number of allowable		  */
				       /* supplementary group ID's	  */
       #define _POSIX_OPEN_MAX	16     /* Number of files open at one	  */
				       /* time by a given process.	  */
       #define _POSIX_PATH_MAX	255    /* Number of bytes in a pathname   */
       #define _POSIX_PIPE_BUF	512    /* Number of bytes that is	  */
				       /* guaranteed to be written	  */
				       /* atomically when writing to	  */
				       /* a pipe.			  */

       The file <limits.h> contains the following values for RISC architecture:
       #define ARG_MAX	       20480   /* max length of arguments to exec */
       #define HUGE_VAL        1.8e+308 /* infinity			  */

       The file <limits.h> contains the following value for VAX architecture:
       #define ARG_MAX	       10240   /* max length of arguments to exec */

       The file <limits.h> contains the following value for VAX D-float architecture:
       #define HUGE_VAL        1.701411834604692293e+38

       The file <limits.h> contains the following value for VAX G-float architecture:
       #define HUGE_VAL        8.9884656743115790e+307

       The file <float.h> contains the following values for RISC architecture:
       #define	FLT_RADIX  2 /* radix of exponent representation	  */
       #define	FLT_ROUNDS  1 /* addition rounds			  */
			      /* (>0 implementation-defined)		  */
       /* number of base-FLT_RADIX digits in the floating point mantissa  */
       #define	FLT_MANT_DIG  24
       #define	DBL_MANT_DIG  53
       /* minimum positive floating-point number x such that		  */
       /* 1.0 + x < > 1.0						 */
       #define	FLT_EPSILON  1.19209290e-07
       #define	DBL_EPSILON  2.2204460492503131e-16
       /* number of decimal digits of precision 			  */
       #define	FLT_DIG  6
       #define	DBL_DIG  15
       /* minimum negative integer such that FLT_RADIX raised to that	  */
       /* power minus 1 is a normalized floating point number		  */
       #define	FLT_MIN_EXP  (-125)
       #define	DBL_MIN_EXP  (-1021)
       /* minimum normalized positive floating-point number		  */
       #define	FLT_MIN  1.17549435e-38
       #define	DBL_MIN  2.2250738585072014e-308
       /* minimum negative integer such that 10 raised to		  */
       /* that power is in the range of normalized floating-point numbers */
       #define	FLT_MIN_10_EXP	(-37)
       #define	DBL_MIN_10_EXP	(-307)
       /* maximum integer such that FLT_RADIX raised to that		  */
       /* power minus 1 is a representable finite floating-point number   */
       #define	FLT_MAX_EXP  +128
       #define	DBL_MAX_EXP  +1024
       /* maximum representable finite floating-point number		  */
       #define	FLT_MAX  3.40282347e+38
       #define	DBL_MAX  1.7976931348623157e+308
       /* maximum integer such that 10 raised to that power is in	  */
       /* the range of representable finite floating-point numbers	  */
       #define	FLT_MAX_10_EXP	38
       #define	DBL_MAX_10_EXP	308

       The file <float.h> contains the following values for VAX architecture:
       #define	FLT_RADIX  2 /* radix of exponent representation	  */
       #define	FLT_ROUNDS  1 /* addition rounds			  */
			      /* (>0 implementation-defined)		  */
       #define FLT_MIN_10_EXP  (-37)
       #define DBL_MIN_10_EXP  (-307)
       #define LDBL_MIN_10_EXP

       #define FLT_MANT_DIG 24
       #define FLT_EPSILON 5.96046448e-08
       #define FLT_DIG	6
       #define FLT_MIN_EXP  (-127)
       #define FLT_MIN float  2.93873588e-39
       #define FLT_MIN_10_EXP  (-38)
       #define FLT_MAX_EXP     127
       #define FLT_MAX 1.701411733192644299e+38
       #define FLT_MAX_10_EXP  380

       The file <float.h> contains the following values for VAX D-float:
       #define DBL_MANT_DIG    56
       #define DBL_EPSILON     1.3877787807814457e-17
       #define DBL_DIG 16
       #define DBL_MIN_EXP     (-127)
       #define DBL_MIN 2.93873587705571880e-39
       #define DBL_MIN_10_EXP  (-38)
       #define DBL_MAX_EXP     127
       #define DBL_MAX 1.701411834604692293e+38
       #define DBL_MAX_10_EXP  38

       The file <float.h> contains the following values for VAX G-float (cc - Mg):
       #define DBL_MANT_DIG    53
       #define DBL_EPSILON     1.1102230246251570e-016
       #define DBL_DIG 15
       #define DBL_MIN_EXP     (-1023)
       #define DBL_MIN 5.56268464626800350e-309
       #define DBL_MIN_10_EXP  (-308)
       #define DBL_MAX_EXP     1023
       #define DBL_MAX 8.9884656743115790e+307
       #define DBL_MAX_10_EXP  307

								       RISC								 limits(5)
All times are GMT -4. The time now is 03:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy