From db5c1c7e31b03aab5f0f1da2c332a00f8ceea5e3 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Thu, 25 Nov 2021 05:23:44 -0800 Subject: [PATCH] added grep -f command to linux notes --- linux_notes.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux_notes.txt b/linux_notes.txt index 5ee36d11..6386da70 100644 --- a/linux_notes.txt +++ b/linux_notes.txt @@ -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