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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:41:34+00:00 2026-05-28T02:41:34+00:00

As i have a serous sever performance warning with installing drupal-commons (this is a

  • 0

As i have a serous sever performance warning with installing drupal-commons (this is a installation-profile) i now want to reduce the server load.
Why – i get a message when trying to install drupal commons: Too-many-files-open it says!
Well Drupal & modules (ab)uses too many files! 50,000 maximum files and maybe 5000 directories is their goal and that si what they only backup so its in
So my question: How can i get rid of all those silly translation files or whatever for tiny miny parts of info and
unnecesary subdivisions; How i can get rid of them!

Background: I would expect that file_exists() during the installation(or bootstrap-cycle) is the most expensive built-in PHP function measured as total time spent calling the function for all invocations in a single request.

Well now i try to get rid of all the overhead (especially of the translation-files that are so called – po-files) – and unnecessary files that are contained in the drupal-commons 6.x-2.3 in order to get it runnning on my server.

i want to get rid all those silly translation files or whatever for tiny miny parts of info and unnecesary subdivisions;

How to search for all those .po-files recursivly – with GREP i guess ..
Note: i do not now where they are!

linux-vi17:/home/martin/web_technik/drupal/commons_3_jan_12/commons-6.x-2.3/commons-6.x-2.3 # lsCHANGELOG.txt       
   ._.htaccess          install.php        modules       themes
._CHANGELOG.txt              ._includes           INSTALL.txt        ._profiles    ._update.php
COMMONS_RELEASE_NOTES.txt    includes             ._INSTALL.txt      profiles      update.php
._COMMONS_RELEASE_NOTES.txt  ._index.php          LICENSE.txt        ._robots.txt  UPGRADE.txt
COPYRIGHT.txt                index.php            ._LICENSE.txt      robots.txt    ._UPGRADE.txt
._COPYRIGHT.txt              INSTALL.mysql.txt    MAINTAINERS.txt    ._scripts     ._xmlrpc.php
._cron.php                   ._INSTALL.mysql.txt  ._MAINTAINERS.txt  scripts       xmlrpc.php
cron.php                     INSTALL.pgsql.txt    ._misc             ._sites
.directory                   ._INSTALL.pgsql.txt  misc               sites
.htaccess                    ._install.php        ._modules          ._themes
linux-vi17:/home/martin/web_technik/drupal/commons_3_jan_12/commons-6.x-2.3/commons-6.x-2.3 # grep .po

Any way i want to remove all .po files with one bash command – is this possible

but wait: first of all – i want to find out all the files – and the ni want to list it:
– since i then know what i rease (/or remove)

Well – all language translations in Drupal are named with .po –

how to find them with GREP?
How to list them – and subsequently – how to erase them!?

update:
i did the search with

find  -type f -name "*.po"

. well i found approx 930 files.

afterwards i did remove all them with

6.x-2.3 # find -type f -name "*.po" -exec rm -f {} \;

a final serach with that code

find  -type f -name "*.po"

gave no results back so every po-file was erased!

manym many thanks for the hints.

greetings
zero

  • 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-05-28T02:41:35+00:00Added an answer on May 28, 2026 at 2:41 am

    If you want to find all files named *.po in a directory named /some/directory, you can use find:

    find /some/directory -type f -name "*.po"
    

    If you want to delete them all in a row (you do have backups, don’t you?), then append an action to this command:

    find /some/directory -type f -name "*.po" -exec rm -f {} \;
    

    Replace /some/directory with the appropriate value and you should be set.

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

Sidebar

Related Questions

I have a serious performance problem. I have a database with (related to this
I think I have a performance problem in my apache server. I have apache
I have a sql server 2000 database with some serious performance problems, as well
I have a serious problem. One of our servers crashed. Now I reinstalled the
I have this serious: I have ASP.NET page, This page contents Update panel with
Ok guys, I have a serious problem with this. I have a static class
I have been asked to monitor SQL Server (2005 & 2008) and am wondering
I have a standard php app that uses SQL Server as the back-end database.
This is my 'game server'. It's nothing serious, I thought this was a nice
I have this huge data frame that has servernames, Date, CPU, memory as the

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.