Archive For The “bash” Category

bash command reuse

By |

When you get tired of typing the same argument over and over Alt + . cycles through previous args On the command line you can use substitutions like these > echo 1 2 3 4 # reuse the 3rd argument of previous command > echo !:3 > ls -l /path/to/really/long/dir # last command line argument…

Read more »

push and pop your way around the shell

By |

On the bash shell, it’s helpful for me have a list of directories at my disposal. That way I can easily jump from one directory to another without having to type it all in. Even with tab completion, that’s a pain. Hence pushd. pushd is not well documented, but basically you can push onto a…

Read more »