How to run sudo command using putty

14.8k views Asked by At

I'm just getting started with Linux environment. SO the terms sudo, bash and putty are all very new to me.

I'm based on windows local machine.I'm using putty to upload,delete,and create file into a remote Linux server.I have to use putty to bridge the gap.I can actually login successfully using putty.

The problem now, I just have no idea on how to run the sudo command to do anything to the server. Where do I start as I don't even see any window to type out anything in putty screen.

When I run Putty.exe I only see session,terminal,window,connection.

Thank you.

1

There are 1 answers

1
Gabriel Garrett On BEST ANSWER

You should be aware that sudo is not entirely a command by itself. It requires an argument of a command, such as executing a script. What sudo does is grant you super-user privileges for the execution of the command. (You can think of it as "super-user do: command").

While I'm not familiar with using Putty, if you have managed to successfully login to the server you are targeting, you should be able to navigate to the "terminal" window and execute commands from there.

I recommend following this guide: http://internal.math.arizona.edu/services/computing/remote-access/shell/putty

Once you're connected to the remote computer, you can begin executing commands, although if you don't know what they do, you should really be careful in your choice of executing them.