skip to Main Content

I have an old dual core atom server with 4GB of RAM. I found all the git folders on the server with find / -name ".git" command and put over 600 lines of these git folders (output) in a file. Now I want to ll all those lines with ll $(<lines.txt) but I am not sure If that can crash the server.

2

Answers


  1. It will not crash the server, but it might take long depending on the number of files in those directories. If they aren’t overly full of files, it might just take a few seconds or a minute. (this is very likely).

    It will cause IO load and probably cause re-adjusting of Linux IO buffers (depending on their size and state). Both shouldn’t be a problem unless the server is under extreme and performance critical load.

    I recommend to use:

    find / -type d -name ".git" -exec ls -al {} + 
    

    or

    find / -type d -name ".git" -exec ls -alF  --group-directories-first {} +
    
    Login or Signup to reply.
  2. You can try to log it directly to a txt file.

    find / -name ".git" > output-filename.txt
    

    You can see this reference.

    Before you are going to do that :

    1. Is it a production server? (since it has a small RAM)
    2. If it is a producttion server :

      • Do not do it on your server’s productive hour (the time when peoples are using it actively)
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search