Run application through terminal

Discussion in 'General Linux' started by shaiang, Mar 19, 2012.

  1. shaiang

    shaiang New Member

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I have a little question.


    When I run application through the terminal (eg: 'sudo firefox'),
    it takes more memory than running it directly?
  2. KenJackson

    KenJackson Active Member

    Messages:
    129
    Likes Received:
    28
    Trophy Points:
    28
    Why would anyone ever run a browser like firefox as root (with sudo)??
    I can't think of a reason, but there are lots of security reasons to not do it.

    As for your question, I don't think so. Or if there is, it's only a few bytes for an extra copy of the environment.

    I start most things from the command line. In fact, I have a little script name ff which I use to start firefox:
    Code:
    #!/bin/sh
    exec /usr/bin/firefox "$@" &>/dev/null &
    shaiang likes this.
  3. shaiang

    shaiang New Member

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Thank you for your reply,probably it was a bad example.
    My question has nothing to do with running firefox with sudo, i never doing it.
    Actually i'm doing the same as you do, little scripts that run applications like firefox, eclipse...
    The reason i asked this is, lately my computer's running slow and i thought it might be the reason for that.

    10X.:)

Share This Page