Saturday, June 8, 2013

Re: [LINUX_Newbies] Grep questions

 

On 07/06/13 02:46, Subramani wrote:
>
>
> Cameron,
>
> Yes, Its necessary to login as a ROOT user. Its a privileges issues.
>
> Mani

It is necessary to have superuser permissions, if you want to grep
system files and other users files. Many files under /usr and many
other directories are readable by any user and do not need 'root'
permissions.

The best approach is to use 'sudo <command>' since then only the grep
will have 'root' permissions rather than login as root.

Consider using 'find' and locate to identify files to pass to grep as
they operate much quicker and greping an entire machine will be slow as
you will scan tens of thousands of files.

>
> On Thu, Jun 6, 2013 at 7:33 PM, highskywhy@yahoo.de
> <mailto:highskywhy%40yahoo.de> <highskywhy@yahoo.de
> <mailto:highskywhy%40yahoo.de>>wrote:
>
>> **
>>
>>
>>
>> Good afternoon
>> Do Jun 06 16:02:32 2013
>> Thank You for help.
>>
>> | Can I search from every directory
>> > | or should I always change to the root?
>> >
>> > You can search from anywhere. Just hand grep the pathname of where it
>> > should look.
>> *
>> I want to search for files of the whole hd,
>> so is it necessary to go to the root before I start grep?
>>
>> Regards
>> Sophie
>>
>>
>>
>
> --
>

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (7)
Recent Activity:
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
.

__,_._,___

No comments:

Post a Comment