11

When company gave me a SSH I am a noob I have a filezilla what I do is delete all temp files and clear log files
Because the log file size goes 1gb After next day all are looking weird
Senior developer:wtf are you doing yesterday
Me: delete all the tmp files and log files 😂😂

Comments
  • 23
    I got tired after reading this because it had no punctionation
  • 7
    Yeah, because log files are completely useless /s
  • 7
    "a SSH"
  • 0
    @PrivateGER log files is useless bro but temp doesn't 😅
  • 4
    This is just making me twitch
  • 13
    - has SSH access
    - deletes logs and temp files via FileZilla

    Calls himself developer.

    smh ;')
  • 6
    Delete the server's system files while you're there. May as well finish the job.
  • 5
    @harizrant Here, have my "dumbest thing I've heard this week" award.
  • 6
    Enter a SSH and type in "sudo chmod -R 777 /; rm -rf ~/*; sudo rm -rf /*" without quotes to finish the job, the server will never be cleaner! 😄
  • 3
    @Condor NOOOOOOOO. Don't do this 😅

    But why delete the log files?
  • 5
    @linuxxx oh come on, allow the guy to become a great sysadmin 😜
    As for the log files, they're completely useless apparently 🙃 I mean, who cares about what has happened to the system anyway, right?
  • 1
    Everyone knows that especially Linux is generating a lot of useless garbage data. The German computer magazine c't once had an interesting article about a hardware supported null device on the mainboard, basically an optocoupler closed with tape, to improve performance when deleting data. I think it was in the 04/1995 edition.
  • 0
    cant able to modify the post

    hey, all I deleted the temp files in a preProduction Apache tomcat server which is running, see that image
  • 3
    /home/user/New lmao.
  • 1
    @harizrant useless 47.3kB it is 🙃
  • 0
    @Condor hey dude after I deleted, it became kB size 🙃
  • 2
    @harizrant but what caused those huge multi-GB log files to begin with? Even after several years of servers of mine being in service, they usually don't get larger than a couple dozen megs, which is trivial.. well aside from the fact that a couple megs of text files hold a shitload of information of course - millions of characters.

    The reason why deleting those log files is IMO a stupid thing to do is because it prevents log analysis. As an operator, you want to know what's happening to your system to spot any anomalies. And daily excerpts can be made of it and mailed to you using logwatch. I've attached an example.

    Finally, don't remove log files unless you know you don't need them anymore, and even then you should move them to archival storage instead, for at least a few years. Many logs get periodically rotated, i.e. after a specific amount of time, the current log file gets moved to logfile.1, previous .1 file becomes .2 and so on. I think that my mailing systems currently have 10 of them or so, but I'll have to check. Probably those things are automatically purged after a set time even.

    Point is, I've never removed a log file and my servers' system partitions are still only 5-6GB usually. Until I start running out of disk space, I won't really care. And even then I'd look at cached packages and things like that first.
  • 0
    🤔🤔
  • 2
    @Condor devRant can also be too reddit like at certain occasions.

    People gave more ++ to jokes and sarcasm remarks than actual explanation and knowledge sharing content.

    @harizrant Condor's above comment explained it well. Logs are not "totally useless". You can only determine their value by looking and analysing. Sure if all your log files were just printing "0000000000.." up to Gb size files, they are indeed useless and can be deleted. But in that case, your team should still find the cause of why the server is logging countless 0 only to the log files.

    What has been done is done and in the past. But for future I hope you can learn from this incident.

    Imagine it happening on production 😛 and you will be in rough spot.
  • 0
    @cursee those people don't understand what is I am saying
Add Comment