Editing 149: Sandwich

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 4: Line 4:
 
| title    = Sandwich
 
| title    = Sandwich
 
| image    = sandwich.png
 
| image    = sandwich.png
 +
| imagesize =
 
| titletext = Proper User Policy apparently means Simon Says.
 
| titletext = Proper User Policy apparently means Simon Says.
 
}}
 
}}
  
 
==Explanation==
 
==Explanation==
On both {{w|Windows}} and {{w|UNIX}} computer systems, users can be assigned all kinds of rights, for example rights to access certain directories and files, or to execute certain commands. The ''{{w|sudo}}'' command (pronounced "sue do" or "pseudo") lets certain (authorized) UNIX users override these policies by executing the command (everything after the word "sudo" on the command line) as the root user. Root (sometimes called the superuser) has complete system powers, exempt from all access controls; it is similar to a Windows administrator, however even the powers of a Windows administrator is limited - the ''system32'' folder, for example, cannot be deleted because it is a critical part of the operating system, while there is no such restriction on UNIX - if a root user feels like (or accidentally) deletes a vital file, they are free to do so. As a result, common advice is to not use sudo unless the command in question absolutely requires it - indeed, most commands do not require such privileges.
+
On a {{w|UNIX}}-type system, users can be assigned all kinds of rights, for example access to certain directories or files, executing certain commands etcetera. The “sudo” command overrides these policies by executing the command typed behind it as if the user were an administrator (the Super User) of the system. To prohibit abuse of the command, the user must be in the "sudoers" group, and the user first must type their password before the command will be executed.
  
One very common activity for UNIX administrators is to install or configure software using the UNIX ''{{w|Make (software)|make}}'' command, e.g. <code>% '''make install'''</code>. Often this command requires administrative permissions in order to complete successfully, which in practice means the "<code>make ''this''</code>" command will fail unless it is typed as "<code>sudo make ''this''</code>" instead. However as mentioned before since most commands work just fine without sudo, along with general discouragement from using it willy-nilly, it is fairly common for people who use or administer UNIX systems to attempt a straight up <code>% make install</code> and have it fail. They then need to repeat the command with "sudo," whereupon the computer responds obediently, and everything works smoothly.
+
In the comic, [[Cueball]] is demanding a sandwich from a friend. Not being properly asked, the friend denies the request. Cueball then (ab)uses the sudo command on the friend, which then has no choice but to go and make the sandwich, because Cueball has all rights. The image text references this abuse, noting that an administrator should set a proper use of the command in order to control his system.
  
[[Cueball]] is demanding a sandwich from his friend. Not being properly asked, the friend denies the request. Cueball then (ab)uses the sudo command on the friend, who then has no choice but to go and make the sandwich, and now does so without complaint, because Cueball has all the rights. For anyone versed in installing system software with the <code>make</code> command, this exchange is intensely reminiscent of the analogous onscreen experience.
+
"Simon says" is a children's game in which a leader gives various commands which must be followed [[1033: Formal Logic|iff]] prefixed with "Simon says". Wikipedia suggests "Simon" may be the powerful lord Simon de Montfort, or a corruption of Cicero, both of whom were influential politicians of their day.
  
{{w|Simon Says}} is a children's game in which a leader gives various commands that must be followed if and only if ([[1033: Formal Logic|iff]]) the leader prefixes the command with "Simon says." The title text compares the way the computer will run some commands if they are preceded with "sudo" to the way Simon Says players are supposed to follow orders if (and only if) they are preceded with "Simon says."
+
This comic was referenced in a guest comic [[824: Guest Week: Bill Amend (FoxTrot)|824]].
 
 
Alternatively, the title text might merely be referring to the similarity between Cueball ordering his friend around with "sudo" to the Simon Says game leader ordering other players around. Wikipedia suggests  that the "Simon" in the name of the game may be the powerful lord Simon de Montfort, or a corruption of Cicero, both of whom were influential politicians of their day.
 
 
 
In ''[[xkcd: volume 0]]'', an additional line is added: <code>Make: *** No rule to make target 'sandwich'. Stop.</code>
 
Make uses a file within the program in order to determine how to make it; lack of such a file will give an error. This sentence shows just that happening to 'sandwich': there are no clear instructions that make has found for it, the same way that Cueball has not specified the sandwich beyond its moniker.
 
  
 
==Transcript==
 
==Transcript==
:[Cueball is sitting on a couch, talking to a Cueball-like friend.]
+
:[Cueball is sitting on a couch, talking to a friend.]
 
:Cueball: Make me a sandwich.
 
:Cueball: Make me a sandwich.
 
:Friend: What? Make it yourself.
 
:Friend: What? Make it yourself.
 
:Cueball: Sudo make me a sandwich.
 
:Cueball: Sudo make me a sandwich.
 
:Friend: Okay.
 
:Friend: Okay.
 
==Trivia==
 
* This comic used to be available [https://web.archive.org/web/20211215085611/https://store.xkcd.com/products/sudo as a T-shirt] and [https://web.archive.org/web/20220125023401/https://store.xkcd.com/products/signed-prints as a signed print] in the xkcd store before it was [[Store|shut down]].
 
*The sudo tool has adopted a sandwich-based logo, as seen on the [https://www.sudo.ws/sudo.html Sudo main page] (and the bottom of the [https://www.sudo.ws/contributors.html list of contributors]).
 
*Searching "make me a sandwich" on {{w|DuckDuckGo}} [https://duckduckgo.com/?q=make+me+a+sandwich&t=h_&ia=answer tells you to make it yourself], but searching "sudo make me a sandwich" returns "Okay."
 
  
 
{{comic discussion}}
 
{{comic discussion}}
 
 
[[Category:Comics featuring Cueball]]
 
[[Category:Comics featuring Cueball]]
[[Category:Multiple Cueballs]]
 
 
[[Category:Linux]]
 
[[Category:Linux]]
[[Category:Food]]
 
[[Category:Comics with xkcd store products]]
 

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)