# history | more
2. Поиск поистории используя Control+R
# [Press Ctrl+R from the command prompt, which will display the reverse-i-search prompt] (reverse-i-search)`red': cat /etc/redhat-release [Note: Press enter when you see your command, which will execute the command from the history] # cat /etc/redhat-release
5. Execute previous command that starts with a specific word
# !ps ps aux | grep yp root 16947 0.0 0.1 36516 1264 ? Sl 13:10 0:00 ypbind root 17503 0.0 0.0 4124 740 pts/0 S+ 19:19 0:00 grep yp
Полный список:
http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/
Комментариев нет:
Отправить комментарий