General :: Compress .gz Folder With All Contents Inside Sub-folders / Images?

Oct 5, 2010

How can i compress to .gz my folder public_html:

media/sda7/user1/public_html/

I want all files and folders and subfolders and images and everything inside of public_html. Also to be saved on the same folder so i can find it easy How can i do it?

View 4 Replies


ADVERTISEMENT

General :: Copy Folder Hierarchy / Recreate All Folders From One Directory Without Copying Over Contents Of Folder?

Jul 2, 2010

Is there a way to recreate all the folders from one directory to another without copying over the contents of the folder? I've been trying to do something like this,

Code:for i in `ls $X`; do mkdir $PATH/$i; doneUnfortunately $i is deliminated by whitespaces in the filenames and not the actual folders.

$X contains only other folders so I dont have to worry about regular files but any kind of more "advanced" solution would work.

View 1 Replies View Related

General :: Directory - Find Folder Inside Sub Folders

Jan 21, 2011

I am trying to find a directory named 480debugerror nested under child directories. I don't know the exact path, or even if I have the exact spelling of the directory I ant to find.

Is there any linux command to find directories with a given prefix or suffix, for example directories with a name of debug or debugerror, with unknown some prefix or suffix?

View 3 Replies View Related

Fedora :: Compress A Folder By Right Clicking And Selecting Compress - No Such File Or Directory

Feb 18, 2011

I am trying to compress a folder by right clicking and selecting Compress...I get the following error:

An error occurred while adding files to the archive.No such file or directory

I want the folder and its content to be compressed to a .ZIP file which is natively accessible by Windows.

View 6 Replies View Related

Ubuntu :: Collapsing The Contents Of Sub Folders Into The Parent Folder Via Terminal?

Aug 4, 2011

I have a parent folder, with a lot of sub folders. basically, i'd like to bring all the contents from the sub folders into the parent folder, and subsequently delete the sub folders. is there one command for this? or do i need to cp -r over and over again, and then manually delete?

View 1 Replies View Related

Ubuntu :: Renaming Multipal Folders \ Want To Give Some Prefix No. To Folder Only Not The Files Inside?

Jun 8, 2011

I have around 150+ folders in one directory. All contains some pdf files. Now i want to give some prefix no. to folder only not the files inside. How can i give the prefix to all my folders?Eg : Suppose i want no. 8562 then i want it like as follows

OLD FOLDER NEW FOLDER
ABC/ 8562-ABC/
AABC/ 8562-AABC/

View 2 Replies View Related

General :: Compress Some Folders Containing Backup Files From Last Year?

Jul 24, 2010

Today I tried to compress some folders containing backup files from last year. I right-clicked on the folders and selected compress as tar.gz. I let it work, and found that hours later, the folders were still compressing. How long is it supposed to take, anyway? I was trying to compress the two sets of backups simultaneously; together they're around 1.5 GB. They have many subdirectories.

View 4 Replies View Related

General :: Listing TAR Contents Inside Directory

Jun 16, 2011

This is the script I'm running
tar tf some.tar somefolder_insidetar
And output it's a list with all folders, files, and SUBDIRECTORY Files, the only thing I need it's just show the contents (folder and files) of the current directory choosed, not listing subdirectory files, or subdirectories inside subdirectories.

View 3 Replies View Related

General :: Command Line - Move Folder Contents Into Parent Folder

Jun 11, 2010

I have a folderA that contains folderB that contains a lot of files. I would like to get rid of folderB, but not its contents. I want those contents to be inside of folderA. How can I accomplish this on the commandline?

View 2 Replies View Related

General :: How To Delete All Folders And Their Contents Except 3

Jan 28, 2010

I have a USB drive that has a TON of folders on its root level. I want to remove all those folders and their contents except three of them. I know if I do rm -rf that will kill everything, is there a way to exclude three folders, say folder1 folder2 newfolder, and do it all in one statement?

View 3 Replies View Related

Ubuntu :: Hiding Folders Inside Of Shared Folders?

Mar 27, 2010

I am setting up a lubuntu nas with all of my music, movies, etc on it. I want to give my kids access to my mp3 directory, so I can move all of the kid appropiate music into the root of my mp3 dir, in the same order I have all of my music sorted. Under the Music folder, I have them sorted, in folders, by letter. So A, B, C, D, etc... Now, in those folders are the respective artists. So where there may be something approipate in the P folder (say, Paramore), there is something inapproipate (say, Pantera)Now, when the kids go to the P folder, I don't want them to even see the Pantera folder. I just want them to see the Paramore folder. I tried a test using chmod 711 and chmod 700 on a directory with a test user, and the user can't access the directory, but can still see it

View 3 Replies View Related

General :: Zipping Folders And Their Contents Into A .zip File?

Nov 23, 2010

How do I make a .zip file that contains every file AND every folder in the directory?

View 4 Replies View Related

Ubuntu :: Compress And Encrypt Files / Folders?

Oct 30, 2010

I currently have a bash script that runs and backs up my daily files onto a separate partition using Rsync, but I thought it would be good to use the Ubuntu-one service as an ADDITIONAL backup for really important files.

How do I compress then encrypt those files, and can I add any commands that will do this to my existing bash script?

I am running Ubuntu 10.04

View 1 Replies View Related

CentOS 5 :: Compress Files / Folders With Low Priority

Oct 23, 2009

Is there is anyway, with tar, zip, gzip, or any file compression type to compress without causing high CPU. In other words, limit how hard the CPU works to compress it? Of course I understand that this would cause the compression to take longer but time isn't too big of a concern.

View 3 Replies View Related

General :: Display Only Folders That Have Changed Inside Of Two Different Directories?

Mar 2, 2011

How can I display only the folders that have changed inside of two different directories?

PHP Code...

Will this suffice?

I am trying to see what new directories were added between my working build and a new onefor a project that I working on.

View 1 Replies View Related

General :: Splitting 15000 Images In Sub Folders?

Dec 26, 2010

I have a folder with 15000+ images! How to (using bash) mv the files to sub-folders a/ b/ c/ d/ e/ f/ g/ h/ i/ j/?

View 6 Replies View Related

General :: List Folder Size And Number Of Files And Folders In Folder?

Nov 23, 2010

In Linux bash shell, for a given directory, how can I list:The create date for that directory The number of files in that directory The number of subdirectories in that directory.

View 3 Replies View Related

General :: SVN Multiple Commands Single Revision - Add New Folders (with Contents) To The Repository?

Jun 18, 2010

I want to do something like svn add dir1 dir2; svn ci dir1 dir2 but have it be only 1 revision. Is there a way to do this? Is this the correct way to add new folders (with contents) to the repository? We are restructuring the trunk, so I cleared it out and plan on putting these directories with their contents in it.

View 1 Replies View Related

General :: How To Create A Folder Inside A Tarball

Jun 9, 2011

I created a tarball with multiple files. The rpm generator requires those files to be inside a folder. I don't want to move the files before generating the tar. Is there a way to create this folder while generating the tar or after it?

View 1 Replies View Related

General :: Give Permission To See A Folder Contents?

Sep 23, 2009

I have a folder name is /home/kemal. I want to give a permission to an user name is kaplan. I want to see this user name is kaplan that must see kemal folder's contents.

View 1 Replies View Related

General :: Show Size Of Folder Contents In Ls Or Some Other Command

Sep 29, 2010

I know these folders each have >80gb of files. Yet, they only show 4.0K in ls -lah? How can I have ls show size including the contents?

[root@aapsan01 aapxen01]# ls -lah
total 48K
drwxrwxrwx 6 root root 4.0K Sep 29 03:45 .
drwxrwxrwx 15 root root 4.0K Sep 27 09:15 ..

[Code]....

View 4 Replies View Related

General :: Copy Entire Folder Contents To Another Using PUTTY?

May 2, 2011

How to Copy the entire folder contents (including sub-folders and their contents) to another folder using PUTTY? Is there any command for that?

View 3 Replies View Related

General :: Find Contents From Recycle Bin That Were Put Into One Folder - Name Unknown?

Oct 13, 2010

Recently I did a System Mechanics clean-up of invalid and other misc files. The files were moved to the recycle bin, but I couldn't open a file individually while it was in the recyle bin in order to double check whether or not I wanted to perminently delete it. I then selected all items and moved them to a single folder hoping to open it later to review the individual files.I don't know the folder name or what part of the computer this folder was moved to. Is there a way I can find this new folder, name unknown, that was created on 10-12-10? I'm sure it's taking up valuable space in my computer and I want to permently delete the unwanted items individually and not as a whole batch.

View 1 Replies View Related

Programming :: Script To Check If Compress Folder Is Corrupt Or Not?

Feb 14, 2011

I am trying to compress a folder and the contents within, while keeping the permissions the same. I then need to check if the compress file is corrupt or not. Base on that result I need to transfer the file.

cd /home/ops/Desktop/temp
tar cvzfp backup-"$(date +%d-%b-%y)".tar.gz /home/ops/Desktop/dir1
gunzip -tl backup-"$(date +%d-%b-%y)".tar.gz

View 2 Replies View Related

Ubuntu :: Folder Customization - Put A Different Image On Each Folder To Represent The Contents

Jan 3, 2010

I have a bunch of folders with different stuff in them. I would like to be able to put a different image on each folder to represent the contents.

View 8 Replies View Related

Ubuntu Servers :: Show Folder Contents In Another Folder?

Feb 2, 2011

can i use one samba share with a folder showing the contents of another directory.shortcuts don't work on non ubuntu systems and it won't resolve links to files no on the share

View 5 Replies View Related

General :: Copy Images From Diff Folder In Shell?

Apr 20, 2011

I have 500 folders of templates in one folder. Now each folder has file called template_thumbnail.png . now i want something so that all those files get copied to one folder with name same as the home folder name

I have cygwin installed and i can copy that folder in there so basically it will linux shell script

View 1 Replies View Related

Ubuntu :: Cp - Copy Only The Folder Contents To New Folder ?

Feb 21, 2010

I should know this but I figured I'd ask before I screw something up.

What is the command to cp just and only the contents of a folder, not the folder itself, into a new folder?

Code: cp -R /path/to/folder/ /to/new/folder/

Is this right?

View 6 Replies View Related

Ubuntu :: Displaying Folder Contents In Another Folder?

Jul 26, 2010

Is there a way to essentially make all of one folders content as a system link in another folder (I have "My Documents" on my external and my computer, they have different things, I'd like to have one "My Documents" which shows both contents and hide the other two

View 3 Replies View Related

Ubuntu :: Command Line (write A Short Script That Will Compress A Specific Folder) - 7zip

Oct 6, 2010

i need to write a short script that will compress a specific folder that`s on the Desktop (and all it`s content) and also will encrypt it with a password that is inside the script --->meaning it wont ask for a password+verification when compressing+encrypting

View 1 Replies View Related







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