Skip to content

Fav Bash Cmds

Description

My Fav and Freq-Use Bash Cmd Ref

Network

Info

hostname -I  # IP addy

Add Local Ntwk Hosts

cat ~/.dotfiles-prov/etc/hosts | sudo tee -a /etc/hosts

File System

Append to File Owned by Root

cat some-file | sudo tee -a root-owned-file
echo "some text" | sudo tee -a root-owned-file

Processes

$ fubar|grep -v "grep" fubar # Don't incl grep ps

Comments