Re: Write to file forbidden
- From: GaryT <taig@xxxxxxxxxxxxx>
- Date: Tue, 17 Mar 2009 01:47:43 +1100
Smoot Carl-Mitchell wrote:
On Mon, 2009-03-16 at 00:47 +1100, GaryT wrote:Many thanks, Smoot.
To obtain a recursive listing of all files, I'll use the commandThe redirect is opening the output file in the / directory before the
ls -s -S -R
from the root directory.
BUT
When attempting to capture that list by saving it to a text file, I get
"permission denied"
e.g. ls -s -S -R >files.txt
adding sudo makes no difference
using gksudo also makes no difference.
please, how does one overcome the problem?
sudo command is executed. Redirects are handled by the parent shell and
not by sudo. Try it from your home directory. e.g.
sudo ls -sSR / >files.txt
GT
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- References:
- Write to file forbidden
- From: GaryT
- Re: Write to file forbidden
- From: Smoot Carl-Mitchell
- Write to file forbidden
- Prev by Date: Re: Write to file forbidden
- Next by Date: Re: Is there a partiton size limit?
- Previous by thread: Re: Write to file forbidden
- Next by thread: Re: Write to file forbidden
- Index(es):
Relevant Pages
|