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, [email protected]
> <mailto:highskywhy%40yahoo.de> <[email protected]
> <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
>>
>>
>>
> 
> -- 
> 


------------------------------------

To unsubscribe from this list, please email 
[email protected] & you will be removed.Yahoo! Groups 
Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/LINUX_Newbies/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to