Cool Terminal Tools
fkill-cli
This terminal gui helps you kill apllications and free up ports easily.
You can use an interactive gui to select the application you want to kill or provide an argument.
Previously i had to use something like this to find the pid of the program that uses a port.
1 | port=8080 |
Now i can use a single program to browse programs or free up ports.
1 | # Kill the process that uses port 8080 |
at
This program lets you time basically anything.
Typically you would use it like this:
1 | echo "script.sh" | at now + 1 hour |
With notify send i created a small reminder script.
1 |
|
fzf
Command line fuzzy finder.
This provides a selectable, searchable list for anything.
Usage:
1 | fd -t f | fzf |
By default it seems verbose to type out but you can set pretty advanced default config that works most of the time.
I have placed this in my fish config.
1 | # Show the contents of the files and color the output with coderay |
You can do the same in your .bashrc.
With these settings fireing up the fzf command shows this and searches downward the current directory.
With the -m flag you can select multiple files with the tab button end send the selected paths to stdout.
Some exapmle usages.
1 | # Select commands from your history to create a script |
fd
I think it has a much nicer syntax then the default find. It supposed to be faster as well.
1 | fd -t f # Find files recursively |
Previous commands and arguments
This is a really cool thread that shows how the reuse previous commands and arguments.
1 | !! - Previous line |
An other nice trick is that you can also specify a command number from history and reapply it.
1 | !3313 |
Pure bash bible
This is a really cool list of functions and best practices for writing bash scripts.