FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-04-2012, 12:39 AM
赵佳晖
 
Default Problem with sudo

Oh,yes , i misunderstand it . Thank you

2012/7/3 Willie WY Wong <wongwwy@member.ams.org>

On Sun, Jul 01, 2012 at 10:41:12AM +0800, Penguin Lover 赵佳晖 squawked:

> I have use your method , it didn't work .

> Like:

> sudo echo "sys-boot/grub:2 **" >>

> /etc/portage/package.accept_keywords/package.keywords.grub2 echo

> "sys-boot/grub:2 **" | sudo tee

> /etc/portage/package.accept_keywords/package.keywords.grub2

>

> And the result :

> zjhui@gentoo ~ $ ls -l

> /etc/portage/package.accept_keywords/package.keywords.grub2

> -rw-r--r-- 1 root root 0 Jul *1 10:37

> /etc/portage/package.accept_keywords/package.keywords.grub2

>

> It's an empty file.



I think you misread the e-mail. The left hand side below is what you

**shouldn't** do. The right hand side is what you **should** do. So

you **should** run



echo "sys-boot/grub:2 **" | sudo tee /etc/portage/package.accept_keywords/package.keywords.grub2



and no more.



W



>

> > If Neil is right, you may want to read man tee. It work roughly like

> > that:

> > instead of * * * * * * * * * * * do

> > sudo echo sthg > /etc/file.cfg * echo sthg | sudo tee /etc/file.cfg

> > sudo echo sthg >> /etc/file.cfg *echo sthg | sudo tee -a /etc/file.cfg







--
好好**,天天向上!!!
 

Thread Tools




All times are GMT. The time now is 12:58 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org