728x90
반응형
1. ls -altr 늘 보던 패턴.. 보기불편하다
-rw-------. 1 root root 0 2월 26 2016 spooler
drwxr-xr-x. 2 root root 4096 2월 26 2016 anaconda
-rw-r--r--. 1 root root 400 3월 15 2017 wpa_supplicant.log
drwx------. 2 root root 4096 2월 28 2020 ppp
drwxr-xr-x. 2 root root 4096 9월 21 2022 tuned
-rw-r--r--. 1 root root 32355 1월 1 22:04 dmesg.old
-rw-r--r--. 1 root root 32399 1월 1 22:07 dmesg
drwxr-xr-x. 21 root root 4096 1월 1 22:12 ..
-rw-r--r--. 1 root root 1184 1월 1 22:36 grubby_prune_debug
-rw-------. 1 root root 13497 1월 1 22:40 grubby
-rw-------. 1 root root 1792 1월 1 22:44 tallylog
-rw-------. 1 root root 9011853 4월 21 21:55 maillog
-rw-------. 1 root root 100270 4월 23 11:27 yum.log-20230423
-rw-------. 1 root root 0 4월 23 16:38 yum.log
drwxr-xr-x. 6 root root 4096 4월 24 03:29 .
-rw-r--r--. 1 root root 184929 4월 24 03:29 boot.log-20230424
-rw-r--r--. 1 root root 0 4월 24 03:29 boot.log
drwx------. 2 root root 4096 4월 27 21:24 audit
-rw-------. 1 root root 52928131 4월 28 01:01 cron
-rw-------. 1 root root 346343 4월 28 01:01 vsftpd.log
-rw-------. 1 root root 2585039 4월 28 01:10 messages
-rw-rw-r--. 1 root utmp 102912 4월 28 01:10 wtmp
-rw-r--r--. 1 root root 291416 4월 28 01:10 lastlog
-rw-r-----. 1 mysql mysql 1030135 4월 28 01:12 mysqld.log
-rw-------. 1 root utmp 438566016 4월 28 01:15 btmp
-rw-------. 1 root root 281635405 4월 28 01:15 fail2ban.log
-rw-------. 1 root root 550810131 4월 28 01:15 secure
[root@ log]#
2. ls -lh K M G 단위로 표시가됨
[root@ log]# ls -altrh
합계 1.3G
-rw-------. 1 root root 0 2월 26 2016 spooler
drwxr-xr-x. 2 root root 4.0K 2월 26 2016 anaconda
-rw-r--r--. 1 root root 400 3월 15 2017 wpa_supplicant.log
drwx------. 2 root root 4.0K 2월 28 2020 ppp
drwxr-xr-x. 2 root root 4.0K 9월 21 2022 tuned
-rw-r--r--. 1 root root 32K 1월 1 22:04 dmesg.old
-rw-r--r--. 1 root root 32K 1월 1 22:07 dmesg
drwxr-xr-x. 21 root root 4.0K 1월 1 22:12 ..
-rw-r--r--. 1 root root 1.2K 1월 1 22:36 grubby_prune_debug
-rw-------. 1 root root 14K 1월 1 22:40 grubby
-rw-------. 1 root root 1.8K 1월 1 22:44 tallylog
-rw-------. 1 root root 8.6M 4월 21 21:55 maillog
-rw-------. 1 root root 98K 4월 23 11:27 yum.log-20230423
-rw-------. 1 root root 0 4월 23 16:38 yum.log
drwxr-xr-x. 6 root root 4.0K 4월 24 03:29 .
-rw-r--r--. 1 root root 181K 4월 24 03:29 boot.log-20230424
-rw-r--r--. 1 root root 0 4월 24 03:29 boot.log
drwx------. 2 root root 4.0K 4월 27 21:24 audit
-rw-------. 1 root root 51M 4월 28 01:01 cron
-rw-------. 1 root root 339K 4월 28 01:01 vsftpd.log
-rw-------. 1 root root 2.5M 4월 28 01:10 messages
-rw-rw-r--. 1 root utmp 101K 4월 28 01:10 wtmp
-rw-r--r--. 1 root root 285K 4월 28 01:10 lastlog
-rw-r-----. 1 mysql mysql 1006K 4월 28 01:12 mysqld.log
-rw-------. 1 root utmp 419M 4월 28 01:15 btmp
-rw-------. 1 root root 269M 4월 28 01:15 fail2ban.log
-rw-------. 1 root root 526M 4월 28 01:15 secure
728x90
반응형
'Etc > Common' 카테고리의 다른 글
[linux] 폴더용량 확인하는 방법 (0) | 2023.08.14 |
---|---|
[Mac] 키보드 단축키를 사용하여 확대 및 축소하기 (0) | 2023.04.28 |
[linux] 파일 비우기 (0) | 2023.04.28 |
[crontab] 기본명령어 정리 (크론탭 설정) (0) | 2023.04.23 |
[crontab] 로그 확인 (0) | 2023.04.23 |