Skip to content
Nhan Le

Nhan Le

Technology Information

  • Home
  • Security
  • Blogs
  • Home
  • Security

Category: Security

INOTIFY

Posted on November 25, 2022November 25, 2022 By admin
Security

– Bước 1: Cài đặt chương trình “inotify-tools” vào máy Ubuntu hoặc Kali Linux. Sau khi cài đặt xong ta sẽ thấy xuất hiện hai chương trình con là inotifywait và inotifywatch

┌──(root㉿kali)-[~]

└─# apt install inotify-tools

– Bước 2:Thiết lập cho chương trình tăng mức xử lý file

┌──(root㉿kali)-[/proc/sys/fs/inotify]

└─# vim /etc/sysctl.conf

fs.inotify.max_queued_events = 16384

fs.inotify.max_user_instances = 1024

fs.inotify.max_user_watches = 1048576

┌──(root㉿kali)-[/proc/sys/fs/inotify]

└─# sysctl -p

fs.inotify.max_queued_events = 16384

fs.inotify.max_user_instances = 1024

fs.inotify.max_user_watches = 1048576

┌──(root㉿kali)-[/proc/sys/fs/inotify]

└─# cat max_queued_events max_user_instances max_user_watches

16384

1024

1048576

– Bước 3: Thiết lập cho chương trình đọc file. Ví dụ bên dưới là chương trình đang đọc file ở trong thư mục /tmp của máy linux

┌──(root㉿kali)-[/proc/sys/fs/inotify]

└─# inotifywait -mrq -e modify,create,delete /tmp 

-m: modify

-q: quite

-r: recursive

Recent Posts

  • Kiểm tra băng thông kết nối
  • INOTIFY
  • Docker Wireguard VPN

Recent Comments

  1. artane castle hairdressers on Kiểm tra băng thông kết nối
  2. where to buy cheap toradol price on Kiểm tra băng thông kết nối
  3. zanaflex used for on Kiểm tra băng thông kết nối
  4. periactin amazon on Kiểm tra băng thông kết nối
  5. can you buy generic ketorolac pill on Kiểm tra băng thông kết nối

Archives

  • November 2023
  • November 2022

Categories

  • Docker
  • Security
  • Uncategorized
  • VPN

  • Home
  • Security
  • Blogs

Copyright © 2025 Nhan Le.

Theme: Oceanly by ScriptsTown