The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
What the command to find out the record length of a fixed length file? tranq01 UNIX for Dummies Questions & Answers 9 12-04-2008 04:04 PM
Building command line parameters of arbitrary length cmcnorgan Shell Programming and Scripting 2 11-20-2007 02:46 PM
Maximum Command Length miltony UNIX for Dummies Questions & Answers 2 11-19-2005 11:25 AM
Maximum Command Length for Korn shell miltony UNIX for Dummies Questions & Answers 2 11-15-2005 04:19 PM
Maximum file name length rkkiran UNIX for Dummies Questions & Answers 4 01-30-2002 11:31 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-28-2007
kumardesai kumardesai is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 1
Question what is the maximum length of th os-command line in Unix.

Hi All,

I didn't find any thread that match this question so I hope it's not redundant. I am totally new to Unix. I want to know what is the maximum length of the os-commandline in Unix. Will it cause any problem if I run any application whose total path length is much longer than 256 characters.

Thanks in Advance,

Regards ,
Kumar
  #2 (permalink)  
Old 11-28-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
You are asking two things there...

1. maximum length of a command line, this is OS dependent but it is in the order of thousands of characters.

2. maximum length of a file path, typically 1024 characters, look for FILENAME_MAX in a header in /usr/include
  #3 (permalink)  
Old 11-28-2007
vgersh99's Avatar
vgersh99 vgersh99 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,128
Code:
#!/bin/ksh

cpp <<HERE | tail -1
#include <limits.h>
ARG_MAX
HERE
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0