Saturday, May 4, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2357  / 2 Years ago, sat, may 14, 2022, 3:02:19

I have a 6 GB text file. It has an access record for a whole month to my website.
That file is my only hope to know how a someone got access to my website and hacked it.
But, as the file is too big, gedit doesn't open it.



Is there any command or method I could use to read or search in the content of that file?

I tried the following command grep -i '18/jan' 02records but it takes a while and then no results show. I want lines that have '18/jan'.



Thanks


More From » command-line

 Answers
1

Hey and welcome to Ubuntu. I think the easiest would be to use the split command in the terminal. Split can take a file and chop it into a bunch of smaller ones.
On the commandline just do split then the options you want to use. -b for instance will csplit it into the amount of specified bytes.
Gd luck
(just google for all the availble options)


[#32528] Monday, May 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bsorbedeldy

Total Points: 315
Total Questions: 110
Total Answers: 108

Location: Reunion
Member since Mon, Dec 28, 2020
3 Years ago
;