Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8762663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:35:19+00:00 2026-06-13T15:35:19+00:00

To my understanding is that, in Windows, the command line parameters are saved in

  • 0

To my understanding is that, in Windows, the command line parameters are saved in the Process Environment Block.

1) How are they stored in Unix-like systems?

2) In what format/structure are they saved there? Does this concept have a common/general name?

In most languages, the command line arguments are already available in something similar to an array.

3) What parses them into that, and when?

(For example in case of a C program on Windows; other languages and platforms are welcome, too.)

4) How is the data in the PEB related to the data in the “array”?

5) What constrains (eg. max. size, ro, etc.), if any, are in effect to command line arguments, what this is dependent on, what stores this information and how (by what) is it put into effect?

6) Does a shell like Bash (with readline) intend to do more than helping a human user enter arguments in a more convenient way? Ie. do shells generally have some more “active” role in handling command line arguments?

7) How are pipes (in command line) related to command line arguments?

8) Any other information worth mentioning on this?

(Of course please correct me if the question has false assumptions or is not correct.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:35:20+00:00Added an answer on June 13, 2026 at 3:35 pm

    1) They are stored on the stack, which is prepared by the kernel.

    2) There is a copy in the kernel and a copy on the stack in the user space. In user space, it’s a simple array of pointers which all points to null terminated strings. It’s can’t be simpler than this. The kernel’s copy is for information purpose. i.e. used in /proc. It’s truncated if it’s too long (not very sure about this).

    3) When you type command in shell, the shell parses it. When you call system(), libc parses it. When you call execve, you parsed it before calling. In any case, the kernel doesn’t parse it.

    5) The size of the stack limits it. ulimit -a

    7) Pipe and redirection are not part of cmdline arg. The parser deals with this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My understanding is that on Windows systems in XP, Vista, and Win7, and on
Looking to run a windows command line that will take the file name and
I have a client mysql command line running on Windows and I'm accessing a
I'm creating a process on Windows from Java. My problem is that this process
This shakes my understanding of computers and operating systems on a level that makes
I've got a c# WINDOWS Application that is multi-threaded. It is my understanding that
From my understanding, the soft keyboard is actually a dialog window that underlies all
Understanding that I should probably just dig into the source to come up with
It is my understanding that two unequal objects can have the same hashcode. How
It's my understanding that in Spring, all objects are treated by default as singletons.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.