MX on Linux: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
→‎sudo: change formatting
m (→‎sudo: change formatting)
===sudo===
 
By default, a Linux user will log in as a default user with limited rights. For example, on the Raspberry Pi Operating System, there is a single default user, initially called "Pi", with their home folder that can be referenced as "~".
 
For example, the Raspberry Pi Operating System has a single default user "Pi", with their home folder that can be referenced as "~".
In the '''apt''' context here, '''sudo''' is needed for any action involving writing (such as '''install''', ''full-upgrade'', '''update''', ''autoremove''), but not for actions that just read (such as '''search''', ''show'').
 
In the '''apt''' context here, those limited rights allow use of actions that just read (such as '''search''', ''show'').
 
In the '''apt''' context hereHowever, '''sudo''' is needed for any action involving writing (such as '''install''', ''full-upgrade'', '''update''', ''autoremove''), butthe notpackage formanager actionsneeds thatadditional justrights, readand (suchwe asprefix the "apt" with '''searchsudo''', ''show'').
 
: Elsewhere on this page you might notice [[#Running any MX executable with a terminal session left open|'''cd''']] can move round the file structure (without a "sudo"), but "sudo" is used with [[# Installing/Configuring the MX service and the -service parameter|'''cp''']] as that writes a file.
 
: Novice readers should exercise caution, because using "sudo", changing folder/file ownership, adding write rights, using "sudo", and even using "-R" or "-y" flags, can all make it very easy to inadvertently do the wrong action, even perhaps delete vital folders/files.
 
: '''For technical readers only''', "sudo" is further explained later [[#su_and_sudo]]). asBriefly, giving "sudo" gives super-user (root) rights when executing the instruction that follows for actions on files that are either not in the current user's ownership, or for which wethe don'tcurrent haveuser thelacks necessary (read, write, execute) permissions.
 
===apt===
5,838

edits

Navigation menu