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 8: Line 8:
  
 
==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}} computer system, users can be assigned to all kinds of rights, for example rights to access to certain directories and files to execute certain commands. The ''{{w|sudo}}'' command lets certain (authorized) 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. 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. Forgetting to start the command with "sudo" is a fairly common and frustrating mistake for people who administer UNIX systems or their personal {{w|Linux}} computer. They then need to repeat the command with "sudo," whereupon the computer responds obediently, and everything works smoothly.
 
 
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.
 
  
 
[[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.
 
[[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.
Line 17: Line 15:
  
 
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.
 
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==
Line 27: Line 22:
 
: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}}
Line 39: Line 29:
 
[[Category:Linux]]
 
[[Category:Linux]]
 
[[Category:Food]]
 
[[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)