added grep -f command to linux notes

This commit is contained in:
z3rOR0ne 2021-11-25 05:23:44 -08:00
parent 571a9279cb
commit db5c1c7e31

View file

@ -61,6 +61,10 @@ umount media/usb-drive
(make sure to clear your history afterwards)
history -c
To display the differences between two different text files:
grep -f file1.txt file2.txt
To Display top five directories that use the most disk space:
du -ahx . | sort -rh | head -5