Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

debian logrotate mail.log monatly

nano /etc/logrotate.conf
------------------------
# see "man logrotate" for details
# rotate log files weekly
#weekly
monthly

# keep 4 weeks worth of backlogs
#rotate 4
rotate 12

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0660 root utmp
    rotate 1
}

# system-specific logs may be configured here
Comment

PREVIOUS NEXT
Code Example
Shell :: Connected local Jupyter notebook server to Google Collab 
Shell :: How to Install and Configure doctl on Ubuntu 
Shell :: search-history termial 
Shell :: sol-merger command 
Shell :: py pip install error winerror the system cannot find the .exe.deleteme 
Shell :: formatear usb desde terminal linux 
Shell :: poetry install zsh 
Shell :: linux architecture kernel 
Shell :: add individual file to staging area in git command 
Shell :: Running shell scripts 
Shell :: gitexplorer 
Shell :: Create A File Named Index.js 
Shell :: sort filesddddd 
Shell :: replace master branch entirely with another branch 
Shell :: const git = ["branch", "commit", "push"] 
Shell :: powershell benutzer anlegen 
Shell :: pop os headphones stopped working 
Shell :: hamachi fedora 
Shell :: Linux search manual and list all pages with term 
Shell :: Recipe to merge git 
Shell :: quit ionic 
Shell :: app not installed app appears to br corrupt in android studio 
Shell :: Warning : no large blobs matching criteria found in packfiles - does the repo need to be packed? 
Shell :: mnet - git config user 
Shell :: search for css class in files in vs code 
Shell :: install ubuntu along windows not showing up , even with unallocated space 
Shell :: linux mount all fstab 
Shell :: shell How to read hidden input from terminal and pipe it to another command 
Shell :: cmd check if environment variable exists 
Shell :: merge large amount of fastq files into a single one 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =