Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have log file named TTY_00000000.log on my server which is of more then 2GB.
Can anyone let me know whether I can empty this file & how can I stop creation of this huge logs or minimize them in anyway?
Thanks,
Gaurav.
See this thread. Quotes:
These are a very important debugging tool for the PERC 5 controllers so
the ability to disable them is not exposed.
What you need is a simple logrotate script (Dell should have included one). Compression would save almost all the space since they are a lot of repetitive text.
cat > /etc/logrotate.d/omsa-tty <<EOF
/var/log/TTY_00000000.log {
monthly
notifempty
rotate 15
compress
}
EOF
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 11 months ago.
Improve this question
I have a folder of images.
I want to read all images and do some processing.
But next time if I run the script again, it should not consider already processed image, only new one.
What is the conventional way to do this?
You could use sqlite to store data about already know files https://docs.python.org/3/library/sqlite3.html
Later you could expanse the idea and use SQL to get bigger goals as "when it was processed" "what command you used to process"
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I would like to plot the CPU and memory usage of an application on linux vs time. What is the best way to do this?
Would greping these values out from top every 0.1s and writing them into some file work - or is there a better and easier way?
There is an easier way. All of the information displayed in top can be found in /proc/<pid>/, most of it in /proc/<pid>/stat. man proc describes the content of these files.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I need a live multi rename tool.
The one you can find in double commander, or even better total commander.
The best I could find is renameutils,
which lists all the files and let me edit them in my favorite text editor,
but nothing beats something which is designed to be specifically used to rename.
Is there such a program?
Has to be live and interactive - I have to see the edits I'm doing before hitting the "OK" key.
Has to be in the command line - ncurses, slang, shell. Just not GUI.
Edit:
It's probably doesn't belong here, but super-user:)
Answers would still be welcome.
How about RenameWand? http://renamewand.sourceforge.net/
But you indeed should have tried superuser instead: https://superuser.com/questions/25378/mass-renaming-nix-version
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to do mindmaps which are of the quality of mindmeister that you could include picture and links etc and would be able to export it reasonably well and print it.
I love X-Mind. I don't know if it does what you need, but I only use a small subset of it and still it rocks!
It has a very complete free version that never expires and doesn't contain crapware.
http://www.xmind.net/download/linux/
I prefer Freeplane but FreeMind can do the same things:
http://freemind.sourceforge.net/wiki/index.php/FreeMind_on_Linux
http://sourceforge.net/projects/freeplane/
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is there any difference at all in server load when adding new lines to a big vs. small access.log file?
What I mean is, should I delete my access.log files if they become too big or leave it. It is 6GB right now. I do not rotate.
I'm not sure about the performance difference of big or small files, but maybe you want to split them every month and compress old access-log files. For that you can use logrotate. More information in the man page
Log rotation is an important part of maintaining a server. Without it, you'r likely to fill up your disk, and then your server will behave extremely strangely, depending on the app.
Regardless of performance, you should be using logrotate or something similar.