Ubuntu :: Generate MD5SUM Of Entire Directory Including Sub-directories In Single File?

Apr 23, 2011

As I'm gonna transfer large amount of data folders from one hard drive to another, I wanna make sure that the transfer has not corrupted the data. how could I generate MD5SUMs of entire directory including sub directories, in a single file and later, how could I verify with the data I've just transferred.

View 1 Replies


ADVERTISEMENT

General :: Selectively Tar Based On Date Just The Innermost Directories Of A Single Directory?

Jul 28, 2009

selectively archive the subdirectories of a single parent directory in which said subdirectories have creation year-date 2008 and older.

View 5 Replies View Related

General :: How To Flatten Single File Directories

May 1, 2011

I've spent ages trying to build this and had a good look around for a way to do it. I have a directory tree which contains a set of folders and files. Some of the folders contain more than one file but most contain only a single one. I'm trying to move all of the files which are on their own in directories one level below the root into the root. E.g:

Root is: /volume3
Single file in a sub folder: /volume3/20110103/20110103.log
File should end up as: /volume3/20110103.log

I know how to flatten the entire structure fairly easily but its the conditional part which I can't figure out how to do.

View 1 Replies View Related

Ubuntu :: Copy Entire Hard Drive Including OS?

Sep 30, 2010

I have an old Dell Dimension 2400 with XP that has a WD 40GB model# WD-XL80SD-2 that has run out of space now matter how hard I try and keep it clean. I called Tigerdirect this morning and ordered a Hitachi 500GB hard drive model# OF10381, here's my dilemma. I really want to just do away the old hard drive and use the new one but it seems as if there's not a real good way to copy the entire hard drive including the OS. I have been told that you can use a program such as norton ghost to do it. I do though have a Windows 7 disc, I am going to use a SATA host PCI card to connect the new HD. if I should back everything up from the old HD except for the OS. And then unplug the old HD and just do a fresh install with the Windows 7 disc.

View 9 Replies View Related

Ubuntu :: Possible To Copy / Clone Entire Disk Including MBR?

Apr 30, 2011

I have win7 and ubuntu on a 250gb hard drive. I would like to move this to a 1tb drive. Is it possible to clone the entire hard drive, including the MBR? Thought about doing a disk image but unsure if this is the answer. I am using win7 64 pro and ubuntu 10.10.

View 3 Replies View Related

Ubuntu :: Backup An Entire System Including Installed Apps?

Jan 18, 2010

I have Ubuntu 9.10 on my system and i have a lot of apps on it.is there a way that in case of a full re-installation or hard disk replacement i could have all my softwares and settings installed on the new Ubuntu installation.

View 3 Replies View Related

Red Hat :: Generate Default_smp_affinity File In /proc/irq Virtual Directory ?

Mar 16, 2010

I am using RedHat MRG on a standalone intel PC that has 8 cpus. It has 2 Quad cores. I am trying to force some specific persistent tuning on it so that the OS and IRQs are all on one CPU socket and then I can run my Application on the other CPU socket (4 CPUs) using the taskset command.

I have been reading up on this mainly at [url] and having some success. But, I have one IRQ that is not active until my application runs that I want to force it to be on CPU 4.

And so I believe I can do this by setting /proc/irq/default_smp_affinity to 10. But, I do not have such a file on my system. How can I create this file at boot time properly?

View 1 Replies View Related

General :: Back Up Scrip - Find / Cp / Md5sum / Rm - Move All Files And Directories

Oct 22, 2010

I want to move all files and directories that are 1 month old out to back up into a separate folder. There will be a lot of files and I want to make sure it copies properly. The problem I'm having is integrating a MD5SUM into it to check integrity. MD5SUM is not recursive, so I figured it would work in a loop when it copies each individual file, I'll do a md5sum on each file and delete that md5 once its verified it copied ok.

[Code]...

I also need some sort of error handling to output all md5's that didnt pass the hash check.

View 3 Replies View Related

General :: 'watch' A Command Including Both Of Single And Double Quote?

Aug 12, 2010

I want to watch a number of processes in "D" status repeatedly with following command:Code:# watch -n 1 'top -b -n 1 | awk '{if ($8 == "D") {print; count++} } END {print count}''but it didn't work. I also tried with double quote. Can I use 'watch' command is this case?PS: I know 'while' and 'sleep' can do the same but it is dirty workaround.

View 2 Replies View Related

Ubuntu Multimedia :: Cp All The File Entries In This Playlist From Their Various Original Directories And Into One Target Directory?

Jun 14, 2010

I've got a few large, unsorted folders where I dump mp3s. I manage it all through rhythmbox and I've decided to separate the wheat from the chaff by paring down stuff I don't want and throwing all the desirable stuff into a big (~1,800 file) playlist file saved to my desktop.My question to you is, is there a hack that'll let me cp all the file entries in this playlist from their various original directories and into one target directory? Playlist format is:

Quote:
[playlist]
X-GNOME-Title=Biglist
NumberOfEntries=1823[code].....

View 3 Replies View Related

Ubuntu Multimedia :: Converting Entire (sub) Directories Of Video

Nov 2, 2010

I have a collection of music videos of various ages, and want to consolidate the codecs into mp4 files with the following criteria:

1) Retain the same directory structure and same name, hopefully with something like "/music/Videos (Encoded)/" and "/music/Videos (Failed Encoding)/" (Note: Using UTF-8 filenames)

2) Prefer to do this all in one batch; terminal commands/ bash script = awesome

3) Keep the highest quality video without having to encode everything the same (some widescreen, some hd, some with super low resolution)

4) Retain the audio stream untouched (plus, some help on what command to do to convert it to a good format) and, hopefully, to encode with settings that allow for universal apple playback (Handbrake as a great preset for this)

View 2 Replies View Related

General :: Copy A File To All Subfolders In A Directory Using A Single Command?

Jul 18, 2010

I'd like to copy a file, say widgets/water.txt, to all subfolders in the folder widgets using a single command. So if the folder widgets has 10 subfolders like widgets/blue, widgets/green, etc. I'd like to copy water.txt to all of them with one command.

I tried the commands

Code:

cp water.txt ./*/water.txt
cp water.txt ./*/

However these don't seem to work. The latter gives 'cp: omitting directory' errors.

View 7 Replies View Related

General :: Create A Backup Directory And 3 Directories Within That And Some Files Within The 3 Directories And Then Back Them Up Ot Restore Them?

Dec 19, 2009

i am in need of linux help. iam at college and i need this back/restore script to pass this final part of an assessment. i require a backup script that will not only backup but also restore files to the relevent directories. e.g. users are instructed to store all wordprocessor files in a directory named wp. so i am needing to create a backup directory and 3 directories within that and some files within the 3 directories and then back them up ot restore them. l know i should/have to do this myself by been trying to get/understand info for the last few days and came up with zero.

View 14 Replies View Related

Fedora :: Make A ISO Image From Single Entire Cd

Jul 27, 2009

In others machine I can see GUI option to build a ISO image from a cd. In this FC4 can see the option, how to do command mode?

View 2 Replies View Related

Debian :: Where Is The Md5sum File

Feb 17, 2010

Debian 504 64bit netinst

I have the above iso.img download. But I can't find its md5sum. I have been searching around on debian.org website and have no idea where it is kept.

View 4 Replies View Related

General :: Tar Directory And Then Remove Originals Including That?

Jan 17, 2010

I'm trying to tar a collection of files in a directory called 'my_directory' and remove the originals by using the command:

tar -cvf files.tar my_directory --remove-files

However it is only removing the individual files inside the directory and not the directory itself (which is what I specified in the command). What am I missing here?

View 3 Replies View Related

Programming :: Perl - Directories Given To Opendir Via Foreach Give "No Such File Or Directory" Error

Feb 19, 2009

I'm writing a perl script to remove a test database and part of that is of course getting rid of all files. So I wrote this to do the job:

Code:

This always results in an "Could not open /u00/app/oracle/product/10.2.0/rdbms/dbs for reading: No such file or directory" (that directory is the one ending with the $spfile_dir variable) message, although that directory exists and the executing user has writing rights on it.

The same behaviour if I create the directory array like this:

Code:

The problem does not occur when one of the directories is the only element in the array though. Of course I could copy and paste that part of the script for the second directory, but I don't like that workaround.

View 1 Replies View Related

Ubuntu :: Single Command That Will Remove All 'other'permissions From All Files And Directories Under /home?

Sep 10, 2010

What is the single command that will remove all 'other'permissions from all files and directories under /home.
Just starting to learn Linux.

View 1 Replies View Related

CentOS 5 :: Move Contents Of A Directory Recursively Including Hidden?

Mar 9, 2010

I have a directory: /var/www/html/something/

and it's got tons of files and directories, some containing hidden files.

I want to move all the contents of something including hidden files up to the site root at: /var/www/html/

What is the proper command for this?

View 4 Replies View Related

Software :: How To Generate Index Directory

May 11, 2011

We used VoilaSVN for SVN search. Some time ago it stopped working for an unknown reason. I was searching for a solution, but the voila project seems to be dead, the web pages are not available. I assume the problem is in indexing. Does anybody know how to generate the index directory?

View 1 Replies View Related

Ubuntu :: Auto Generate Music Playlist From Web Directory?

May 28, 2011

There's a podcast on the internet I love, and I would like to have them all in the same playlist. This podcast doesn't put their episodes in a playlist. Are there any software or scripts I can use for this to work so I can simply just type in the http://url/directory, and have all the mp3 files in a playlist. Or if the playlist part isn't possible, then at least a text documents with all the links?

View 4 Replies View Related

Ubuntu :: Replace An Entire Directory System?

Mar 22, 2010

i have crashed my system, i have a lot of simualtion software already configured and working on it, i'm thinking to do a new installation of ubuntu in a different partition and copy there all directory tree, basically replace the new / directory system, whit the old one that i have back up. Can i do this and everything will works ok?

View 1 Replies View Related

Fedora :: Mouse Set Up So A Single Click Opens Directories And Files?

Nov 14, 2009

I like to have my mouse set up so a single click opens directories and files How do I do it with Fedora11?

View 7 Replies View Related

Debian :: Generate Directory List With Exclusions?

Aug 18, 2011

I'm trying to generate a list of my music directory folder structure WITHOUT the files included. I have my music directory set up in a hierarchy of Artist>Album>Files, and I just want to generate a list of the folders because that will, in effect, output a list of what albums I have by what artists, which is ultimately what I'm after. I did some looking on the internet through various forums over the past few days and found two ideas that looked promising, but ended up being not exactly what I needed. The first was to generate a .txt file based off of a shell ls command:

ls -R [music directory name] >> ~/mymusiclist.txt

That's great, except that it also includes the 40,000+ individual music files by name. I'm not about to invest that much time editing the files out of the list when I know there has to be an easier way.The second idea I came upon involved using the extglob function. I tried enabling extglob and using it to input a "negative wildcard" into the above method to remove anything .mp3 from the returned list, but extglob didn't play well in that context. I'm not a command line wizard, so it's entirely possible that I'm missing something fairly obvious. In fact, I'm sure I am. So this is a great opportunity for me to learn something new. If anybody knows of a command line way to do this, I'd love to know it. Or, even better, if anybody knows of an app that can do this, even better. I'm not above installing a secondary music player just to import the library once and get my list.

View 3 Replies View Related

Ubuntu :: Files And The Entire Directory Is Missing / Disappeared

Apr 16, 2010

Ubuntu 10.04 Beta - I recently upgraded from 9.10. I have for some time been using an IOMEGA External drive, storing files created using Open Office. After I upgraded I continued to use those files and open them in OpenOffice 3.2. Yesterday I opened the drive to work on the files and the entire directory is missing. All the other directories seem to be there. Bizarre.

Have tried using "locate" in the console, but the files are nowhere to be found. I tried accessing the permissions on the external drive but get the response "The permissions of IOMEGA HDD could not be determined". Using a dual boot system with Windows Vista, booting through Grub.

View 8 Replies View Related

Ubuntu Installation :: Copy Entire /home Directory To 11.04?

Jun 8, 2011

I installed a new 11.04 on my Thinkpad in place of the old 10.10 system, so it replaced the old /home with a new empty one. But I had previously done a partition copy of the original 10.10, complete with /home to a spare HDD so now I can copy that /home in place of the new empty /home. What's the best way to do that? Should I use 'dd'? Should I use Nautilus? Or should I partition-copy that copy of the 10.10 onto available space on the thinkpad 11.04, then manipulate the partitions to consolidate? Maybe create a separate /home partition?

View 4 Replies View Related

General :: Generate Html Based On Directory Structure?

Jul 22, 2010

does any one knows a linux based program/script that can generate html files based on directory structure?

View 1 Replies View Related

General :: Mouse Single-click Equals Double-click - Can't Select The Entire URL By Clicking

Apr 13, 2011

when i click my mouse on something, it sometimes registers as two clicks. it doesn't happen all the time, but frequently enough to be annoying. for example, when i click a videos video to pause it, it often opens into fullscreen (which you normally click twice to do). also, in the url bar of chromium, i can't select the entire url by clicking. i now need to use ctrl+a. that's also because when i try to select the url, the highlight randomly disappears.

if i have multiple windows open, my click on the first "x" of the top-most window also closes the next window. i'm on linux mint 10. it's not really important, but it drives me crazy sometimes when my mouse doesn't work the way i want it to.

View 3 Replies View Related

General :: Commands To Save Md5sum Of Files In A Folder Into A Text File?

Sep 14, 2010

I've found these commands in [URL]:

Quote:

find -type f -print0 | sudo xargs -0 md5sum | grep -v isolinux/boot.cat | sudo tee md5sum.txt

But I don't understand these commands, even after reading their manuals.

View 4 Replies View Related

Programming :: Eedirect Stderr To File Including Name Of File With Error

Jul 26, 2010

It's kind of pointless imo for the types of errors that Exiv2 reports on to be written to a text file without some reference to the name of the file that prompted the error message in the first place. Is there a way to have bash identify the file that prompts the error and writes its name to the same file as the error (in my case, frencherrors.TX)?I've tried a painfully simple syntax that does something identical to a 2>&1 'suffix", namely frenchgentsfinder.sh 2 $file>>frencherrors.TX. It makes sense to me as written, but I'd like to know why I'm getting nothing on screen and everything directed to the file when what I want to see in the latter are the filenames causing the errors along with the text of the errors.

Is there another level one has to bore down into before they can garner this kind of output? If so, what is it and how does one invoke it in bash?

View 11 Replies View Related







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