Re: Some questions about linux administration...
- From: Florian Diesch <diesch@xxxxxxxxxxxxx>
- Date: Fri, 04 Sep 2009 17:30:55 +0200
Lukasz Matuszewski <matuszewski.lukasz@xxxxxxxxx> writes:
Write commands, which are able to do following from shell level:
A. send a signal to desired process
kill
B. find files which names are matched to desired pattern
find
C. find files whos contents are matched to desired pattern
grep
D. cut a range of characters from every line
cut
E. view last N lines from desired file
tail
F. execute desired program step by step (debug him)
gdb
File access.log from server www has reached allowed size for file
system.
1. How to set file size to 0 using shell command.
cat /dev/null > access.log
2. Write a script in whatever language ( perl, bash itp. ) checking
once a day size of the access.log file and in a circumstance that he
reached its maximum capacity ( eg 2 GB) he will set size of the file
to 0 in the simples case command - it is allowed to use cron but with
telling the how to registry it/how to run it.
logrotate
Florian
--
<http://www.florian-diesch.de/>
.
- References:
- Some questions about linux administration...
- From: Lukasz Matuszewski
- Some questions about linux administration...
- Prev by Date: Some questions about linux administration...
- Next by Date: Re: Some questions about linux administration...
- Previous by thread: Some questions about linux administration...
- Next by thread: Re: Some questions about linux administration...
- Index(es):