Ubuntu Servers :: Does Unzip/untar Always Append Files To Existing Folders

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


ADVERTISEMENT

Server :: Find And Unzip Selected Sub Folders In Tar.gz Files?

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

OpenSUSE :: Append Text To An Entry In An Existing File?

Aug 30, 2010

How do you append text to an entry in an existing file? For example, lets say I have a file called "env.logon" in /home/myself/bin that contains the following text:

PATH=/bin:/sbin If I wanted to add, via command line, ":/usr/bin:/usr/sbin" to the PATH= and I
used the "echo" command (echo "PATH=:/usr/bin:/usr/sbin) it would create a second entry and my file would look like:

PATH=/bin:/sbin
PATH=:/usr/bin:/usr/sbin
What I want is for it to look like:
PATH=/bin:/sbin:/usr/bin:/usr/sbin

Is there a way to get this result via command line?

View 3 Replies View Related

General :: Untar A List Of Tar Files?

Jan 5, 2011

untar a bunch of files located in different folders, with folder deep unkown.Found an old post about this matter but the suggestion extracts all files in the same folder (your current).I wan't to extract files to the same folder as the tar file.The solution from the old post (extracts all files to current folder)find . -name "*.tar" -exec tar xvf {}

View 1 Replies View Related

General :: Untar And Only Extract Those Files That Are Above A Certain Date

Jun 16, 2010

Is there any way to untar and only extract those files that are above a certain date including directory structure??

I restored a backup on a play server but it was a few days old. However I have a tar archive of the entire structure that is more up to date and healthy so now I want to extract all files (including directory structure) based on a date filter on the files if possible?

View 2 Replies View Related

Ubuntu :: Unzip Command, Finish Before All Unzip Is Done?

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

Ubuntu Servers :: Auto FTP All Files And Sub Folders?

Jul 27, 2011

Ive been trying to figure out a method to upload (copy) all files and sub folders under that folder to my content delivery network, basically run it every 30 minutes.

Whats the best way to do it? I tested a few that I was reading about, one just copied files nd not sub folders, another moved all files.

View 3 Replies View Related

Ubuntu Servers :: Uploading Files / Folders Through SSH?

Sep 1, 2011

I am done setting up an ubuntu server on Amazon Cloud Service.

I connect to it via SSH.

I would like to upload my website into the /var/www folder through SSH. I would like to upload a complete folder's worth.

View 5 Replies View Related

Ubuntu Servers :: Vsftpd - Can't Access Files/folders?

Sep 26, 2010

1- I've set up 3 virtual users,one of them is a system one (with a different password) and writes on his own home folder. With this one I haven't found any problems yet, but with the other 2 users I can't access files/folders created by them. It's a permissions problem for sure, but I'm not sure how to correct it.With these users I can upload files, create files and create folders. The problem is I can't access what I create (I can't enter a folder I created but it is there and I can upload files into it).

2- Whenever I turn on ssl_enable=YES I can't access the server (even from the server itself when I connect to localhost, It's a regular Ubuntu installation).Here's the config file for the users:

Code:
write_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES[code].....

View 7 Replies View Related

Programming :: Append Contents Of One File To Another Existing File?

Nov 17, 2008

I have two files list1.cfg and list2.cfg both files contains differentrecords details like

List1.cfg
NAME1:25:C:NAME LINE1:
NAME2:25:C:NAME LINE2:
CITY:25:C:City:

[code]....

Now I want to append contents list2.cfg to list1.cfg(It ispposible using cat list2.cfg >>list1.cfg) but I want to check if content of (record) in list2.cfg is present in list1.cfg then dont append it otherwise append it.

View 1 Replies View Related

Ubuntu Servers :: Set Permission For Future Public Files / Folders?

Jan 2, 2010

I just set up an VPS with ubuntu. I made a user1 and gave it ownership

Code:
chown -R user1 /home/www

This user also have been given all the root privileges (I know it is not recommended!)

The problem is that each time I make new site, and user1 wants to upload (through ftp) files to /home/www/newsite I need to redo the the above command in order to be enable user1 to upload. Not only this, I need to rework permissions (744 for folders and 644 for files), otherwise the newsite throws permission errors message.

View 2 Replies View Related

Ubuntu Servers :: Cannot Access Files / Folders In Www Directory / LAMP

Jan 21, 2010

Just installed lamp, I can access phpmyadmin mysql is set up and everything. When I try to view a directory [URL] I get an access denied error.

EDIT: I changed the permissions of the "folder" folder itself, I can access everything in that directory now but not any other folders in it. Do I really need to go through every folder every time and change the permissions?

View 4 Replies View Related

Ubuntu Servers :: Way To Control Access - Some Files/folders Would Even Need To Put In A Password

Apr 11, 2010

I've managed to setup Ubuntu Server 9.10, and created folders/files toview/edit/execute with Windows and Mac.

Now here is my dilemma, this is for a home server, and I will have 4 users(1 for myself, one with "admin" rights, my fiance(mac user), media pc, and a "guest" account for the computer or 2 that are out in the public(they don't need access to my taxes ).

I'd like to have it so that on my laptop, I can access the whole server, but some files/folders would even need me to put in a password. I want to do this because my fiance gets delete happy and deletes things, so if she goes on my computer she won't delete important info. I'd like her to have access to music, photos, and videos, as well as her having her own folder that she can treat as her hard drive.

The question is, do I need to setup a domain for this, or can I get away with a workgroup?

View 2 Replies View Related

Fedora Servers :: /var/www/html - Not Allowing To Do Any Changes/create The Files Or Folders

Aug 8, 2011

I m able to do the changes in the home directory of the users' but when it comes to the /var/www/html folder, it's not allowing to do any changes/create the files or folders

I m able to view the files and it's contents

Global Settings:

View 4 Replies View Related

Software :: Syncronization Of Some Files/folders From A Lot Of Servers To One Central Server?

Sep 1, 2010

I'm looking for a Syncronizacion Softwares (running as a daemon) to do a unidirectional syncronization of some files/folders from a lot of servers to one central server.As there are a lot of servers i want a software that only needs to be installed on the central server and pulls the files/folders from the other servers.rsync and unison need to be installed on both machines and syncronize the files/folder by sending them from al the servers to the central server(its no the central server the one who pulls the files/folder from the other servers), so they dont work for what i want.

View 4 Replies View Related

CentOS 5 :: Ability To Unzip Files Using PHP?

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

General :: Unzip Zip Files To Local Directory?

May 5, 2010

How to unzip the zip files to local directory in linux?

View 5 Replies View Related

General :: Xargs And Unzip All Files To Specific Directory?

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

General :: How To Unzip Files On Acer One Running System Lite

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

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 View Related

General :: Gzip Command To Append Some Files

Feb 21, 2011

I have a existing zipped file , I want to use gzip command to append some files to it , I tried man gzip but can't find the key word "append" , can advise how can I do it ?

View 1 Replies View Related

Ubuntu Networking :: User Can't Append To Files In Samba Shared Folder

Jun 18, 2010

I'm setting up a network between 2 pc's where the one should act like "file server" and a normal pc to surf on internet.called ORLA-DESKTOP and the other pc is called OLGA-DESKTOP a pc connecting to the server and automounting the shared folder to the desktop Both pc's run ubuntu 10.04 Lucid Lynx The shared folder is located on the server in /home/orla/svenson

ORLA-DESKTOP have 2 users "olga" and "orla" in a group called "svenson"
OLGA-DESKTOP have 1 registered user "olga" also in group called "svenson"

users on ORLA-DESKTOP can read/write/append and so on and fully manage everything in the shared folder.But on OLGA-DESKTOP the user can make a file on the pc and then drag'n'drop the file the the shared folder, and can also delete files in the shared folder. but cannot create a file directly into the folder like on ORLA-DESKTOP I have 3 configuration files made. 2 for automounting, Located on OLGA-DESKTOP 1 for samba server configurations located on the server ORLA-DESKTOP

The first one is /etc/fstab

Code:

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).

[code]....

To sum it all up the real problem is that OLGA-DESKTOP can't append to files in the shared folder. but users on the server have no troubles doing it..

View 6 Replies View Related

General :: Script To Append Lines To Multiple Files?

Aug 22, 2009

eed to make a script to append a line to the bottom of multiple files (only certain files, but 100's spread over directories).Doing a find replace inside multiple files is easy, I use the followingfind /base/dir -name "*.txt" -exec perl -pi -w -e 's/FIND/REPLACE/g;' {} ;So I tried doing the followingfind /base/dir -name "*.txt" -exec echo "Append this" >> {} ;However this just appends all the text into a file called "{}". Whereas {} should be replaced with each file that's found.

View 1 Replies View Related

Programming :: List All The Files That Don't Contain Pattern1 And Append A New String?

Mar 24, 2011

How to list all the files that don't contain pattern1 and append a new line (pattern1) to those files before pattern2 only once.

pattern1 = /var/script/showMessage.sh
pattern2 = ;;

Code:
grep -c 'pattern1' /var/script/*_cam* | grep :0 | add pattern1 before pattern2 in each file loacted before.

View 10 Replies View Related

General :: Read From Input File And Append To Multiple Files?

Nov 22, 2010

I wanted to be as clear as possible. I have to add hundreds of new servers to hundreds of configuration files in Nagios. Here is a sample structure:

servers.txt has:
SERVER3
SERVER4

[code]....

View 10 Replies View Related

Software :: Updating Files With Rsync Using --append --partial Options?

May 16, 2010

I'm trying to download a large (~18Gb) file using rsync from a server to a client, but the server, for an unknown reason, kills the connection after a time, when I've downloaded only about 8-10Gb.How can I continue the downloading of this file?

I've tried using the --partial option, but it just restarts the download from zero again. I've tried adding "--append" but I get "rsync: on remote machine: --append: unknown option" because the version is 2.6.3 on the server (and 3.0.6 on the client). I don't have control of the version on the server.

View 1 Replies View Related

Server :: Append A Set (or Sets) Of Data To A File(or Files) On Remote Hosts?

Dec 26, 2009

If I need to append a set (or sets) of data to a file(or files) on remote hosts what is the best mechanism by which to do that? My first thought was ssh but the command syntax to append to a remote file isn't clear to me. Can anyone point me in the right direction here?

View 4 Replies View Related

General :: Difference Between Using "jar Xvf" And "unzip" To Unzip The Zip-file?

Aug 27, 2009

difference between using "jar xvf" and "unzip" to unzip the zip-file?

View 4 Replies View Related

Ubuntu :: Unity Files And Folders Search Doesn't Show 'old' Files?

Jul 20, 2011

I have noticed that the files and folders search in Unity, only shows up those files which have been amended (or possibly just opened) since the install.

i was wondering if there was a way i could have the search index (or something vaguely equivalent) all the files on my machine. This is especially important given that i reinstall the OS every six months on a new distribution cycle, copying all my old files across.

Without being able to see my old files the search is pretty much reduced to a recent history search.

View 3 Replies View Related

OpenSUSE :: Dolphin Losing Files When Copying Many Files Or Large Folders?

Feb 14, 2010

I've discovered that Dolphin seems to lose random files when copying many large folders.

I first noticed this a few months ago when I tried to copy my music library from one folder to another on the same HDD. It consisted of around 600 folders and 6500 files. During the copy there were no errors but after the copy I found that some of the newly copied folders were missing files. I put it down to human error or a glitch.

Yesterday I tried to copy 13 folders containing rips of some of my DVDs. Each folder basically had one film of either 700MB or 1.4GB. Again no errors showed up during the copy but I found 3 of the newly copied folders were empty.

It's not so critical with music or films but I can't afford to lose work data like this.

Has anyone experienced or seen a similar problem with Dolphin? I'm going to have to do some more extensive testing but this is not good.

The first time I noticed the problem I was running KDE4.3.4 (I think) and now the latest was with KDE4.4.0.

View 9 Replies View Related







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