Skip to content

Instantly share code, notes, and snippets.

@DumplingSociety
Last active December 6, 2023 15:04
Show Gist options
  • Select an option

  • Save DumplingSociety/dd2dcd8f4518fdf873b4257dff8f91c8 to your computer and use it in GitHub Desktop.

Select an option

Save DumplingSociety/dd2dcd8f4518fdf873b4257dff8f91c8 to your computer and use it in GitHub Desktop.
Linux Command Cheat Sheet

grep

grep -r --include="*.h" "text_you_want_to_searh" ./ 
  • used to search text_you_want_to_searh in all *.h recursively

find

find ./ -name "core.*" -size +1G #find with size > 1G that file name starts with "core."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment