General :: Add Files/folders To A Tar File?
Aug 31, 2010Is there a way to add files/folders to a tar file?
I am using the tar command for compression.
Is there a way to add files/folders to a tar file?
I am using the tar command for compression.
I am looking for a script/advice or guidance on how to write a script so that when I use the 'del' command it removes/sends the files/folders to a I specify for example 'dustbin
View 13 Replies View RelatedIs possible to make a folder permission like below?
-User can create files/folders in the shared folder.
-But the files/folders they created, cannot be delete/change by em.
(only can be delete by root users)
-Each new files/folders created will auto owner to root only.
I've just read that I can't change the file permissions of files and folders if they are sitting in what was my old Windows D: drive. Is this correct? If so what is the work-around?
I don't want to have to cut and paste that entire D: drive's contents over to a recognised Ubuntu folder. I had in my mind that this D drive would continue to be my data dumping ground, to which I need read/write access to.
With Ubuntu 9.10 and 10.0.4 I have seen that the nautilus filemanager is extremely slow with folders that contains many files or/and folders.I made sure that "Assistive Technologies" is diable. On the filemanager preference I set all preview to "Never", tried all possible views, but the filemanager remains extremely slow. It seems like it becomes even slower when the subfolders in the folder you are viewing new files are being created by for example a program. Possibly nautilus filemanager is updating continuously ?
I use to be using debian etch nautilus file manager. With the same directories, nautilus in debain etch was working much faster. But contrary to the one in Ubuntu 9.10 and 10.0.4 is is far less stable. It seems like the newer version is more stable but however extremely much slower. I was wondering if I am missing something. Or whether this is a bug. If it is a bug, then I am wondering when this is going to be solved in nautlius filemanager.
I have many files and folders in my source folder. I want to copy some files and folders from that source folder to destination folder. What should be require to given with the "cp" command?
View 1 Replies View RelatedUsing C++, I want to process sub-folders on my home folder sequentially each with a special naming format and containing some binary files in it:
Code:
1/
2/
3/
4/
5/
6/
...
Give above folders, I will process files in 1/ at first, 2/ at second, 3/ at third, and so on.
For some n/ folder, if I realize that n/ actually does not exist in local file system, I do not want to wait for it. Hence I will keep processing (n+1)/ folder, and so on.
However, when processing some (n+m)/ folder, previously not processed n/ folder may have been created on local file system. In this case, I do not want to miss processing it, but somehow detect its creation and process it. After processing n/ folder, I want to continue from (n+m+1)/.
Many folders within a subdirectory some of which have lots of data in and some of which have only one specific file called produkt.fil inside.I need a command to find and delete those folders that contain ONLY the file produkt.fil - if other files exist (doesnt matter what they are) then they should be left alone. Note: produkt.fil exists in all of the folders always.
View 5 Replies View RelatedI have a directory (let's say A) with a few hundred files and subdirectories and a copy of this directory (let's say B). All the files and subdirectories in B have a newer date than A. However only a few of them are really changed files. Is there a way to find those files and directories? Basically they have different sizes so this could be used to compare them with the files from A.
View 3 Replies View Relatedhow to access files and folders on alive computers on my college LAN,i hv angry ip scanner installed but it only lists the computers on lan,whereas i want to access files(e.g copying,etc) on others computers(in the same way we do in advance ip scanner in windows). i am using ubuntu 10.04 LTS
View 1 Replies View RelatedAt the moment I'm using:"cp -ap . /destination-folder"to copy everything from the folder I'm in to another folder.That works.Is it possible to cp everything except:folder1/folder2/in the current folder I'm in?
View 2 Replies View RelatedHow would I go about finding all the folders in a directory than contain less than x number of .flac files?
View 2 Replies View RelatedIn linux, why are folders for configuration files always named *.d?
View 1 Replies View RelatedUnix - In Linux, how do I move all files and folders into a new directory?
View 4 Replies View RelatedI use the following command to find files which are older than 60 days:
find /myfolder/* -mtime +60 > /myfolder/file.list
Now I want to find out the file size of all files contained in file.list in summary using the du command:
less /myfolder/file.list | xargs du -sh The du command prints the file sizes of every single file but not the summary and this is actually what I want.
I have two folders - Folder abc and Folder xyz which contains 1000's of files with few of them having the same file names. How can I remove the duplicates from Folder abc?
View 14 Replies View RelatedI want to know how much damage a user can do on my system if he decides to delete everything (or write to in case of corruption).What command or script might i use to check this?
View 3 Replies View RelatedIs there any Linux application for finding the folders with the most number of files? baobab sorts folders by their total size, I'm looking for a tool that lists folders by the total number of files in it.
The reason I'm looking is because copying tens of thousands of small files is excruciatingly slow (much slower than copying a few large files of the same size), so I want to archive or delete those folders with high file counts that that will be slowing down the copying (it won't speed things up now, but it would be faster when I need to move/copy it again in the future).
i am facing a problem regarding permissions. how can i set 775 permission for all newly created files and folders. when i give chmod -R 775 /data permission is getting to all files and folders. but when i create a folder i wont get that permission. i want this 755 permission should be permanent for all old and newly create files
View 7 Replies View RelatedI need to recover some folders and some files from my CentOS 5.3 X86_64 linux machine ext3 partition after I have deteled them with rm -rf command. After I have deleted the files (*.exp extension) and folders with rm -rf command, I have written a big archive 70GB on the same partitions but in a different path. I know that in windows if I do that, there's no way I can bring back the deleted files, 'cause the OS writes the information in the same cluster and therefor I can't bring back the files. I hope you guys understand what am I saying.
what program (that knows all extensions, or dosen't read a specific extension/extensions) can I use in order to get the date back ? I have used foremost and it worked, but this programs knows only specific extensions, like exe, jpg, avi, mpeg, etc and not my *.exp extension. The foremost program worked perfectly, but it dosen't know the *.exp extension that I need, in order to get the data back that has that extension.
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 RelatedI am basically Linux/Ubuntu illiterate.(just in case the question itself did not make that clear)
View 14 Replies View RelatedI wanna copy all folders and files created from 01.01.2011 until today to new placeie:cp -r /home/moviecar/public_html/wp-content/uploads/ /home/teaser/public_html/wp-content/uploads
View 4 Replies View Relatedis there any way to recover deleted files and folders in redhat9.because one of my user delete one folder through samba.please advise me or any other recover tools.
View 4 Replies View RelatedOur client has a website (Joomla 1.5 based) to promote participation in and report results of a 10k race for runners in Scandinavia...
The race is scheduled for late June and will be covered by at least 5 still photographers at various points along the race course.
There are to be about 5,000 runners, each entered under a shirt number like bib_1000 through bib_5999, and this means there will be a significant number of digital jpg files submitted by the photographers...
The client has in place some software which will "automagically" resize, watermark, and rename the individual files in the form:
And so on with a possibility of as many as 10 or 12 images in the aggregate with the same alpha-numeric "shirt number" at the beginning of the filename.
Our presentation software does a great job of handling thumbnail image generation and displaying a slideshow in a lightbox of all files within a given folder on the webserver.
And now finally the question...
Given a folder containing 25,000 or so *.jpg files, how can we write a script that:
1. parses the filenames to unique "shirt numbers"
2. makes folders with each "shirt number" as the foldername
3. moves the files from the root of the original folder into the appropriate "shirt number" folder.
Note that the order of my list above is not important, and if you know of a better way to organize the task we are fine with that.
I am trying to hide some folders in Ubuntu Linux which are always hidden in Windows through File/Folder Attributes (attrib -h)
It is not an option for me to rename the folder from let's say "Ancient texts directory" to ".Ancient Texts Directory" because the programs associated with these files and shortcuts will not work in Windows. I would like to make the folder hidden by not renaming the folder. Is that so hard to ask?
Is there really no other way of making a folder or a file hidden in Linux just like in Windows by Applying Attributes? I Don't want to rename it by putting a dot in front of it. Moreover renaming a file by putting a dot in front of the name changes the position the folder appears in the list view. For some people this may be ridiculous, but for me with a few hundred files and folders and subfolders, this organisation is important, aside from the aforementioned reasons.
I need to maintain compatibility between the two operating systems' basic folder structure as i must use both Operating systems.
Right now by default iam logged in with my account and i want to access some files/folders in my machine, but iam unable to access(also no copy/paste) those because iam not logged in as root user. So is there a way to gain root access over those files/folders in Ubuntu. I know i can do su in command prompt and change the permissions but what is the other way to gain root access.
View 3 Replies View RelatedI need 2 Linux users to share a folder. Within this folder, users should always be able to create files and sub-folders and write into any sub-folder (whether they own it or not). However, they should only be able to edit the files they actually own.
View 1 Replies View RelatedI am using secure delete to remove files from a Debian Linux PC. However, secure delete does not remove folders. This has lead me to look at writing a script that would move files to a predetermined folder for deletion. My plan is as follows:I have a folder on my desktop called shredder where I move the contents of the waste bin to. The script needs to identify all files within the folders and sub folders, within the shredder folder, and move each file to the shredder folder and then delete the folder. At this point secure delete can be used with a command like shred -v -u *.*on the shredder folder.The problem I have is in creating the code to move files from the different folders and then deleting the folders. Note that the names of the files, folders and subfolders will not always be known
View 12 Replies View RelatedI am developing a Web-based application and have some folders that will generally reside outside of the Web accessible area of the server. However, since some people will not be able to store those folders outside of the "public_html" folder, I am looking to put a blank "index.php" inside of every folder within that section of the application. To make things easier, I would like to know if there might be a way to recursively copy one file into every folder in a certain location.
In other words, is there a command that might do something like:
Code:
> cp -R index.php /home/user/public_html/source-files/*
Basically, I want every directory inside of "source-files" to get a copy of "index.php". The directory hierarchy within "source-files" can go at least three or four levels deep, so the command would need to be recursive. I am looking for a command-line statement that I can type to perform this action.