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 9227173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:00:20+00:00 2026-06-18T05:00:20+00:00

I have the following command running on cron: sudo find $VOLUME1 $VOLUME2 $VOLUME3 $VOLUME4

  • 0

I have the following command running on cron:

sudo find "$VOLUME1" "$VOLUME2" "$VOLUME3" "$VOLUME4" -type f -exec ls -lT {} + > $FILE

This command takes a couple hours to complete, as it’s running over about million files or so.

When I do the top command, it shows 14(!!) difference instances of ls running. Is this a bug in the script, or what is causing so many ls commands to be running?

  • 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-18T05:00:22+00:00Added an answer on June 18, 2026 at 5:00 am

    Because the length of the command line is limited, find cannot start a single ls instance with over a million parameters. It will instead spawn multiple ls processes with thousands of parameters each.

    The maximum command line length seems to be 2097152 on my machine, perhaps that could also be about the size of 1000000/14 filenames?

    $ getconf ARG_MAX
    2097152
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php script with the following command I am running: exec(pgrep -fl
I currently have a .command file for Mac that contains the following: for f
I'm running the below script with cron, in /etc/cron.d/mycron I have the following: */10
When running following command: bundle exec rspec spec/requests/static_pages_spec.rb i get following errors FF....... Failures:
I am running the following command in a batch file: osql -S dbname -U
I have found the following command in AWK useful in Vim :'<,'>!awk '{ print
I have the following awk command which works perfectly: awk 'BEGIN { ORS =
I have the following SQL command that I need to save as a csv
I have a setup.exe project that I run with the following command-line arguments to
I have a MySQL innodb database at 1.9GB, showed by following command. SELECT table_schema

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.