2008
Jan 14

Sometimes an administrator might need to view a very large text file for examle a log file, in order to search or navigate inside it. Usually the logs that he needs to check are at the end of the file.

In order to view a file starting from the end of it one can type:

 

less +G filename

where filename is the name of the file.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Access linux files under Windows

Posted by nonenas on Dec 19th, 2007
2007
Dec 19

When you have 2 operating systems in your computer, it is rather usual to want to exchange files between them. The problem is that although many linux distributions can read windows file systems (FAT32 and NTFS), windows cannot read linux file systems (most commonly used ext3).

A rather useful freeware utility which allows you to read linux file system files under windows is DiskInternals Linux Reader.

 

You can find the utility in DiskInternals web site.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Search inside files in every subdirectory

Posted by nonenas on Dec 18th, 2007
2007
Dec 18

In order to search for a specific text pattern inside every file in every subdirectory of a given path in linux one can do:

grep -r "text to search for" *

 

In windows a good way to obtain linux benefits is to download cygwin. You can find cygwin in:

www.cygwin.com

Cygwin is a linux like enviroment for windows which allows you to run *nix programs in  Windows.

Running grep from cygwin is a lot faster and more stable than searching inside files with windows explorer.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

« Prev - Next »