General :: Compare Directory/files In Two Different Linux Boxes?

Apr 5, 2011

How can I use diff to compare the files of similar directories on to diferent linux boxes.

View 1 Replies


ADVERTISEMENT

General :: Compare Directory Structure Without Matching Data In Files

Jul 22, 2010

What is the best and simplest way to compare two directory structures without actually comparing the data in files. This works fine:
diff -qr dir1 dir2
But it's really slow because it's comparing files too. Is there a switch for diff or another simple cli tool to do this?

View 4 Replies View Related

General :: Share Folders In LAN With Only Linux Boxes

Nov 1, 2010

I have tried to find a simple "how to". People testify how simple sharing over Linux networks is, but I just can't make it.I have a desktop with Mint LXDB on it. My wife has a laptop with Ubuntu Lucid Lynx connected with a wireless LAN to a D-Link router.

But I can't open mine from her laptop. My aim is to connect her to a backup station connected to my computer. I have been looking into https://help.ubuntu.com/community/SettingUpNFSHowTo. It is six pages long, complicated and i can't make it work.If networking in Linux should be so simple and native, there must be a better way..I hope.

View 14 Replies View Related

General :: Sharing Printer Between 2 Linux Boxes

Nov 9, 2010

I have a printer connected to one PC running slackware. The printer is set up to be shared through Samba and I can print to it from my Windows laptop.I would however like to use that printer from another Linux machine (running Ubuntu).Do I need to go through Samba to do this or is there a better way with it being linux-linux?Everything I've found on google relates to going from Linux to Windows unfortunately.

View 5 Replies View Related

General :: 2 Linux Boxes / Proxy And Ssh Tunnel Forwarding

May 25, 2011

I need create ssh forwarding to other linux box that works as a proxy.I have two linux boxes(centos 5.5), one in the office(server1) behind firewall, other at colocation(server2)server1 has squid proxy instaled on port 3128.i cant use server1 as a direct proxy from home because its behind firewall.iwas able to create ssh tunnel from server1 to server2 and when i log in to server2 ican ssh root@localhost -p 12312 to server1

what i need is configure server2 so it forwards port server2:3128 to server1:3128....and i could add server2 ip addres and port to firefox proxy's and access ofice network.

View 3 Replies View Related

Networking :: Unable To Ssh Linux Box From Other Linux Boxes

Mar 12, 2010

I am unable to ssh a Linux box from other Linux boxes; also tried to window putty.Although I am getting the password prompt instantaneously.So far, by comparing logs of other server, I am just able figure out that "debug2: callback start" is not coming in ssh -vvv logs.

View 2 Replies View Related

General :: Binary Compare Of Directory Structure

Apr 13, 2011

diff has the ability to trasverse directory structures. cmp has the ability to manage binary files.

I'm looking for something which allows me to compare a directory's contents, including files and subdirectories, and so a binary comparison.

Any suggestions, scripts, etc. which may be of help?

Some of my directories are huge, with huge (image) files in them.

View 2 Replies View Related

General :: Compare Directory Content That Has Since Been Updated?

Jul 20, 2011

We copied the directories/files from one filesys1 to filesys2 and since that initial copy have further added more directories/files to filesys2 from another source. How can we compare filesys1 to filesys2 to make sure all files/directories were copied successfully to filesys2? I would like a way to check filesys1 against filesys2 and only show/output when something is missing from filesys2 that exists in filesys1 and not report the additional/extra directroies/files that have been copied to filesys2.

View 3 Replies View Related

Networking :: SSH Between Two Linux Boxes / Newbie Having Troubles

Oct 27, 2010

I'm trying to set up a mini grid of linux boxes, but am quite new to setting linux up.I've installed fedora 13 on one and would like to be able to SSH in to it. All boxes are within a university network (under a proxy if that makes any difference?).I can mount a shared disc easily enough, and SSH out to other computers (that I didn't set up myself),I've tried following a few threads, temporarily taking down firewalls, disabling SELinux, messing around with iptables but can't seem to manage it.

View 6 Replies View Related

Ubuntu Networking :: Can Browse Windows Network / But Not Other Linux Boxes

Mar 29, 2010

I noticed tonight when I go to Places, Network, it will bring up an icon for Windows Network, and I can drill down to my Windows box. But I can't see the other Linux box (a laptop running Kubuntu), and the same behavior occurs on the laptop when trying to view the Linux desktop. The laptop is connected wirelessly, if that makes a difference. Each box can ping the others, but I don't yet know how to browse one Linux box from the other Linux box.

View 1 Replies View Related

General :: Compare 2 Files In Unix?

Aug 9, 2011

file 1 :

DB_NAME FIRST_ACTIVE_LOG DBPARTITIONNUM
-------- -------------------- --------------
BP1 279231 0
BP1 12735 1
BP1 12734 2
BP1 12735 3
BP1 12616 4

[Code]...

View 4 Replies View Related

General :: Compare Two Files In Perl?

Oct 27, 2009

I want to compare two files in perl, I have two files file1.txt & file2.txt. if column1 on file2.txt match column1 on file1.txt then I want my result on file3.txt (column1 column2 file1.txt + column1 column2 column3 file2.txt). this problem was solved with "awk" but I want to do in perl.

file1.txt
---------
column1 column2
------- -------
linux-2049 1
linux-2817 1

[code]....

View 5 Replies View Related

General :: Compare Two Files With Different Command

Jan 13, 2011

i have file1 and file2.

[Code]...

Here i want to compare these two files with diff command and need to take the common things in a separate file. File contents are 7 strings in length and everything will start with the character e. File 3 contents should be

[Code]...

View 5 Replies View Related

General :: Compare Binary Files In System?

Mar 29, 2010

I need to compare two binary files and get output in form

for every different byte. So if file1.bin is code...

what is the easiest way to accomplish the goal? Standard tool? Some 3rd party tool?

View 5 Replies View Related

General :: Compare Files On Ftp-server And In A Folder?

Apr 12, 2010

How to compare files on ftp-server and in a folder in Linux?

View 4 Replies View Related

General :: Script In Bash - Compare Two Files Name

Mar 7, 2010

I want to compare 2 name files, for instance. I got the package foo1.tgz and the foo2.tgz. and I want a script in bash that detects foo2 is newer than foo1 and delete foo1. Can it be done for managing collection of slackware packages.

View 2 Replies View Related

General :: Pass Several Files Between 2 System Boxes?

Aug 2, 2010

I have to linux boxes (ubuntu 10 and ubuntu 9), both are in the same network - i can do ping between them- so, I need to pass several files between them and i want to do it using the network, i went to nautilus and then smb://192.168.0.1 but i couldn't connect.

my question is:
-how can I do this?
-do I have to do it using samba?

View 4 Replies View Related

General :: Compare The Files Differences Between 2 Virtualbox Snapshot?

May 20, 2011

How to compare the files differences between 2 virtualbox snapshots?

View 1 Replies View Related

General :: Compare Files And Pull Out Required Data?

Nov 10, 2010

I have 2 files to compare and then print out information that match a certain pattern. I know basic scripting and was heading down the path of merging the 2 files together but this is the wrong approach. Would really appreciate a script that can do what is required:

file 1 contains dates, times and ID's:
2010-10-28 10:42 5939697357
2010-10-28 11:56 5919543491

[code]...

View 4 Replies View Related

General :: Compare 2 Text Files And Change Lines?

Jul 21, 2011

in the shell. how do i compare 2 text files and change matching lines in one of the files ?

example:
cat file_1.txt
line_1

[code]...

View 6 Replies View Related

General :: Shell Scripting - Compare Strings From Two Different Simple .txt Files?

Jul 29, 2010

what command is to be used to call strings from other files to the script and then comparing strings from two different files in the script to check if strings are matched then return the result to another script.

View 1 Replies View Related

General :: Compare Semicolon Separated Data In 2 Files Using Shell Script?

Nov 16, 2009

I have some data ( seperated by semicolon ) with close to 240 rows in a text file temp1. temp2.txt stores 204 rows of data ( seperated by semicolon ). I want to : Sort the data in both files by field1.i.e first data field in every row. compare the data in both files and print out the rows that are not equal in seperate files. I was trying to do this with excel using vlookup, without a great deal of success. hence, i'm exploring the shell script option.

Code:

temp1.txt
1000xyz400100xyzA00680xyz0;19722.83;19565.7;157.13;11;2.74;11.00
1000xyz400100xyzA00682xyz0;7210.68;4111.53;3099.15;216.95;1.21;216.94
1000xyz430200xyzA00651xyz0;146.70;0.00;0.00;0.00;0.00;0.00

[code]....

View 4 Replies View Related

Programming :: Compare Directory To .txt Or .xml ?

Dec 14, 2010

I have a database of around 4000 files. I use rsync script to transfer from 2 separate updated hdd every month but I need a way to compare a .txt file or .xml file to the updated drive as I cannot use rsync delete because I can not mount all 3 drives at the same time?

View 9 Replies View Related

General :: Installed Fedora12 /usr/src/linux Directory?

Jul 6, 2010

I have written simple modules (device driver)and i tried to compile and i found in /usr/src/ linux directory doesn't exists.

i have included </linux/modules.h> - doesn't exists in the /usr/src/ directory

i am using fedora 12 , 2.6.31.5-127.fc12.i686.PAE,i have install gcc,gcc-c++ compiler

Did i want to to download kernel source code for 2.6.31.5-127.fc12.i686.PAE. or how to add those files.

View 1 Replies View Related

Programming :: Bash - Compare Directory To Database?

May 23, 2011

I have a (rather large) database of mp3 track information. I also have several directories of the actual mp3s. I'm trying to write a simple bash script that will check the contents of the directories against what's in the database, and upon finding a file that isn't in the database, do something.

Here's what I have so far:

Code:

The trouble I'm having (in the sample directory of "/mnt/music/B/Beatles, The/" the file "Beatles, The - Taxman.mp3" isn't in the database.) is getting it to actually trigger an error when an entry isn't in the database.

Once triggering on a non-entered file is working, any way to get it to traverse the entire /mnt/music hierarchy?

View 13 Replies View Related

Ubuntu :: Command With The -r Option To Compare A Large Number Of Files And Files In Subdirectories

Jun 16, 2011

I am using the diff command with the -r option, to compare a large number of files and files in subdirectories. My main interest is to find out which files have been changed, and not what the actual changes are, and since a lot of files has been changed, it would be a lot easier to view the file names only. Is there and option for diff that might do this, or does there exist a similar tool/command that could do the job?

View 1 Replies View Related

General :: Set The Grub To Boot Linux Installed In Directory An Not In Own Partition?

Apr 6, 2011

I did it long time with LFS but I don't remember how. the "root" option of the kernel in grub except only the partition. How do I set the "root" as a directory in a partition?

View 4 Replies View Related

General :: Perform A Long Directory Listing Of All Files In The /bin Directory That Have Exactly Three Characters In Their Name?

Jan 18, 2010

How do you perform a long directory listing of all files in the /bin directory that have exactly three characters in their name?

View 1 Replies View Related

General :: Files Created In A Directory Owned By Directory Group?

Jan 29, 2010

Is there a way, on Linux, to cause all new files created in a directory to be owned by the directory's group instead of the creating user's group?

View 2 Replies View Related

General :: Cronjob Directory / Send An Email If Directory Contains More Than Ten Files?

Oct 13, 2010

I want to run a cronjob every 15 minutes that checks a directory for files. If the directory contains more than ten files I want it to send an email to me.

All I have is this...

*/15 * * * * ls -l | wc -l | [filename] | mail -s "This is just a test" [email address]

I would rather not write a bash script. Is there an easier way to do this? I was looking into some commands like find and grep.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved