使用ncdu -x
查看了 SUSE 分区的占用,/var/log
里有好多这种
--- /var/log -------------------------------------------------------------------------------------------------
/..
23.3 MiB [###############] messages-20230218.xz
22.1 MiB [############## ] /updateTestcase-2022-12-19-08-38-53
20.6 MiB [############# ] /updateTestcase-2022-11-17-22-22-42
19.1 MiB [############ ] messages-20230217.xz
16.1 MiB [########## ] messages-20230223.xz
11.2 MiB [####### ] messages-20230220.xz
10.6 MiB [###### ] messages-20230301.xz
10.2 MiB [###### ] pk_backend_zypp-1
9.3 MiB [###### ] messages-20230222.xz
9.1 MiB [##### ] messages-20230304.xz
6.2 MiB [### ] messages-20230203.xz
3.7 MiB [## ] NetworkManager
3.0 MiB [# ] messages-20230219.xz
2.8 MiB [# ] messages-20230317.xz
2.8 MiB [# ] messages-20230221.xz
2.8 MiB [# ] messages-20230320.xz
2.6 MiB [# ] messages-20230531.xz
2.6 MiB [# ] pk_backend_zypp
2.3 MiB [# ] snapper.log
2.0 MiB [# ] messages-20230226.xz
2.0 MiB [# ] messages-20230127.xz
2.0 MiB [# ] messages-20230305.xz
message-xxxxx.xz
好像都是运行时候产生的内核信息,像这样子:
2023-01-09T19:56:03.472130+08:00 linux-lwid kwalletd5[21645]: Application ' "ksshaskpass" ' using kwallet without parent window!
2023-01-09T20:00:14.273100+08:00 linux-lwid systemd[1]: Started Timeline of Snapper Snapshots.
2023-01-09T20:00:14.350990+08:00 linux-lwid dbus-daemon[1020]: [system] Activating via systemd: service name='org.opensuse.Snapper' unit='snapperd.service' requested by ':1.93102' (uid=0 pid=6812 comm="/usr/lib/snapper/systemd-helper --timeline ")
2023-01-09T20:00:14.355036+08:00 linux-lwid systemd[1]: Starting DBus interface for snapper...
2023-01-09T20:00:14.429895+08:00 linux-lwid dbus-daemon[1020]: [system] Successfully activated service 'org.opensuse.Snapper'
2023-01-09T20:00:14.430253+08:00 linux-lwid systemd[1]: Started DBus interface for snapper.
2023-01-09T20:00:14.433546+08:00 linux-lwid systemd[1]: snapper-timeline.service: Deactivated successfully.
2023-01-09T20:01:14.438468+08:00 linux-lwid systemd[1]: snapperd.service: Deactivated successfully.
2023-01-09T20:03:35.101894+08:00 linux-lwid kwin_x11[1937]: kwin_core: XCB error: 152 (BadDamage), sequence: 36317, resource id: 18760062, major code: 143 (DAMAGE), minor code: 3 (Subtract)
2023-01-12T13:22:26.925845+08:00 linux-lwid plasmashell[22224]: ChromeMain
2023-01-12T13:22:26.926057+08:00 linux-lwid plasmashell[22224]: #12 0x7fda25e0929d __libc_start_main
2023-01-12T13:22:26.962778+08:00 linux-lwid plasmashell[22224]: #13 0x55d67f2f102a _start
2023-01-12T13:22:26.962928+08:00 linux-lwid plasmashell[22224]: r8: 0000000000000000 r9: 00007ffcbcf23550 r10: 0000000000000008 r11: 0000000000000246
2023-01-12T13:22:26.963001+08:00 linux-lwid plasmashell[22224]: r12: 00007ffcbcf237d0 r13: 0000000000001000 r14: 0000000000000000 r15: 0000000000000001
2023-01-12T13:22:26.963068+08:00 linux-lwid plasmashell[22224]: di: 0000000000000002 si: 00007ffcbcf23550 bp: 00007ffcbcf23900 bx: 00007fda193d0ec0
2023-01-12T13:22:26.963145+08:00 linux-lwid plasmashell[22224]: dx: 0000000000000000 ax: 0000000000000004 cx: 0000000000000000 sp: 00007ffcbcf23670
2023-01-12T13:22:26.963223+08:00 linux-lwid plasmashell[22224]: ip: 00007fda25e202e7 efl: 0000000000010246 cgf: 002b000000000033 erf: 0000000000000000
2023-01-12T13:22:26.963300+08:00 linux-lwid plasmashell[22224]: trp: 000000000000000d msk: 0000000000000000 cr2: 0000000000000000
只保留两三个月够了
怎么样设置让它自动删除旧的?