Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 415
  • Last Modified:

Deliberate filling up a filesystem in Linux

How do I deliberately fill space (Example 500M & also fill filesystem Full) to a file in Linux(rhel), I want this to check filesystem alert mechanism
0
aanya247
Asked:
aanya247
  • 2
2 Solutions
 
Dan CraciunIT ConsultantCommented:
head -c 100000 /dev/urandom >dummy

This will create a 100000 bytes dummy file, with random content.

HTH,
Dan
0
 
Dan CraciunIT ConsultantCommented:
or, 0-filled: dd if=/dev/zero of=dummy bs=100000 count=1
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now