Skip to content

Instantly share code, notes, and snippets.

@sudosingh
sudosingh / find.sh
Created June 6, 2020 00:21 — forked from gr1ev0us/find.sh
Cheatsheet for find linux
# List of cheatsheet for linux find.
# Taken from here http://alvinalexander.com/unix/edu/examples/find.shtml
# basic 'find file' commands
# --------------------------
find / -name foo.txt -type f -print # full command
find / -name foo.txt -type f # -print isn't necessary
find / -name foo.txt # don't have to specify "type==file"
find . -name foo.txt # search under the current dir
find . -name "foo.*" # wildcard
@sudosingh
sudosingh / linux_tools.md
Created June 6, 2020 00:21 — forked from crittelmeyer/linux_tools.md
linux tools cheatsheet

Linux tools to know

Built-in Mac OS tools

  • ls - list directory contents
  • wc - word, line, character, and byte count
  • cp - copy files
  • mv - move files
  • rm - remove directory entries
  • chmod - change file modes or Access Control Lists
  • chown - change file owner and group