The tag has no wiki summary.

learn more… | top users | synonyms

10
votes
5answers
8k views

How to limit log file size using >>

How can I limit the size of a log file written with >> to 200MB? $ run_program >> myprogram.log
6
votes
3answers
4k views

How can I limit downloaded file size in wget?

I want to use wget (from a php script) to download image files, but don't want to download files over a certain size. Can I limit file size with wget? If not, what is a better way?
3
votes
2answers
2k views

How to resize an IMG file's partition info?

I made an ISO this way: sudo partimage save /dev/sdc1 /media/56AE8240AE82191F/Backup/xfcefat.iso The resulting iso file is very small but when mounted I see that it has correctly preserved the ...
3
votes
4answers
1k views

How to get size of a block special file?

I need to be able to determine the size of a block special file. For example, given /dev/sda, I need a command that will provide the size of the device. (By size I mean capacity, since this is a ...
4
votes
3answers
2k views

In SciTe (Scintilla), how can I create Syntax-Highlighting for my own custom language?

I want to create a custom Language, with its own custom Syntax Highlighting. Notepad++ (a Windows SciTe/Scintilla based Text-editor), allowed me to create a custom "Language", and now, in Linux, I ...
9
votes
5answers
5k views

Keep log file size fixed without logrotate

Is there any way to keep file size of log file fixed without rotating it by a new empty file and deleting (or archiving) the old file. For example, if I set log file maximum size to 1MB, after the ...
28
votes
3answers
3k views

What does size of a directory mean in output of 'ls -l' command?

What does size of a directory mean in output of ls -l command?
44
votes
14answers
32k views

Determine the size of a block device

How can I find out the size of a block device, such as /dev/sda? Running ls -l gives no useful information.