Bash

Table of Contents

Introduction

Basics

Functions

Intermediary

Advanced

CLI utils

percol

https://github.com/mooz/percol

git branch -D $(git branch -l | percol)

rm

Use this command with care.

tcpdump

tcpdump -s0 -p -A port 8088
tcpdump -w capture.pcap -A port 8088

tree

tree -if src/docs
tree -ifa src/docs / grep order
grep -rin "money" --include *sql ./src/main

Miscellaneous

Getting the directory of a script

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

See https://stackoverflow.com/questions/59895

SearchImpressum