Skip to content

Instantly share code, notes, and snippets.

@tejastank
Created August 24, 2024 11:46
Show Gist options
  • Save tejastank/ef37b97ca05f240b09115bc228d5e598 to your computer and use it in GitHub Desktop.
Save tejastank/ef37b97ca05f240b09115bc228d5e598 to your computer and use it in GitHub Desktop.

Revisions

  1. tejastank created this gist Aug 24, 2024.
    7 changes: 7 additions & 0 deletions clear.all.logs.linux.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    for CLEAN in $(find /var/log/ -type f)
    do
    cp /dev/null $CLEAN
    done


    #best way to just clear, sometime delete may crash some software