Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

166
Views
How does Linux terminal commands get parse?

In the terminal, or shell, on Linux machines you can type certain commands with options, flags, arguments, etc.

cd /home/user -p

and then when you run the command it get parse and something happen.

I want to make a JavaScript (NodeJS) parser that simply take a string and parse it into tokens so I can use the tokens and execute certain functions how they should execute. Sort of like how Linux shell work.

I was thinking something like this might work.

{
    name: "cd",
    flags: ["p"],
    args: ["/home/user"],
}

I never done any type of parsing. How would I go about creating my goal? Is there any better way to do it or any libraries that does this for you?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!