Skip Navigation

Keeping and running frequently used commands

I am currently looking for a way to easily store and run commands, usually syncing files between two deeply nested directories whenever I want.

So far I found these projects:

Other solutions:

  • Bash history using ^+r
  • Bash aliases
  • Bash functions

What do you guys use?

31

You're viewing a single thread.

31 comments
  • Obvious things I don't see mentioned:

    • Bash scripts kept in the home directory or another place that's logical for them specifically.
    • history | grep whatever (or other useful piping), though your older commands are forgotten eventually. You can mess with the values of HISTSIZE and HISTFILESIZE environment variables in your system.
You've viewed 31 comments.