Gnome-desktop from Kubuntu
John L Fjellstad
john-ubuntu at fjellstad.org
Wed May 9 19:12:27 BST 2007
Donn <donn.ingle at gmail.com> writes:
>> sudo su -c "echo 'OnlyShowIn=KDE' >> $file"
> Add that text onto the end of $file (with root permissions)
> I am not sure about that sudo su thing. su with sudo? A bit Fedora
> meets Debian-ish.
The reason I do it like that is because sudo doesn't really let me do
redirection (at least I can't figure it out). su lets me define a
command with redirection (in the -c " " block). sudo lets me define the
password once and then it will remember the authentication for the rest
of the script (useful since there are more than 1 file that will be
I didn't really work that hard on the scripts. Maybe 10 min.
John L. Fjellstad
web: http://www.fjellstad.org/ Quis custodiet ipsos custodes
More information about the kubuntu-users