Results 1 to 2 of 2

Thread: Difference between sudo and sudo bash (or root terminal)?

  1. #1
    Join Date
    Jun 2012
    Beans
    310

    Difference between sudo and sudo bash (or root terminal)?

    I was wandering what are the actual differences between using sudo or sudo bash (or the root terminal):I was under the assumption that sudo had all the privileges of root but for a short period of time,so that running a command by either using sudo,or sudo bash,or opening a root terminal would be the same as far as that particular command goes-well,I've just recently found out that a command like

    Code:
    echo 1 > /sys/device/sd$/delete
    only works with sudo bash or in a root terminal,but not with plain sudo:why is that? What is the difference?

  2. #2
    Join Date
    Apr 2007
    Location
    Brussels, Belgium
    Beans
    271
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Difference between sudo and sudo bash (or root terminal)?

    You can find a discussion here: http://askubuntu.com/questions/20578...edirect-output but in essence sudo works on echo only and not on the redirection. If you have a root shell it works on complete environment.

Tags for this Thread

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
  •