Sunday 13 September 2020

HOW to fill File system Full ?

 Most destructed command 


cat /dev/zero > /Filesystem_mountpoint/file_name

example:-

[root@rhel1 ~]# df -h /mnt

Filesystem               Size  Used Avail Use% Mounted on

/dev/mapper/testvg-vol1  197M   11M  187M   6% /mnt

[root@rhel1 ~]#

[root@rhel1 ~]# cat /dev/zero > /mnt/crash_file

cat: write error: No space left on device

[root@rhel1 ~]#

[root@rhel1 ~]#

[root@rhel1 ~]# df -h /mnt

Filesystem               Size  Used Avail Use% Mounted on

/dev/mapper/testvg-vol1  197M  197M   68K 100% /mnt

[root@rhel1 ~]#


No comments:

Post a Comment