file


Launching actions on file or directory events using incron

The incron service is working in a similar way than the cron daemon. The difference is that you can use incron to monitor files or directories and launch specific actions on different events (for example if a new file is created or a file is saved). A practical example: You could use incron to restart […]


Finding files and directories with find

The tool find is integrated in every current linux distribution normally, so no need to install. Here are some helpful commands for daily usage: Find all files (-type f) named test.txt: find /home -name "test.txt" -type f Find all folders (-type d) named testdir below /home: find /home -name "testdir" -type d Find all links (-type l), […]


The file /etc/mtab explained

All mounted drives on your system with their options are listed in the file /etc/mtab. This file is automatically generated and updated. The options in the right order: Drive Mount point File system Options Dump Check An example: dev/sda2 / ext3 rw,errors=remount-ro 0 0 tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0 proc /proc proc rw,noexec,nosuid,nodev 0 […]