bash Essentials
Config
nano ~/.bashrc
History
history
1970 sudo docker container inspect 44 1971 sudo docker port 44 1972 sudo docker ps
Lists out all previously run command for the current user. To rerun a previous command you can use
!1972
This would re run “sudo docker ps” from history
Show Time Stamp
Edit ~/.bashrc add the following line
HISTCONTROL=”%Y-$m-%d %T “
Search
Ctrl + r
Omit a Command from History
Add a space before the command
Loop
while true;
do
wget www.paulligocki.com &
done