Skip to content

  • Welcome!
  • Courses
  • Login
  • Sign Up

Tag: featured

How to empty a large file quickly?

May 11, 2020May 12, 2020 by GET, posted in Linux

Deleting the contents of a large file is a similar task. All we need to do is utilize the /dev/null and direct it’s contents to the large file.

The following command delete all the contents of the file largefile.img

cat /dev/null > largefile.img 

Tagged featured
Website Powered by WordPress.com.
  • Subscribe Subscribed
    • blog.codinggears.io
    • Already have a WordPress.com account? Log in now.
    • blog.codinggears.io
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar