Skip to content

Instantly share code, notes, and snippets.

@Hazem-Ben-Khalfallah
Last active August 31, 2018 14:21
Show Gist options
  • Select an option

  • Save Hazem-Ben-Khalfallah/eff1514d2981597d4802582319e2311a to your computer and use it in GitHub Desktop.

Select an option

Save Hazem-Ben-Khalfallah/eff1514d2981597d4802582319e2311a to your computer and use it in GitHub Desktop.
[remove a big file] remove a big file quickly #linux
ls -il [FILE_PATH]
sudo find [PARENT_DIRETORY] -inum [FILE_INUM] -exec rm -i {} \;
exemple:
>ls -il test.txt
1135865 -rw-r--r-- 1 user user 4525 Nov 15 2017 test.csv
>sudo find /home/user/folder -inum 1135865 -exec rm -i {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment