PDA

View Full Version : [ubuntu] sudo commnads



daniell59
November 15th, 2009, 10:21 AM
Is there a list of the different sudo commands? I am at complete loss about this. Any reading material?

Thanks

alwayshere
November 15th, 2009, 10:27 AM
https://help.ubuntu.com/community/RootSudo#Background%20Information

mathfreak123
November 15th, 2009, 10:28 AM
I would think that any command there is, you can use sudo on it. You should only use sudo when you need to, though.

To start, I think reading up on what the commands do would be good. However, since there are so many commands, knowing all of them would be nigh impossible. Instead, you can use the "man" (for "manual") command to learn what all the commands do.

examples:

man wget
man ls
man shutdown

Man basically shows you the guide to all the commands, so it's very useful.

theozzlives
November 15th, 2009, 10:30 AM
Is there a list of the different sudo commands? I am at complete loss about this. Any reading material?

Thanks

Any command can be a sudo command. all sudo does is give you root access to files and stuff, example: if you want to copy a file to a folder owned by root, you would do:

sudo cp <source> <destination>

or if you want to edit a file owned by root:

gksudo gedit <filename>

note: the gk is used when you want to use a GUI application.

alwayshere
November 15th, 2009, 10:30 AM
http://www.vogella.de/articles/Ubuntu/article.html

nitstorm
November 15th, 2009, 10:32 AM
http://ubuntuforums.org/showthread.php?t=801404

Try that thread, found it very useful, lots of reading material there, newbie here and found it pretty good :D

nitstorm
November 15th, 2009, 10:33 AM
http://www.psychocats.net/ubuntu/ found this the most useful link of them all :)

Wim Sturkenboom
November 15th, 2009, 10:42 AM
I think that your question is not so much about sudo, but about the commandline. http://www.tldp.org/ might be a start

And below a list of commands extracted from my history
locate
vi
cd
ls
echo
grep
reset
exit
man somecommand
file
reset
df
du
stat
cp
mkdir
mv
sh
which
tree
nano
tracert
visudo
cat
ln
touch
su
gcc
fdisk
dmesg
lspci
hexdump
find
iptables
mount
lsusb
history

lisati
November 15th, 2009, 10:43 AM
Have a look here for information on using sudo: https://help.ubuntu.com/community/RootSudo

As someone else has already commented, I don't think you should use sudo unless you have to, because "super user" privileges give you great power to do many things, including seriously hurting your system when you make a typo.

daniell59
November 15th, 2009, 11:25 AM
Thanks to all. Your replies illustrate the fact that I know even less than I thought I did. I really need to know the basics. So far Ubuntu 9.10 is working great. My previous version of 9.04 gave me problems. Recently, I found that the problem was not Ubuntu, rather my memory. The voltage and timings needed to be changed. Once done, everything improved.