General :: Copying All .jpg Or .JPG Files From A Folder And All Its Subfolders To /usr/name/pictures Folder?

Sep 10, 2009

How would i go about copying all .jpg or .JPG files from a folder and all its subfolders to my /usr/name/pictures folder? I'm guessing I'd have to use some sort of .[jJ][pP][gG] to get all the pictures from other examples i've seen, but really not sure how to use that in a recursive cp.

View 14 Replies


ADVERTISEMENT

General :: Moving Files From Folders And Subfolders To A Specific Folder?

Aug 21, 2010

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

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

Ubuntu :: Copy All Files From A Folder And Its Subfolders?

May 30, 2010

i have a folder with 250 subfolders and each one of them has (at least) one image in it (along with other stuff)how can i 1)copy all the images from those subfolders and paste them into one folder together (other than by hand, obviously)?2)optional : copy only the images of a certain size and above?

View 2 Replies View Related

General :: Copying Latest 10 Files From One Folder To Another?

Nov 19, 2010

i want to copy the latest 10 files from one holder to another. All the files start with the number 2 and this is what i have so far:

lt -lt 2* | head -10

So i want to copy that output of 10 files to another folder

View 5 Replies View Related

Ubuntu :: Move Files From Folder/subfolders To A Different Directory?

Jan 10, 2011

I would like to know how to move all the files from a single folder and its subfolders to a single, different location in as few steps as possible. For example when I download files from one of my school's websites, the file I want is located in a deep sub-directory. So, I have to cd many times just to get to the file I want. Is there a way to recursively move all the files within a folder's subdirectories into a new location?

View 2 Replies View Related

Ubuntu :: Safely Change Permissions For Folder/all Subfolders & Files?

Apr 1, 2010

I just installed Karmic, but I can't copy an old user's home folder (/home/oldusername/) because everything is owned by root.I read but I'm concerned about messing up the system or the files in that old user's folder.So, how do I adjust the permissions of the files in /home/oldusername so that I can use openssh to copy them over my home network to my other computer? I have the ssh part figured out, but the files will not copy to the laptop due to permissions.

View 9 Replies View Related

Ubuntu :: Copying All Files In Folder To Another Location?

Feb 21, 2011

suppose I have a tree structure like this:

/home/mahmood/sim/a/b/file1.cpp
/home/mahmood/sim/a/b/file2.h
/home/mahmood/sim/a/c/file3.txt
/home/mahmood/sim/d/file4.txt

How can I copy all of them to /home/mahmood/sim. So that when I run "ls" in /home/mahmood/sim, I see all files:

file1.cpp
file2.h
file3.txt
file4.txt

Can 'cp' search for all file and copy them in another folder?

View 2 Replies View Related

Software :: Copying Only Files Inside Any Folder?

Dec 22, 2010

I want to copy everything in templates/blue to the folder code/
However: cp -r 'templates/blue' 'code'
Creates a folder called blue inside code. I tried cp -r 'templates/blue/*' 'code', but that didn't do anything.

View 3 Replies View Related

Ubuntu :: Copying Folder To Home Folder?

Jan 8, 2011

I'm not positive if this is in the correct section but I am hoping so. I am running dual-boot with Windows 7 and Ubuntu 10.10. I hunted down my files from Windows that I need for school (old papers, research, etc.) and found it under "file system" --> "host" --> "users" --> "zbollman". I can access all of my files and I'm happy now that I don't have to boot between the two constantly to get what I need. However, I tried to copy the file to my home folder, but it said I do not have enough room. I'm about 5GB short. How do I go about allocating more space so that I can copy this folder so that all of my information is easily accessible?

View 5 Replies View Related

Ubuntu :: Duplicating Folder Structure And Copying Files

Nov 21, 2010

I'm looking for some way to search a given directory, copy its folder structure to another given directory, and copy from the original only certain files into the newly created directory.Vague, I'm sure. But here's what I'm actually looking for:My music player won't display album art without a "cover.jpg" image in each folder where the files are, but I have Rhythmbox set to only copy the top rated songs. Each file does have its cover embedded in it, but there's also a cover.jpg in each folder.

So I'd like to let Rhythmbox handle the actual song copying, and then have a script or something that I can run that will scan my onboard music directory for cover.jpg files and then place them in the appropriate folders within my music player's folders. Obviously I can't just copy my onboard music directory, or I'm getting *every* song, not just the top-rated, which defeats the purpose of syncing at all.

View 2 Replies View Related

Ubuntu :: Unable To Know The Command For Copying Files From One Folder To Another

Jul 8, 2011

I have to work in terminal but I don't know the command of copying files from one folder to another. e.g from /share/ParaDiS.v2.3.5.1 to /home/newfolder what should I type?

View 4 Replies View Related

Software :: Use Sed To Include A Text File In The Beginning Of Other Text Files Inside A Folder And Its Subfolders?

Jun 1, 2010

Can I use sed to include a text file in the beginning of other text files inside a folder and its subfolders? So it should be recursive.

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

Ubuntu :: Inherit Parent Folder Permissions When Copying Files ?

Mar 28, 2011

I do have an Ubuntu Headless server which is running Samba on it. My mp3 file collection resides on that server on is being share.

So far, no problems connecting to that drive and writing from my Windows box on that share. But if I use my main laptop, which runs Ubuntu Lucid and download an mp3 song from Amazon, the moment I move that to the share, I got permissions problems from the Windows machine. This is clearly a permission issue with group and others; the song is being created on the share without read and write permissions to others or the samba group I created.

My question is. How can I make this process simple or automatic, when moving songs to the share? I don't want to go there everytime and run ...

Code:

Which was basically how I reset or fixed the problem.

I've read about umask, but not sure if that applies here or not, because I'm not creating the file but moving it.

View 5 Replies View Related

General :: Copy Files From One Folder To Another Folder Using Shell?

Mar 4, 2010

i need to copy files from a folder called output files to another folder called running but im not able to do it i always get a stat error

View 14 Replies View Related

General :: Keep Chmod On Folder / Sub-folder And Files?

Nov 3, 2010

I got a folder that I transfer stuff to all the time. the folder is in chmod 775 but when i upload folders and files, they are given chmod 700, but i want it chmod 775 everytime i upload something. so far i have logged in to my linux computer and did a chmod -R 775 to the folder every time i uploaded something to it. is there a function somewhere to make it 775 everytime i upload or can i have something run a script, so i don't have to go in and write it everytime i upload something?

View 2 Replies View Related

General :: Loop Pictures From A Folder And Display Fullscreen Slideshow?

Nov 16, 2010

Need a Linux solution for looped slideshow from pictures in some folder. Pictures may be deleted and added, so it's a bonus if it doesn't stop/crash if currently shown picture is deleted.

View 3 Replies View Related

OpenSUSE :: 10.3 - Setting Permissions On Folder / Subfolders

Mar 18, 2010

I'm running OpenSuse 10.3 and I've tried to set permissions on my folder and subfolders from root:root to wwwrun:www. In the shell it shows all folders and files with the correct permissions, but in the GUI it still says root:root and so my web application can't write to it, until I manually set the subfolders permission in the GUI.

View 9 Replies View Related

General :: Copying Folder From Network In RHEL?

Jul 4, 2011

The problem is i have to copy folders from network into the RHEL server. When i am copying i can copy the folders and documents which do not have a sub folder. But the folders with subfolders is not getting copied. How should i do it?

View 6 Replies View Related

Ubuntu :: Cannot Access Subfolders In Home Folder With The Terminal?

May 10, 2010

Ubuntu and am using the 64bit version of Ubuntu 10.04.Now I can access the folders in my home folder through the places GUI, but I can't access them in the terminal. When I begin typing in the terminal and press tab it does not autocomplete, and typing the directory manually says that there is no such file or directory, even though when I type dir or ls they are clearly there.

View 7 Replies View Related

Ubuntu :: Restricting Users To A Specific Folder And Its Subfolders

Dec 29, 2010

I wanted to restrict users within a particular folder say /var/lib/tomcat/webapps. I want the users to see all subfolders inside webapps and work with it (edit+read but no delete). I understood that chroot is the way, and i read this [URL] community discussion, but what i understand out of it is, they are trying to give a complete working installation of ubuntu to the user within a directory which i dont want to.

View 3 Replies View Related

Ubuntu :: Change Folder Icon And Apply To All Subfolders

May 11, 2011

I have a music folder that contains alot of folders for different artist, each of those folders contain various folders for different albums. The Music folder itself has got a music folder icon, but all of the subfolders have the regular folder icon, I would like all of the subfolders to have the music folder icon but I don't want to go through each folder to change the icons one at the time. Is it possible to change the folder icon and apply the change to all the subfolders and sub-subfolders? I'm on 10.10 btw

View 1 Replies View Related

Server :: Samba Folder Containing Subfolders With Specific Rights?

Jun 5, 2009

Lately I'm getting this question a lot.For every project I want to create a tree like this:

Code:
- project
- drawing

[code]...

View 4 Replies View Related

Ubuntu :: Best And Full Feature Editor - Open All Files In A Folder When Drag And Drop The Folder On It

Jun 21, 2011

when i used windows there was this wonderful editor named Notepad++.it was perfect(it still is) some of its best and useful features of it (for me) was:

1-open all files in a folder when drag and drop the folder on it
2-search and replace a statement in all open files
3-have an extended mode which include special characters like

and so on.. i want to know if there is an editor with this feature in ubuntu?

View 8 Replies View Related

Ubuntu :: Copy Files From Original Folder To $user Folder?

Oct 22, 2010

i want make a bash panel and i want he will copy files from orginal folder to $user folder i mean when for explame i type i want install some server he say cp: cannot stat 'root/Desktop/2/files/beckup/sa-mp-steam': No such file or directory.

View 6 Replies View Related

General :: Change Folder Permissions Without Changing The Permissions Of The Files Within The Folder?

Aug 11, 2010

How do I change folder permissions without changing the permissions of the files within the folder?

View 6 Replies View Related

Ubuntu :: Reinstall Original Pictures Folder?

Mar 2, 2011

I accidentally deleted the pictures folder in the Home folder (the content was backed up fortunately). How can reinstall this original folder to place the pics back? I cannot find the location. The theme is Ambiance with the Ubuntu-Mono-Dark icons.

View 2 Replies View Related

Ubuntu :: Copy All The Pictures From Various Folders In Documents To A Single Folder

Dec 8, 2010

I'm using Ubuntu 10.10. I want to copy all the pictures from various folders in my Documents to a single folder. So in Nautilus, I clicked on Places > Search for Files. Then chose the Documents folder and typed *.jpg in the search criteria. It found all of my pictures just fine. However it would not let me copy and paste them into a folder I put on my desktop. Copy is not on the "right" click menu and Ctrl C did not work for the highlighted search results. This is so simple in Windows but it does not seem to work in Ubuntu.

View 4 Replies View Related

Ubuntu :: Copying To Protected Folder?

Nov 12, 2010

I am trying to copy a (custom XML) file to a protected folder (namely /usr/share/games/FlightGear/Protocol) for data Input/Output.I tried copying and pasting the folders and it doesn't work. I realized that it is because only root user has the permission to do modification.So, I tried using "sudo cp" to copy the file. The file was copied, but the content now becomes unreadable when I tried to open the file

View 6 Replies View Related







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