How to execute command as administrator under Linux

March 2017


How to execute command as administrator under Linux




Issue


When i'm trying to execute command in terminal, i'm getting error message saying that i don't have administrative rights to execute them ! Could anybody help me?

Solution

  • You must firstly put "sudo" infront of the command line
  • Enter your password and validate the command
  • The command line will be executed and note that you won't to have to insert your password again to execute another command line during 15minutes after that

Related


Published by aakai1056.
This document, titled "How to execute command as administrator under Linux," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).