Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Automatically delete cached update packages

  1. Back To Top    #11
    Kubuntu as a Second Language
    Join Date
    Apr 2008
    Location
    Auckland, New Zealand
    Posts
    1,889
    Threads
    68
    Local Date
    Jun 6th 2020
    Local Time
    04:19 AM
    Quote Originally Posted by oshunluvr View Post
    So I clearly don't understand. Using nano as root is using nano as root, isn't it? What is the functional difference of launching "sudo nano" from setting nano as your sudo editor?
    sudoedit first makes a copy of the file, usually in /tmp, then you edit it running as yourself, then when you save if there's changes the file is copied over the root owned file.
    Regards, John Little

  2. Back To Top    #12
    Emergent AI kubicle's Avatar
    Join Date
    Dec 2005
    Posts
    4,693
    Threads
    90
    Local Date
    Jun 5th 2020
    Local Time
    07:19 PM
    Quote Originally Posted by oshunluvr View Post
    So I clearly don't understand. Using nano as root is using nano as root, isn't it? What is the functional difference of launching "sudo nano" from setting nano as your sudo editor?
    if you use sudoedit, the editor itself is not running as root. You're basically editing a tempfile with the editor running as your regular user, only the final file write opertion is performed as root (overwriting the original with the tempfile).
    More here: http://www.wingtiplabs.com/blog/post...3/13/sudoedit/

    EDIT: jlittle was quicker to it :)

  3. Back To Top    #13
    Ascendant oshunluvr's Avatar
    Join Date
    Feb 2010
    Location
    New Bern, NC USA
    Posts
    10,660
    Threads
    435
    Local Date
    Jun 5th 2020
    Local Time
    12:19 PM
    Thanks, I think I understand the reasoning. If I "sudo nano" a critical system file and the operation is interrupted, it may leave behind a partially edited file and a lock file, potentially breaking the system. Where as by using "sudoedit" the same event would leave behind nothing (my tmp is in RAM).

    I don't know why I've never encountered this advice before. Sounds like a no brainer...
    Please Read Me
    Be not the first by whom the new are tried, Nor yet the last to lay the old aside. - Alexander Pope, An Essay on Criticism, 1711

  4. Back To Top    #14
    Kubuntu Padawan Don B. Cilly's Avatar
    Join Date
    Nov 2012
    Location
    Ibiza, Spain
    Posts
    1,150
    Threads
    57
    Local Date
    Jun 5th 2020
    Local Time
    06:19 PM
    Quote Originally Posted by oshunluvr View Post
    I don't know why I've never encountered this advice before. Sounds like a no brainer...
    Until a few months ago, if you tried sudo kate, it would say:
    "Executing Kate as root is not possible. To edit files as root use: SUDO_EDITOR=kate sudoedit <file>."
    Now it just says "Executing Kate as root is not possible."
    It doesn't say "Just authenticate on save, donk", though

  5. Back To Top    #15
    Senior Member Beerislife's Avatar
    Join Date
    May 2016
    Location
    Tokyo
    Posts
    111
    Threads
    22
    Local Date
    Jun 6th 2020
    Local Time
    01:19 AM
    I don't think it has helped much. Whenever I run Bleachbit as root on my KDE neon install it cleans around 8Gb of junk. On the boss's Kubuntu 18.04 machine it cleans about 400Mb. That's a big difference!

  6. Back To Top    #16
    Kubuntu as a Second Language
    Join Date
    Mar 2013
    Posts
    1,195
    Threads
    192
    Local Date
    Jun 5th 2020
    Local Time
    04:19 PM
    Quote Originally Posted by Beerislife View Post
    I don't think it has helped much. Whenever I run Bleachbit as root on my KDE neon install it cleans around 8Gb of junk. On the boss's Kubuntu 18.04 machine it cleans about 400Mb. That's a big difference!
    Does Bleachbit provide you a list with sizes of what it will remove?
    Kubuntu 18.04 with Baloo file search and content indexing
    KDE neon 18.04 User Edition with Baloo file search and content indexing

  7. Back To Top    #17
    Senior Member Beerislife's Avatar
    Join Date
    May 2016
    Location
    Tokyo
    Posts
    111
    Threads
    22
    Local Date
    Jun 6th 2020
    Local Time
    01:19 AM
    No, it tells you how much disk space was recovered after cleaning. I will switch to Kubuntu 20.04 when it is released and wait for a newer version of Neon.

Page 2 of 2 FirstFirst 12

Posting Permissions

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