bind '"<ctrl+v><F2>":"ps aux\n"' <F2>: root 1826 0.0 0.3 116536 3400 pts/0 Ss 16:41 0:02 -bash chrony 1952 0.0 0.1 24728 1476 ? S 17:14 0:00 /usr/sbin/chronyd root 6543 0.0 0.0 0 0 ? R 19:38 0:00 [kworker/0:3] root 6560 0.0 0.0 0 0 ? S 19:46 0:00 [kworker/0:0] root 6572 0.0 0.0 0 0 ? S 19:51 0:00 [kworker/0:1] root 6574 0.0 0.0 0 0 ? S 19:55 0:00 [kworker/0:2] root 6575 0.0 0.1 123372 1388 pts/0 R+ 19:57 0:00 ps aux ...
the -x option is for binding to a shell command
Now type Ctrl-l and it will list all files
Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?
You must be signed in to comment.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: