Safely Paste Multiple Lines into Your Terminal
Wanna paste a bunch of commands in your terminal without running them immediately? Wrap them in parentheses! Just put a (
down before you paste. You're welcome. :)
Also handy for entering multiple commands that involve apt-get
, which swallows keystrokes while running.
Example
$ ( wget https://example.org/some/archive.tar.gz
tar xf archive.tar.gz
cd archive
make
sudo make install
)
Written by Justin Force
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#