General :: Copy Zipped (my.zip) Files From Windows To Systems And Unzip Them Without Any Corruption
Jun 11, 2010
Is it possible to copy zipped (my.zip) files from Windows systems to Linux systems and unzip them without any corruption.
I know the command unzip is available, but I want to know if this copying from WIndows to Linux could lead to file corruption.
View 7 Replies
ADVERTISEMENT
May 6, 2011
So I have a script that simply unzips a file with a line:
unzip /path/to/file.zip
which unzips and puts the unzipped directory in the same directory as my script. The issue is, I want the unzipped directory to be in the same directory as the original zipped file.
I googled and found the -d flag which would let me specify what directory to put it in but the script asks the user to define the directory so I don't see how I could use that (because the user specifies the path all the way to the zipped file, not just the directory where the zipped file is)
View 2 Replies
View Related
Jul 16, 2011
I have a NTFS drive mounted at /media/bigbrother as my user. I have no trouble reading or writing to files here. I just created a link to /var/www using: ln -s /var/www /media/bigbrother/
The link is there however, I can't even open the folder. How should I go about getting access. So that I'm able to copy files from other systems on the network.
View 1 Replies
View Related
May 14, 2010
I have to copy and move files over two systems all the time. So when I am on system 1, I simply use the command
Code:
$scp * system2:/some_directory
There are many files in PWD of system1 with different extensions. Of all the files in the PWD on system1, I don't need a file called *residual.dat as it it particularly big and wastes a lot of time copying.How can I make a shortcut so that every time I do scp, it copies everything but the *residual.dat file?
View 1 Replies
View Related
Jun 24, 2010
i wanna transfer files from my windows pc to linux server.
suppose i have a file structure like this:
img /
logo.gif
css /
style.css
index.php
i tar.gz the directory, then upload, and then tar-xvzf the uploaded file. but the result is 3 file in root like this:
imglogo.gif
cssstyle.css
index.php
when i use zip instead of tar.gz it breaks the structure. i.e. it unzip some directories as empty files. fr examples it makes an empty file named img.
what's the reliable solution to transfer files between windows and linux?
View 1 Replies
View Related
May 5, 2010
How to unzip the zip files to local directory in linux?
View 5 Replies
View Related
Jun 22, 2009
I'm trying to find all zip files timestamped from the past 7 days, then unzip them into a different director.I tried the following, but it only unzipped one of three files that meet the 7 day criteria. What am I missing?Code:find /home/user/public_html/zip_files/ -iname "*.zip" -mtime -7 -print0 | xargs -n10 unzip -LL -o -d /home/user/public_html/another_directory/
View 1 Replies
View Related
Jun 26, 2010
I have downloaded an update of mozilla firefox but don't know how to unzip it. Do I download it to disc(hard drive) or do I download to xarchiver? Then how do I unzip it.Do I have to unzip all files the same way?
View 7 Replies
View Related
Jul 22, 2010
I'm having a problem with my hard drive. Windows can't even open it. I run DSL linux and successfully moynted the drive so I can view my file structure. I thought I just connect my other windows HD, mount it and then just copy all the folders I need. Unfortunatelly I'm getting cp: cannot create directory blabla - read-only file system. Is there a way at all to copy NTFS files in Linux?
View 7 Replies
View Related
Jun 7, 2010
I am running some Pcap files through editcap and then tshark. I am running fedora 11. This will create a couple of thousand text files all numbered sequentially 1-x. How can I copy these files across a network(I connect using putty) or how can I copy them onto an external HD so that when I view them on the windows machine they have the right formatting (Windows know to open them with wordpad/notepad) basically that windows knows that they are text?
View 11 Replies
View Related
Jun 30, 2010
I need a command-line method of copying files from a Linux box to a Windows machine that is in a domain and requires authentication. I cannot install additional software or services on the Windows XP machine. I can install any software on the Linux machine. I've tried scp, but the connection failed and if my understanding is correct it is because scp requires that the target (windows machine) be running an ssh service. Is there a command-line linux utility that can pass Windows domain user and password and then copy a file from the linux machine to a share on the windows machine?
View 1 Replies
View Related
Jun 15, 2011
Lets say I log in to bash, open a file in vi, then using alt-f2 I open a new terminal. After logging in I navigate to a second file and open that in vi. How can I CnP between these two files?
I found this from [URL]. I'm not familiar with this command shift-8-y-y. I follow the vimtutor and use virtual mode. I tried this sequence and was unsuccessful.
And, I read this about registers. I found a mention of using double_quote-p to 'put' or paste the register, but this does not work in a different file. The second file reported the register empty.
Alternatively, I read in the VIM docs, it is possible to open multiple files under split screens. This may be a course to a solution. The need I often encounter has me navigating in a different bash window to find a file, then wishing to copy between the two. Whereas, I imagine, a split VIM window useful for files in the same directory.
View 6 Replies
View Related
Dec 1, 2010
I have a home build computer that has data corruption problems at boot time. I have exhausted all the troubleshooting steps that I know to try. Do you have any additional troubleshooting techniques that I should try?
Symptoms: I run both linux(ubuntu, mint and fedora) and win7 on this machine.Sometimes I have just one installed.Other times both in a dual boot setup. The OS installs just fine.The system runs just fine for a while.Then it fails to boot.At first I can fix the boot problems with grub or bootrec (/RebuildBcd, /FixMbr or /FixBoot) as indicated by the error messages.Eventually the system fails to boot at all and I have to wipe the disk(s) and reinstall the operating system.The linux installs seem to last a bit longer. I typically have linux running for a month before the troubles start, but I have to repave and rebuild within 3 months. The windows installs last at most 2 weeks before troubles develop. The system is turned on for the day or evening then turned off overnight.Once the system has booted all checks that I have run pass. On windows fciv.exe, sfc.exe have never deteced and troubles. On linux tripwire shows everything unchanged. Chkdsk and fsck have never reported errors.
Hardware:ASUS M3A78-EM motherboard. 2x2GB kingston memory from the ASUS QVL for this motherboard.I have used two hard disks in this system.WD caviar black 640G (WDC WD6401AALS-00L3B2).Seagate barracuda 7200.7 (ST3120026A).On some rebuilds I have used just one of the drives, sometimes I have both installed.The DVD burner is a LG 4x (HL-DT-ST DVD-RAM GH22NS30 ).The power supply was originally an el-cheapo Allied unit that came with the case.That has since been replaced with a Seasonic X650.And that is all that is in this system. I use the onboard video, sound and network. I have never plugged an external device into the system (not even a USB flash drive!).
Trouble shooting so far...I have run the memtest utility from both the ubuntu CD and the windows DVD many times. Even when run for several day neither test utility has ever found a memory error.I have run the seagate and western digital provided test and diagnostic tools on both of the hard disks. I have done this on both the unstable ASUS M3A778-EM system and a very stable gateway system.I have swapped out the HDD cables several times.I have replaced the cables with new cables and with cables pulled from a stable system.Because the corruption happens only at boot time I suspected the power supply was having problems under the extra load of disk spinup.So, I replaced the power supply. No success.
I have run the system with every version of the MB BIOS from the version that it shipped with to the latest and greatest. The BIOS upgrades made no noticeable difference.I have enabled and disabled automatic updates on both win7 and ubuntu linux. That made no noticeable difference.That is it. That is all the troubleshooting ideas I have had.
View 2 Replies
View Related
Aug 11, 2010
There are a number of shares on the destination system; for the purposes of this thread I used D$ and F$ (corresponding to those partitions). These shares are mounted permanently via CIFS (entries in fstab) on the source system.Today I copied an ISO image of some 3.5 GB from source (S) to destination (D). md5sum on S gave a different checksum for the source ISO than that calculated by HashCheck Shell Extension for the destination ISO. I know some would argue that I shoud use the same md5sum programm for both images.
To circumvent that I 7zipped the ISO, verified it's integrity and copied that archive from S to D. Verification of the acrchive by the Win version of 7z failed.To see if it's a protocol problem I copied both ISO and archive of ISO to another D this time using sshfs (it's an Ubuntu server). Flawless copies.Then I copied both files to another Win-based server on the same network. Flawless copies.Mystified, I checked the partition's file system integrity (NTFS) where the errors occured. Minor inconsistencies (no errors according to chkdsk). So I copied both files again, once to another partition (D:) of the original D, once to that partition causing the error in the first place (F:).
(D:): archive corrupt, checksum okay
(F:): this time around both okay.
What the hell can I do to nail down the problem?! I don't even know whether it's a problem of the source system or the destination.
View 1 Replies
View Related
Jul 11, 2010
Problem is what unzip command, finish before all unzip is done.
Code:
#!/bin/dash
cd /home/ftpuser/www_base/
[code]....
View 3 Replies
View Related
Apr 13, 2010
Using PHP 5.2.10 on CentOS 5.4. I need to run a PHP call that will extract all the files from a .zip file. Is there a function to do this or something in PHP I need to enable or install?
View 1 Replies
View Related
Oct 30, 2010
I want to know if there is anyway I can extract the first few contents of a zipped file and then the next fixed and so on? For example, suppose I have a zipped file containing 1000000 natural numbers and I want to extract the first thousand numbers and then the next thousand numbers (1001-2000) and so on till I reach the end. Is this possible?
View 3 Replies
View Related
Oct 19, 2010
I have loaded ubuntu 8.2 on to pc. All went fine and I downloaded kaffeine, i think, in a zip form. How do I unzip it then install it to program file. I also need a translator from windows xp to ubuntu as all the terms are new and different.
View 3 Replies
View Related
Nov 4, 2010
There are few hundred tar.gz files each having several sub dirs in them (ex: ftp_server1_logs, mail_server2_logs). However the main tar.gz files (ex: 20101001.tar.gz) does not contain all sub dirs every time (ex: 20101001.tar.gz may only contain some ftp server log dirs etc..)
what i have to do is find the tar.gz files that contain a specific type of log type (ex: ftp logs) and extract all logs to a single folder (ex: ftp logs)
View 1 Replies
View Related
Aug 31, 2009
If there are patches being done on a linux system, what commands i could use for showing out the files that have been newly added?
View 1 Replies
View Related
Apr 29, 2011
I have to move files between two file systems /inst and /inst2.When I perform 'cp -a /inst /inst2' it copies everything even hidden files and preserves access permissions.But when I perform 'mv /inst /inst2' it also preserves access perms and moves everything besides hidden files.Questions :hy is so ?What tool to use when moving file systems from one fs to another (rsync) ?
View 8 Replies
View Related
May 11, 2010
I am using Backtrack 4 Final, which is a Linux distro that is Ubuntu based. I had a directory that contained around 5 files. I deleted one of the files, which sent it to the trash. I then zipped the directory up (now containing 4 files), using this command:
zip -r directory.zip directory/
When I then unzipped directory.zip, the file I deleted was in there again. I couldn't believe this, so I zipped up the directory again, and the file reappeared again but this time could not be opened because the operating system said it didn't exist or something. I don't remember the exact error, and I cannot make this happen again. why a file that was deleted from a directory would reappear in that directory after it was zipped up?
View 1 Replies
View Related
Mar 4, 2011
Will unzipping always append files if the directories already exist? What about tar?
I unzipped an archive the archive had 3 folders and dozens of subfolders within those. app, skin, js
The folder I unzipped it to also already had those 3 folders as well as many child folders etc.
My website is still working so I'm just wondering. Is this safe or is there anything I should worry about. The other option was to manually upload each file manually that is in those 3 folders and the dozens of sub folders.
View 1 Replies
View Related
Aug 13, 2011
I am runnig WinXP and OpenSUSE 11.4 on dual boot.Generaly i am using SUSE, XP only for UpNP Media Center(server) to watch movies stored on my computer on TV via STB.For this i am using TVersity for wich i not found yet Linux alternative - or better say - i found it but is too heavy for my PC(P4 1.6 Mhz, 768 MB RAM, an dinosaur from Nvidia Vanta with 64 MB RAM)But this is not a part of my question.My question is how to transfer(copy, move...?) files from SUSE to WinXP?A large files like avi, mkv, mostly movies.I solved this to copy them on USB and then from USB to Win.This is a very slow proces because my PC have only USB 1.0And before asked me - all files are legaly downloaded from paysites.From SUSE, partitions(disks), folders and files under WinXP are visible but is not possible to copy files on them - acces is denied.Is there any way to do this?Suse is insatlled on LVM - /root/home/swapI am interesting ONLY to copy files from SUSE to Win, not at al from Win to SUSE.Code:
Directory: /home/janez
Sun Aug 14 07:53:26 CEST 2011
janez@linux-cia6:~> su - root
[code]...
View 5 Replies
View Related
May 15, 2010
Im trying to setup samba so that i can copy some files from my windows 7 machine over to the drive on the opensuse machine running 11.2. i believe i set everything how it should be set up but no matter what i do i cant write filesfrom the windows machine. Here is my smb.conf
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2009-10-27
[global]
[Code]...
View 9 Replies
View Related
Dec 15, 2010
I have have ubuntu 10.10 at work hooked onto a Windows Server 2003. I have pretty much everything working peachy except I can't copy files onto the network drive. When I start my computer, i have to manually go to network places and navigate around until i find my company share drive and then its mounted for the rest of the day. I can read files from the share drive and oddly enough save documents through programs like gimp and open office, however if i go through nautilus to try and copy a file from my desktop to the company share, it won't let me. It just says "Error while copying 'yourfile'" and the details just say "invalid argument."
View 3 Replies
View Related
Aug 27, 2009
difference between using "jar xvf" and "unzip" to unzip the zip-file?
View 4 Replies
View Related
Mar 18, 2010
Possible Duplicates: Dual Booting Linux and Windows XP Booting Multiple Operating Systems I have a machine with Windows on it, and I would like to be able to reboot to Linux. I am certain this is possible. How can I achieve this?
View 2 Replies
View Related
Aug 13, 2010
What limits a file to have some maximum size depending on the Operating System? I do not exactly understand this. If you have the storage space, what else can be the limitation? You should be able to store as much data as you want the way you want (even in a single file) unless you run out of storage space.
View 5 Replies
View Related
Apr 23, 2011
I am in the process of running some benchmark tests on a variety of RDBMS, I am testing three different client operating systems.Would it be terrible to partition the HDD and install Ubuntu, Windows 7 and Solaris 10? If I do not do this, I will likely have to re-install the O.S numerous times due to changes in the database server o.s as well. The same question goes for the server; would it drastically effect the performance to install 3 server o.s on one server?
View 4 Replies
View Related