linuxperson
asked on
tallylog file
what is tallylog file?
How is it possible to have 52G? is it real size ?
[root@log]# df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-var 4.0G 906M 2.9G 24% /var
[root@log]# ls -lh tallylog
-rw-------. 1 root root 52G Feb 17 12:20 tallylog
[root@log]# pwd
/var/log
[root@log]#
How is it possible to have 52G? is it real size ?
[root@log]# df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-var 4.0G 906M 2.9G 24% /var
[root@log]# ls -lh tallylog
-rw-------. 1 root root 52G Feb 17 12:20 tallylog
[root@log]# pwd
/var/log
[root@log]#
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use head or tail to read the first few lines or last few lines. Add the -### switch to read as many lines as you like.
The less command also allows you to look through large files quickly.
You can find out if a process has it open with the list open files command.
lsof tallylog
To keep the file size manageable you can roll this log file every day and delete or compress older files. The logrotate program can do this.