$ bind '"\e[24~"':"\"ps -elF;df -h;free -mt;netstat -lnpt;who -a\C-m"""
Command binds a set of commands to the F12 key.
Feel free to alter the dashboard according to your own needs.
How to find the key codes?
Type
read
Then press the desired key (example: F5)
^[[15~
Try
bind '"\e[15~"':"\"ssh su@ip-address\C-m"""
or
bind '"\e[16~"':"\"apachectl -k restart\C-m"""
(by Neo23x0)by David Winterbottom (codeinthehole.com)
0sem comentários ainda