Command Line Fun
Environment Variables
export ip=10.0.0.1
ip=10.0.0.1
env // all environment variables
Bash History Tricks
history
!405
!! // last command entred
[Ctrl]+r // reverse-i-search
Redirecting & Piping
wc -m < file.txt
STDIN,STDOUT,STDERR = 0,1,2
cat error.txt | wc -m > count.txt
Managing Processes
command &
Ctrl + Z ; bg // background
Ctrl + Z ; jobs ; fg %1 // forground
tail -f /log-path
Wget url //The non-interactive network downloader.
Last updated