From: 赵佳晖 <jiahui.tar.gz@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Problem with sudo
Date: Wed, 4 Jul 2012 08:39:02 +0800 [thread overview]
Message-ID: <CAJf79njq_FerEvXJd4Cn__Oh7_oz2a_aJYkqVZy5F8LknyQnnQ@mail.gmail.com> (raw)
In-Reply-To: <20120703125054.GA5564@mathaapc14.epfl.ch>
[-- Attachment #1: Type: text/plain, Size: 1336 bytes --]
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
>
>
>
--
好好学习,天天向上!!!
[-- Attachment #2: Type: text/html, Size: 1977 bytes --]
prev parent reply other threads:[~2012-07-04 0:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-30 17:27 [gentoo-user] Problem with sudo 赵佳晖
2012-06-30 17:34 ` Alecks Gates
2012-07-01 2:36 ` 赵佳晖
2012-07-01 2:55 ` Alecks Gates
2012-07-01 5:06 ` 赵佳晖
2012-07-01 8:03 ` Neil Bothwick
2012-06-30 18:48 ` Neil Bothwick
2012-06-30 19:22 ` Éric DUNAND
2012-07-01 2:41 ` 赵佳晖
2012-07-03 12:50 ` Willie WY Wong
2012-07-04 0:39 ` 赵佳晖 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJf79njq_FerEvXJd4Cn__Oh7_oz2a_aJYkqVZy5F8LknyQnnQ@mail.gmail.com \
--to=jiahui.tar.gz@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox