[root@DESKTOP-54SBBUS ~]# lsblk
sdc 8:32 1 1.9G 0 disk
└─sdc1 8:33 1 1.6G 0 part /run/media/student/disk
[root@DESKTOP-54SBBUS ~]# mkdir /mnt/usb01
[root@DESKTOP-54SBBUS ~]# mount /dev/sdc1 /mnt/usb01/
[root@DESKTOP-54SBBUS ~]# lsblk
sdc 8:32 1 1.9G 0 disk
└─sdc1 8:33 1 1.6G 0 part /mnt/usb01
#df 顯示單位爲kb [顯示區塊大小、已用、可用%]
[root@DESKTOP-54SBBUS ~]# df /mnt/usb01/
檔案系統 1K-區段 已用 可用 已用% 掛載點
/dev/sdc1 1691524 1072 1690452 1% /mnt/usb01
#df -h 顯示單位讓你看得懂
[root@DESKTOP-54SBBUS ~]# df -h /mnt/usb01/
檔案系統 容量 已用 可用 已用% 掛載點
/dev/sdc1 1.7G 1.1M 1.7G 1% /mnt/usb01
#du 顯示單位kb [檔案大小、路徑]
[root@DESKTOP-54SBBUS ~]# du /mnt/usb01/
12 /mnt/usb01/System Volume Information
1052 /mnt/usb01/BOOT
1072 /mnt/usb01/
#du -h 顯示單位讓你看得懂
[root@DESKTOP-54SBBUS ~]# du -h /mnt/usb01/
12K /mnt/usb01/System Volume Information
1.1M /mnt/usb01/BOOT
1.1M /mnt/usb01/
+++++++++++++++++++
#atime 上次讀取時間
#mtime 檔案內容修改時間
#ctime uid gid 權限修改時間
atime -1 (過去24小時之內)被讀過的檔案
mtime
ctime
[root@workstation ~]# stat anaconda-ks.cfg
File: anaconda-ks.cfg
Size: 6947 Blocks: 16 IO Block: 4096 regular file
Device: fc01h/64513d Inode: 4318232 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Context: system_u:object_r:admin_home_t:s0
Access: 2019-04-04 16:50:04.418000000 +0800
Modify: 2019-04-04 16:50:04.477000000 +0800
Change: 2019-04-04 16:50:04.477000000 +0800
Birth: -
#60分鐘內
[root@workstation ~]# find / -user student -mmin -60
#60分鐘前
[root@workstation ~]# find / -user student -mmin +60
#過去24小時
[root@workstation ~]# find / -user student -mtime -1
atime
amin
ctime
cmin
[root@workstation ~]# mkdir /srv/doc
[root@workstation ~]# cp $(find / -user student -type f) /srv/doc
#權限
find /home -perm /442
#find -size
k
M
G
#檔案大小超過10G
find -size +10G
#檔案大小小於10K
find -size -10k
#檔案大小等於10M
find -size 10M
---------------------------------------------------------
#-type
#-type -f 檔案
#-type -d 目錄
#-type -l 軟連結
#-type -b 區塊 /dev/sda
#找到軟連結大於1檔案
find / -type f -links +1