Create a shortcut on desktop that opens and execute a command with root permission in a terminal

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I want to create a shortcut that opens terminal and run sudo nethogs command without asking me for root permission.







share|improve this question




















  • Where is your problem? The shortcut or the sudo part?
    – PerlDuck
    May 26 at 13:02










  • sudo part . I want to start the program in terminal without asking me for password and i don't get popup to fill password, it is asked in terminal.
    – Amanpreet Singh
    May 30 at 9:34














up vote
0
down vote

favorite












I want to create a shortcut that opens terminal and run sudo nethogs command without asking me for root permission.







share|improve this question




















  • Where is your problem? The shortcut or the sudo part?
    – PerlDuck
    May 26 at 13:02










  • sudo part . I want to start the program in terminal without asking me for password and i don't get popup to fill password, it is asked in terminal.
    – Amanpreet Singh
    May 30 at 9:34












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I want to create a shortcut that opens terminal and run sudo nethogs command without asking me for root permission.







share|improve this question












I want to create a shortcut that opens terminal and run sudo nethogs command without asking me for root permission.









share|improve this question











share|improve this question




share|improve this question










asked May 26 at 13:00









Amanpreet Singh

163




163











  • Where is your problem? The shortcut or the sudo part?
    – PerlDuck
    May 26 at 13:02










  • sudo part . I want to start the program in terminal without asking me for password and i don't get popup to fill password, it is asked in terminal.
    – Amanpreet Singh
    May 30 at 9:34
















  • Where is your problem? The shortcut or the sudo part?
    – PerlDuck
    May 26 at 13:02










  • sudo part . I want to start the program in terminal without asking me for password and i don't get popup to fill password, it is asked in terminal.
    – Amanpreet Singh
    May 30 at 9:34















Where is your problem? The shortcut or the sudo part?
– PerlDuck
May 26 at 13:02




Where is your problem? The shortcut or the sudo part?
– PerlDuck
May 26 at 13:02












sudo part . I want to start the program in terminal without asking me for password and i don't get popup to fill password, it is asked in terminal.
– Amanpreet Singh
May 30 at 9:34




sudo part . I want to start the program in terminal without asking me for password and i don't get popup to fill password, it is asked in terminal.
– Amanpreet Singh
May 30 at 9:34















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1040586%2fcreate-a-shortcut-on-desktop-that-opens-and-execute-a-command-with-root-permissi%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1040586%2fcreate-a-shortcut-on-desktop-that-opens-and-execute-a-command-with-root-permissi%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491