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
ADVERTISEMENT
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
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
Apr 8, 2011
I was wondering if there would be a way for me to copy the contents of a shared folder that's running on an XP system using shell script. Actually, there are two shared folders that I want to do this with. I want to be able to launch the script and automatically copy all the contents of each folder into two separate folders on my ubuntu desktop. For example;
Lets say that I have Shared Folders A1 and A2 on my networked XP system and I have Folders B1 and B2 on my Ubuntu desktop. I want the script to automatically copy the contents of A1 into B1 and likewise for A2 and B2. During the copying, I want the script set up such that any pre-existing files in the B1 & B2 folders will automatically get overwritten by the ones copied from A1 & A2.Is there any possibilities of me achieving this?
View 7 Replies
View Related
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
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
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
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
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
Jul 9, 2010
Download firefox 4 from Index of /pub/mozilla.org/firefox/nightly/latest-trunk Unpack with ark to your home directry folder firefoxIn the folder firefox creat a new folder pluginscopy the contents from /usr/lib64/browser-plugins to the plugins folderStart firefox and there you go
View 9 Replies
View Related
Dec 2, 2010
I have a cd of new fonts that I would like to install into the fonts folder.
How do I copy over the contents of the cd into the fonts folder?
I am using 11.3 Gnome 32bit
View 9 Replies
View Related
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
Dec 1, 2010
When i want copy a file or folder in some system folder like sbin,Etc.show me error about privilage but when I'm in console i use su command for become admin and i can copy my file or folder.in other operation system like windows user can copy anything,i want know for direct copy my folder in linux without console what should i do? i must join my user name in root group?
View 4 Replies
View Related
Jul 5, 2010
When try recover a file from thash folder, i cant see the contents, but, when make properties to the folder, show 47 files on the trash folder, and the docklets of docky, also show files (41 files). Ubuntu Lucid 10.04
View 4 Replies
View Related
Jul 20, 2011
I know that you can use ls to list the files in a folder, but is there anyway to list the contents of the other folder? Like, say I have a folder labelled "Records", and inside is 12 folders, one for each month. Is there any way to list the contents of the 12 subfolders without just going into each one with cd and using ls?
View 3 Replies
View Related
Apr 19, 2011
I'm trying to create a very simple back up script to back up the contents of one folder on my system to an NTFS formatted external hdd. I want to keep the ownerships and permissions of the files I'm backing up intact so I'm putting them into a tar archive. Compression is not necessary as I have plenty of space for the backup.
I have created the initial backup with the following command:
Code:
tar -cpf $bupath/backup.tar $sourcepath
This seemed to work quite well with the resulting file being about 170gb and took about 5hrs. For subsequent backups, the files are probably only going to change by about 10% at most so it seems inefficient to create a whole new backup from scratch. I would like to be able to just update my existing archive with any new/altered files.
I have tried using the update mode (-u) with tar like so:Code:
tar -upf $bupath/backup.tar $sourcepath
So far this has been running for about 10hrs and the archive has grown to approx 220gb! What's going wrong here? I was expecting the update to take 30mins max and there be no significant change in the archive size. Am I perhaps misinterpreting the purpose of update mode in tar, or is there something wrong with my command? Is there a better/easy way to accomplish this?
View 4 Replies
View Related
Jan 6, 2010
In trying to install an update, I deleted all the programs from my Ubuntu 9.10. Now I can not get my pictures, documents and music from the computer. I tried booting from a Ubuntu Live CD but when I get to the folder of my documents it says "you do not have the permissions necessary to view the contents of "My_Folder"". I tired the nautilus command but that only lets me view the files and not copy them.
View 3 Replies
View Related
Apr 30, 2011
I recently changed from Ubuntu 10.10 to Fedora 15, I haven't chosen to make them dual boot because I liked Gnome 3 that much. But I installed them on my second hard disk because then I can move my documents to this OS.But when I go to the Ubuntu files I get this message:The folder contents could not be displayed. You do not have the permissions necessary to view the contents.mage:So now I can't access my documents anymore... Does somebody know how I can move them to Fedora?
View 4 Replies
View Related
Jul 14, 2011
I have KDE 4.6.5 and (up until now) I could see and access files and folders on my Desktop. My Desktop was set to display the contents of /home/john/Desktop.
I set this up from Right-click --> Folder View Settings --> View --> Layout --> Folder View. Then Location --> specify a folder == /home/john/Desktop.
But now when I do this I don't see the contents of the /home/john/Desktop folder. Instead I see a blank screen with a tab on the RHS labeled "New Activity".
How do I revert to viewing the traditional Desktop and its traditional contents?
View 9 Replies
View Related
Feb 8, 2010
How to list the contents of a folder to a text file. I'm trying to list all my music, including all subfolders, etc. to a text file, but I can't remember the command.
View 3 Replies
View Related
Oct 7, 2010
Im assuming there is a simple answer for this but I have yet to find it in forums. I have 2 partitions mounted on my ubuntu desktop, one is Windows C: drive labeled "Core" and the other is D: drive labeled "Reserve" but for some reason I have a second Windows folder on my desktop, when I attempted to delete it it began to delete the Windows files as well, one forum said to right click and "remove from desktop" but this option isnt in the menu. How can I just delete the folder?
View 2 Replies
View Related
Mar 14, 2011
Today I uninstalled Zimbra desktop from my Ubuntu 10.04. After doing it, I am facing several problems due to changes in system configuration.
My Home Folder contents are shown on Desktop and if I delete them from Desktop, they are also deleted from the Home Folder. I don't understand why this is happening.
Also, from the side pane in Explorer, the option of Home Folder is not present any more. When ever I go to Home Folder, on the side pane is shows that I am on desktop and the location bar shows that I am in Home Folder.
View 9 Replies
View Related
Jun 20, 2011
I have a Windows maching with an attached NAS Drobo device. I have a linux maching running Ubuntu 11.04 and have edited the fstab file and been able to map the windows folders for the Drobo and they all mount up fine. On the Linux machine itself can access these folders and run music/video files from them. But when I'm at another computer and SSH into my Ubunutu maching, I can see the mounted folders using the ls command but I can't see the contents of those folders.
View 4 Replies
View Related
Jul 22, 2011
My ~/Desktop is generally kept empty.
Yesterday on start resume from hibernate, it looked as if my encrypted home directory was unmounted; or at least instead of my $HOME contents I got a bunch of files related to this.
I rebooted the system, and since then my desktop has been rendering icons for every file in my home directory, but not updating the icons until the next reboot, if I change anything in $HOME while it is running.
I opened the gconf-editor and checked: the box for using the home dir as the desktop is not checked. I even tried toggling it and the option that controls drawing the desktop on/off in every possible combination. Nadda. The only thing that works is turning off drawing the desktop.
View 3 Replies
View Related
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
Jun 29, 2010
My home folders contents like download , documents ....
ae displayed in desktop too
and i can't hide them
and if i delete one of them the original one will be deleted
View 2 Replies
View Related
Nov 5, 2010
I downloaded a FLAC album from a band's label.The weird thing is that I cannot see the folder contents using the standard file browser interface.However, VLC can see and play the files without problem.I don't believe the files have any sort of DRM, but they are legal, FWIW.
View 4 Replies
View Related
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
Jul 28, 2011
im currently trying to configure SE Linux policy for a folder so that only my user with root privileges can access it and not just root but i don't know the commend to run on the folder to change its permissions
View 4 Replies
View Related
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