Useful Shell Commands

Using Secure Copy to transfer files between networks

Copy local files to remote destination:

scp file_to_copy user@destination.ip:/destination/path

Search bash history and repeat command

Sometimes I want to repeat a command that I used a while ago. Often I have to Google it which is lazy. Now using this trick I can find it in my history without having to scroll through lots of entries.

#ctrl-R
(reverse-i-search)`': search_term
#enter to bring to current line

shell

73 Words

2016-01-05 00:00 +0000