Bash Shell For Working

Settings rc files

# .zshrc, .bashrc
$ cat .zshrc

# add identify key to ssh client
ssh-add ~/.ssh/ntnhaatj >/dev/null 2>&1

# alias to search service logs
alias s=journalclt | grep ssh

vim

Display

Editing

Searching

Windows

Useful Unix commands for ETL pipeline

awk

# output all USER, PID of processes
$ ps aux | awk '{print $1,$2}'

uniq combine with sort

$ ps aux | \
    awk '{print $1}' | \    # get the first column from stdin
    sort | \                # sort alphabetically
    uniq -c                 # count two adjacent lines are the same
Tags: work  unix