General :: Search Partition For Specific Sequence Of Bytes

Aug 17, 2010

I lost an important file. I know what bytes the file begins with. How can I search the partition for the sequence of bytes?

View 4 Replies


Software :: Use Grep Through A Binary File For Sequence Of Bytes?

Apr 7, 2009

Is it possible to use grep to search for a sequence of bytes? For instance say I was looking for the following byte sequence in a file:

64 03 40 30 ; add eax, fs:[eax+30h]

Is this possible to do using grep?

View 5 Replies View Related

Networking :: Get Usage's Bytes Of A Specific IP?

Sep 14, 2010

I need to get usage's bytes of a specific (src/dst)IP adress;can i use this
#iptables -L -n -v -x
with the other options that get only byte of the specific IP address?

View 4 Replies View Related

General :: Calculate Usable Bytes On A Disk Partition?

Mar 10, 2010

How do you calculate the number of usable bytes on a disk partition? When I do an fdisk -l I get this:

Disk /dev/md0: 192.0 GB, 192069500928 bytes
2 heads, 4 sectors/track, 46891968 cylinders
Units = cylinders of 8 * 512 = 4096 bytes


View 7 Replies View Related

Programming :: Search A Bunch Of Files In A Specific Folder For A Specific Number?

Jul 24, 2010

I need to search a bunch of files in a specific folder for a specific number and add all the numbers together to a total sum. I use Rsync everyday, everytime I run rsync i get a logfile (rsync output) witch contains the textstring "Total bytes sent: xxxxxx".

The "xxxxx" can vary in lenght. I need to extract the "xxxxxx" from each file and add the numbers together to a total size over a week or a month. Is this possible? And I wish to only use bash. One way of doing stuff at a time my friends .

View 5 Replies View Related

General :: Search Files Modified In A Specific Day?

Dec 2, 2010

How can I search files modified in a specific day?

View 2 Replies View Related

General :: Search For A Specific File In The Sysconfig Directory?

Mar 10, 2010

If i am in the root directory and i need to search for a specific file in the sysconfig directory, is there any way to search this directory for a file?

View 10 Replies View Related

General :: Recursive Search For Files That Hold Some Specific Text?

Jan 18, 2011

How do I recursively generate a text file which has a list of all files on my server which contain a specific string anywhere in the files?

I know the following command can be used to replace a string recursively

find /var/www -type f -print0 | xargs -0 sed -i 's/old string/new string/g'

I do not want to replace the string, I just want a list of all files which contain the string.

View 4 Replies View Related

General :: How To Make Grep To Search A Pattern In Only Specific File Type?

Mar 6, 2010

To search a string pattern in all files in a directory and subdirectories, I am using;

grep -R "myclass::my-func(" mydirectory/
Now I want grep, to search in only specific file types say *.cc. Please help me. I have read manual of grep, but could not deduce any hint.
Best Regards.

View 7 Replies View Related

General :: Shell Script To Search For Files Of Specific Extension And Delete Them All?

Mar 17, 2010

i want such a shell script or single line command to delete all the files with extension specified in script i have bash !! ex... delete all files of extension .obj

View 4 Replies View Related

Ubuntu :: Swap Partition Is Always At 0 Bytes

Jan 8, 2011

How do fix my Swap Partition? Last night I added unused space to the main Ubuntu partition. Now I noticed the Swap Partition is always at 0 bytes. I'm using a Sony Laptop, and have enclosed two screenshots. One of the Disk Utility and a system monitor.

View 9 Replies View Related

Ubuntu :: Error: Allowed Memory Size Of 20971520 Bytes Exhausted (tried To Allocate 7680 Bytes) In /var/www/index.php On Line 2

Jan 9, 2011

I recently had to move to a new machine, everything went well except for one thing. I did fresh installation of LAMP server all with default configs. Every time I'm using PHP script to that invokes include, require or require_once I get the following error:

Code: Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 7680 bytes) in /var/www/index.php on line 2 index.php file: PHP Code:
<?php    include "index.php";?>
icukapi.php file:
PHP Code:
<?php    echo "test";?>

My memory_limit in php.ini is set to 20M. I tried to increase that however it didn't quite work. PHP seems to allocate all possible space and return that message every time i try. If somebody has an idea of how to fix it I would be more than grateful. I spend quite a long time searching for an answer however the all things i found suggested increating memory_limit which in this case doesn't work.

View 1 Replies View Related

Software :: Overwrote First Bytes Of Windows Partition?

Dec 5, 2010

This question is only partially linux-related, but I accidently typed cp file /dev/sda2 instead of cp file /mnt/sda2. The first 300 bytes or so of the ntfs partition were overwritten and now it can't mount and can't boot. I figured I would try copying the first 4096 bytes from another ntfs partition and see if that gave it enough to at least boot. It didn't and I'm wondering if there's any way to fix this sort of thing easily (without downloading an entire Windows 7 DVD) and what exactly I overwrote that was so important.

View 5 Replies View Related

Ubuntu :: Root Partition 0 Bytes Remaining After Enlarging

Sep 2, 2010

I recently cleared out some old partitions, and "/" was getting full so I made it bigger. It went from about 2Gb to 7Gb.

Now when I boot into my OS I get a dialogue saying:

The volume "Filesystem root" has only 0 bytes disk space remaining

You can free up disk space by removing unused programs or files, or by moving files to another disk or partition I don't see how this is possible. If anything it should have more free space than it had before. how I might go about diagnosing this issue?

View 9 Replies View Related

Ubuntu :: Allow A Specific User To Mount Or Remount A Specific Partition?

Jun 9, 2010

my system I want user1 and only user1 to be able to mount and unmount a specific partition, this partition contains backups and is usually mounted read only, needs to be temporarily mounted read/write by user1 while doing the backup.user1 is an unprivileged user. I've read that the user option will let any user mount the file-system (and only that user can then subsequently unmount it) and that the users option allows any user to mount or unmount the file-system.I also found this in mount's man pageQuote:The owner option is similar to the user option, with the restriction that the user must be the owner of the special file. This may be useful e.g. for /dev/fd if a login script makes the console user owner of this device. The group option is similar, with the restriction that the user must be member of the group of the special file.So it looks like I'd need a login script for that user to make the user owner of the device file (/dev/voiceserv/backup in this case)

View 7 Replies View Related

General :: Find/search Root Partition ONLY?

Jun 11, 2010

Say I need to do: find / -name somefile.txt

And say root partition / is mounted on /dev/sda5; however, let's say I also have 250GB partitions (/dev/sda6, /dev/sda7) mounted in /media - AND another location that I cannot currently remember. Say, also, that I know the file I'm looking for is on /dev/sda5.

Obviously, the above command will also descend in /media and that other directory which represent the big partitions, wasting time in looking for the file in the wrong place.

Is there a way to instruct find (or other command) to search only / on /dev/sda5, and NOT to descend to directories if they are on different partitions ?

View 1 Replies View Related

General :: Ubuntu 10.04 - Search A Ntfs Partition For Files?

Aug 24, 2010

My Linux system has an NTFS disk attached to it. How can I search for all *.txt files on the NTFS partition using Linux?

View 2 Replies View Related

Software :: Using Find To Only Search Specific Directories?

Jan 9, 2010

how the "-prune" option works. I've searched quite a bit on line, and as far as I can tell, "-prune" works exactly the opposite as it says.

I'm using Apt-proxy, and I want to scan through the folders, and find files that end with "*.bz2" The problem is that the search takes a while because of all the "*.deb" files. Fortunately, they're stored in their own folder:

each have two folders:


View 5 Replies View Related

Debian :: Aptitude Search Query For Specific Distribution

Feb 23, 2010

I've figured out that '~i !~M' will give me all packages I have manually installed. Can I formulate a query such that I get all packages manually installed from a particular distribution (e.g. Lenny, Squeeze, Sid)? Yes, I'm using pinning.

View 1 Replies View Related

Ubuntu :: Search For File Modified At Specific Time

Aug 20, 2010

How do you find a file modified March 17, 2010, between 3:30 pm and 4:05 pm? I know that I must be missing something somewhere.How do you search for info like this? I goggled "search files time Linux" and got about 38,300,000 results. I looked through the first four pages and did not see what I was looking for.Do I need to calculate how many minutes ago that is and give that to find.I really want to do this in the GUI so that I can operate on the files found without typing in so much stuff.

View 1 Replies View Related

Software :: Search For Video Files That Use A Specific Encoding?

Oct 27, 2009

Is there an app or find parameter that can search for video files using a specific (DivX for example) encoding? On Windows, you can do this, so I was hoping there would be some way on Linux whether it's with find or another app. I want to find all (*.avi OR *.divx) on my file system with the DiVX fourcc tag (i think that's what its called)

View 4 Replies View Related

Programming :: Use AWK To Search For A Specific String Inside Html?

Jan 26, 2010

how to search for a specific string of text inside an html document. I then want to cut out that specific data that the field or string contains. I want to do a shellscript that makes this function automaticly.

For example:

#Here i want to find the field "town" inside the html/java and then cut #out the town name from it and paste that to an file.


View 8 Replies View Related

Server :: Create A File From Two Files With Specific Search Conditions?

May 5, 2010

I need to create a report ,

The data is spread across two files in below format,

File 1
<Class Name1>
Ph: 001
Place: place001


View 4 Replies View Related

Fedora Servers :: Writing A Script To Search Through Specific Folders On A Based Server?

Feb 19, 2009

I am thinking about writing a script to search through specific folders on a Linux based server (Centos 5) and report any changes made to any file on that server.Like a detailed change log with the date it was changed and the difference in size. Dose anyone know if such a script exist?

View 2 Replies View Related

General :: What Number Of Bytes Should Set The Bs To In The Dd Command

Apr 3, 2011

I have just created a usb boot disk so that I can install Fedora 14.I used the following which was successfully. However, I am left wondering what does the bs parameter actually does. I know it mean bytes and copies these at a time. But how do I know what to set it to?dd if=F14-Live-i686.iso of=/dev/sdb bs=8MIn the above example it is set to 8MB. However could I set this to any value that I want?

View 1 Replies View Related

General :: Change A Specific Characters To Capital In A Specific Text?

Dec 2, 2010

for example

else {
for fileDOC in $location/*.doc


View 12 Replies View Related

General :: Delete 0 Bytes Files From A Fat Filesystem From Within System?

Oct 11, 2010

I have an external hdd which is formatted with fat for use by both on linux and windows. The issue is that I can't delete some of the files I have which show up with size 0. Also, the modification timestamp (as detected by Krusader, the file manager I am using) is 1935. How can I delete these kind of files without affecting the running fs?

View 1 Replies View Related

General :: Should Jpegtran Remove More Bytes Than Mogrify Strip

Aug 23, 2011

I'm currently using mogrify -strip image.jpg to remove unwanted bytes from images, it was suggested I could remove further data by using jpegran from libjpeg, something like:

jpegtran -copy none -optimize -outfile image.jpg image.jpg

The problem I'm having - if it even is a problem - is that jpegtran doesn't seem to actually do anything that mogrify isn't already doing. In all my testing the filesize just stays the same. If I remove the mogrify part of my code and replace with jpegtran then it seems to perform the same function.

For example:

image without compression: 300k
image with mogrify -strip + jpegtran: 272k
image with mogrify -strip only: 272k
image with jpegtran only: 272k

I was under the impression though that mogrify just removed image profiles/comments and that jpegtran did this as well as losslessly compressing the image to make it smaller. Am I missing something?

View 1 Replies View Related

General :: Rsync With Skipping 0 Bytes Files Option?

Jun 10, 2011

For backup purposes, I have been trying to find out a solution for Rsync -avr sourcefolder targetfolder with Skipping 0 bytes files option.

However it seems that they are no solutions. Would someone have an idea, to skip to source files into the sourcefolder that have no content, ie. 0 bytes?

View 2 Replies View Related

General :: PCI Cache Line Size Set Incorrectly (64 Bytes) By BIOS/FW

Nov 24, 2010

I have AMD Phenom 8550 triple code processor, with 2.20ghz speed and 4gb ram. I am trying to install Redhat linux 9 first time. I am new to linux. While install system hangs with message

ehci-hcd 00:13.2: PCI device 1002:4396
echi-hcd 00:13.2: irq 10, pci mem f880f800
usb.c: new usb bus registered, assigned bus number 2
PCI:00:13.2 PCI cache line size set incorrectly (64 bytes) by BIOS/FW" expecting 16

how to get rid of this message

View 9 Replies View Related

Copyrights 2005-15, All rights reserved