Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Warning to those who copy-paste commands directly to the Terminal

  1. #21
    Join Date
    May 2005
    Beans
    276

    Exclamation Old tricks are new again: Dangerous copy & paste !!

    Copying and pasting something does not necessarily mean the user will get what they think they are getting. With a little bit of HTML magic, one can even trick unwitting web site visitors into executing shell commands without their knowledge. The trick is by no means new, but it is currently being demonstrated again on several web sites which means Linux users especially have to be careful what they copy and paste.

    In theory, the trick does work in Windows and Mac OS X as well, but on those platforms it is usually harder to get users to open a command line window and paste commands into it. For many Linux users, however, this behaviour is still a normal thing to do. Many how-to guides and documentation pages include commands such as sudo apt-get install packagename that users are expected to either duplicate manually or, the more likely approach, copy and paste into a command-line window. Most users will copy and paste such commands as that approach is more convenient to them.
    http://www.h-online.com/open/news/it...e-1842898.html

  2. #22
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Warning to those who copy-paste commands directly to the Terminal

    Merged
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  3. #23
    Join Date
    Apr 2013
    Beans
    Hidden!

    Re: Warning to those who copy-paste commands directly to the Terminal

    Thanks for the warning. I've often found myself pasting commands into the terminal and thinking "this might actually do harm" only a nanosecond afterwards.

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •