Ubuntu :: Moving Files Into Directories

May 12, 2010

I downloaded some backgrounds from Gnome Art and am having trouble moving them to the backgrounds folder. I've been trying this: sudo mv desktop <filename> usr/share/backgrounds.I moved to the desktop to make it easier.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Moving Files From Multiple Directories?

Apr 16, 2010

I have a directory tree with lots of folders. I need to gather all files of same type, say .txt, and place them in a different folder all by themselves.

I know I can use the mv command, but it won't let me go through all the subdirectories of my folder, just the current one. How can I search through all subdirectories for all .txts or whatever and move them to a folder of my choosing?

View 2 Replies View Related

Ubuntu :: Moving/copying Files And Directories To Base Directory Of User?

Mar 12, 2011

How do I copy and/or move files to the base folder of a user? I don't know what is is called, so I do not know what to put in the my file "?" command? I know you would normally put mv filename /directoryname, but what is the base username called?

View 1 Replies View Related

Programming :: Moving Files To Directories Based On Part Of Filename?

Jul 6, 2010

I have a single directory of pairs of files, with the pairs sharing a string as the beginning of the filename:

SF1-27F1492R-clone01_T3_A18_001.ab1
SF1-27F1492R-clone01_T7_A20_002.ab1
SF1-27F1492R-clone02_T3_A19_003.ab1
SF1-27F1492R-clone02_T7_A21_004.ab1
...etc

I need to create a subdirectory for each pair then move the pair into the subdirectory.

I accomplished the first step using:

$find /foo -name '*T3*' -exec mkdir '{}.wrk' ;

I can use a regex to designate the pair and associate the directory, but how do I use regex in a path as the output of a move command?

View 7 Replies View Related

Ubuntu :: Automate Creating Directories Based On File Names And Moving Files Into Them

Apr 30, 2011

I have a bunch of .7z files in a directory, and I need to put each one of them into a separate directory, named after the file (without extention). The command line I use:

Code:
find . -type f | mkdir `sed -e "s:..(.*)...:1:"` ; ls | grep .7z | cp * `sed -e "s:(.*)...:./1/:"`
Copying fails though:

[Code]....

PS. I don't want to use scripts, I want to do it using simple commands and piping.

View 5 Replies View Related

Ubuntu :: Moving Files In Terminal \ Moving Files That Have Root Permissions?

Mar 4, 2010

I have limited experience in terminal, but let me first explain what I am trying to do to see if there is some easier way to do it. Basically I want to change the skin in aMSN. I downloaded the new skin but am unable to unzip or move it without /root permissions. I don't know how to acquire this without being in terminal. So I figured there had to be some way to go into the terminal and use it to move the unzipped folder from the desktop to the aMSN skins folder.

View 3 Replies View Related

Ubuntu :: Moving Cache And Temp Directories To Ramdrive?

Mar 17, 2011

I just got myself a OCZ vertex 2 SSD and have been moving cache directories to a ram drive to try to help extend the life of my SSD and improve system performance. I have created a ram drive /tmp directory in fstab like soCode: tmpfs /tmp tmpfsnodev,nosuid,noexec,mode=1777 0 0 And have since moved my Firefox temporary files to the /tmp directory and it have gotten me thinking, what else can I move here. I am going to upgrade my computer to have 8gb�s of ram which is way more than I�ll ever need.I would like to move the transmission cache dir there but I don�t know how to. Anyone have any tips on that? I was thinking of maybe a script that will run when I login to create a symbolic link?

View 9 Replies View Related

General :: Create A Backup Directory And 3 Directories Within That And Some Files Within The 3 Directories And Then Back Them Up Ot Restore Them?

Dec 19, 2009

i am in need of linux help. iam at college and i need this back/restore script to pass this final part of an assessment. i require a backup script that will not only backup but also restore files to the relevent directories. e.g. users are instructed to store all wordprocessor files in a directory named wp. so i am needing to create a backup directory and 3 directories within that and some files within the 3 directories and then back them up ot restore them. l know i should/have to do this myself by been trying to get/understand info for the last few days and came up with zero.

View 14 Replies View Related

OpenSUSE Install :: Moving /usr Directory / Partition With All The Other Running Directories?

Mar 16, 2011

I just installed the 11.4 version after using numerous previous versions. During this install the /usr directory was placed in a separate partition. How would I go about placing it in the partition with all the other running directories?

View 7 Replies View Related

General :: How To Store Files / Directories In Different Different Directories?

Mar 23, 2011

I am writing a script, in that my requirement is, if all the fill types stored in one directory from that we need to separate different different directories based on the file types.

for example in a directory(anish). 5 different types files
1- directory
2- .txt files
2- .sh files

like that and my requirement is the (1- directory is moved to one new directory(dir) which we are given in the script)and (2 .txt files are moved to another new directory(test) which we are given in the script)and ( 2 .sh files are moved to another new directory(bash) which we are given in the scrip)finally the directory anish should be empty..using bash script.how it is possible !!

View 7 Replies View Related

Ubuntu :: Moving Files To A Pendrive Renders 0 Bytes Files And Files Gets Deleted

Jun 10, 2011

I get a SD card. Put in the SD reader. It's empty. I go to my super-important-pictures-to-a-monthly-relatory folder and select all files. Select them for MOVE. Paste them on the SD card. When the move/paste process is finished, i click on the "Eject" button on top of the SD card name. Card's ejected. I can't access the card anymore. I take out the card and put on my other computer. From 300 pictures, there are only 10 available, the remaining ones are there, but with 0bytes and unrecoveable. I panic. I go back to my main computer, my pictures are not there anymore. The pictures were on the Home folder. I panic again. I reset the computer and boot on the LiveCD. I install foremost, scalpel, photorec and about everything till my USB drive complains about being filled up. I run everything and I can't recover my files. I'm in the danger of getting fired. Things like that makes Windows sounds more appealing. When you securely remove a pendrive, things get REALLY pasted there before screwing everything up with a removal.

View 8 Replies View Related

Ubuntu :: Lost Files During Moving Files With Nautlis?

Oct 16, 2010

I was moving a folder using Nautilus from an internal drive to a USB drive when suddenly, the power failed and the system rebooted before the UPS could go into backup. After I booted the PC again, half the files are are in neither of the drives. Do they go into a temporary folder first? There's nothing in /tmp and there's no Lost+Found folder. Is there anyway to get back those files? I'll always copy and delete from now on instead of moving.

View 2 Replies View Related

General :: Creating A Script To Move Or Copy Files Into Multiple Directories Below The Files?

Aug 25, 2009

How can you create a script to move or copy files from a main directory into multiple directories below the main directory.

View 7 Replies View Related

Server :: After Moving PHP Files To /var/www They No Longer Are Seen As Hosted Php Files

Feb 25, 2010

I am setting up a Demo website that I am hosting in a Debian Lenny VM, I have installed Apache, mySQL, and PHP5 I know the php server is working because if I place an info php file I can see it in the browser. However, I downloaded phpfusion, as well as phpmyadmin and they are on my desktop, I open a superuser file browser (also added write access to /var/www to everybody and copied the files over as me) and copied over the files. Once in the www folder they are no longer seen as "valid" php files, if I try to access them with iceweasel, IE, Konquerer it asks me if I want to download the file. If I look at the files on my desktop they have different icons. I have attached a screenshot. I can't tell what the difference is, but obviously there is one otherwise the icons wouldn't be different. Does anyone have any idea what's going on here or a way to rectify it?

View 9 Replies View Related

Programming :: Sort Files In Directories Based On Files Date

Sep 8, 2009

I need a script that will take all the files in a given directory and create new monthly sub-directories and sort all the files based on the creation date into the appropriate directory.For example, all files created between 01/01/09 and 01/31/09 will be placed in 'JAN-2009'

View 5 Replies View Related

General :: Recursively Cp All Directories, Files And Hidden Files?

May 17, 2010

Ubuntu 10.04

I want to copy all directories, files, and hidden files and hidden directories with one command. I want these items to replace any same items in the target directory.

I have tried several things, such as:

cp -r *
cp -aR *

but I only seem to get visible files and directories. Obviously, I am missing something. (A brain, probably....)

View 9 Replies View Related

Ubuntu :: Moving Files From Different OS's?

Jun 26, 2010

im switching. Vista is......yeah nothing needs to be said. Anyways i only have a few things preventing me from switching, biggest is Ubuntu is currently partinioned on 10gigs of my hard drive, the rest is mostly crap. All i want off vista is music, pictures, and a few videos. how do i get them onto the ubuntu side, or allocate more space to use a friends external harddrive. I know Wine is used for WoW(problem solved) but how about ventillo and the rarely played EvE online? also if possible i need to bring those over as well. other than than Ubuntu kicks the **** out of any windows or mac OS ive ever used. but thats not sayin a whole lot.

View 9 Replies View Related

Ubuntu Networking :: Moving Files On LAN

Sep 13, 2010

i want to copy files from a local ubuntu 10.04 machine to a remote XP machine on a LAN.using gnome terminal server client i'm able to copy text but not files!is this possible to achieve with terminal server client or do i need to use another program? if so whit and how?

View 2 Replies View Related

Ubuntu :: Lockup When Moving Files?

Dec 17, 2010

After updating to 10.10, I started getting hard freezes on a regular (read: every 10 min.during use) basis. A bit of diagnosis showed me that it was only a problem during periods of intensive I/O activity (moving files, downloading, etc.).A bug report started with:BUG: soft lockup - CUP#0 stuck for 61s! [kswapd0:26]I reinstalled 9.04, and was able to successfully copy 15gb from one drive to another. I upgraded to 9.10, and copied it back.Upgraded to 10.04 and copied it again. 10.10, it copied a few mb and froze.

View 1 Replies View Related

Ubuntu :: Moving Files Between Partitions

Jan 14, 2011

I have windows 7 and am soon to partition a large amount of my drive over to linux. I'd rather all of my computer be linux but I'm unsure how to get my files to my other partition, I don't have a thumbdrive and my email doesn't have much space. I have 300 gbs of room, 150 will be linux, how do I get the 100 gigs moved from my windows partition to my linux so I have more space on my linux.

View 1 Replies View Related

Ubuntu :: Rm Directories Only - Not Files - When Doing Rm -r Foo*

Feb 28, 2011

How do I delete just directories and not files when performing a "rm -r foo*" command? E.G. I have foobar.txt foofoo.o foorebar.jpg and foo/ foonuggets/ and footemp/ in a directory. In one fell swoop how do I delete just the directories and preserve the files?

Seeing as how I only use the -r switch when removing directories I accidentally ran this command and removed files that I wanted (luckily nothing vital). Lesson learned now I want to prevent ever doing that on files that *are* vital.

View 8 Replies View Related

Ubuntu :: Moving Files By Type In Terminal

Jan 30, 2010

Is there a command for moving a certain amount-or all files-of a certain type? I know how to move files around but I can't find anything that explains how you would move multiple files at once.Writing this, I wonder, is it possible to move files by their size-moving all files under or over a certain size-rather than by type or name? I've looked but can't find how to do this, or if it's possible. Can't find anything on google with any combination of search terms.

View 4 Replies View Related

Ubuntu :: Moving Large Amounts Of Files

Mar 6, 2010

I am trying to move a large amount of files (over 30k and 86GB) to another HDD but I get a Augment list too large error?? I tried rsync, cp, mv and still the same error

View 1 Replies View Related

Ubuntu :: Moving My Files Back / Says Have No Permission

Jun 19, 2010

from several problems with ubuntu/linux distros, just to have the compuer with main windows OS, Ubuntu as a second and backup and puppy too after a week of madness codes sudos gedits installing reinstalling 2 3 may be 7 times.the system is now quite stable (i had to erase the lucid lynx because nobody was able to help me with the problem of the missing panels. ill have to wait for a fix..

now i have a fresh install of 8.04 (i had to uninstall it because i move partitions ad grub wents down, i tried EVERYTHING and nothing but reinstalling it)i used puppy linux to extract my files (home folder) and save it int a new ext3 partition, then when this ubuntu8.04 was OK, i tried to move my files back. i tried to doit from ubuntu, and i saw a little padlock on the folder, i tryed to move it, and i cant, then i restart to tryit form puppy, i was able to doit from puppy, then i restart again back to ubuntu, now with the folder in ubuntu partition i now have to put each file/folder where it was supposed to be, but again i saw some older with the padlock icon and with the same problem, that i can't move it because i have no permission. i tryed to find some help before opening this thread but all i want was to open a gksudo nautilus on terminal, but that doesnt fix anything, because that open a wibdows and i only can move "locked" files withing that folder, and those are my files i need to move it all the time, i can't open a gksudo nautilus every time i want to move one of my files.

View 4 Replies View Related

Ubuntu Servers :: Moving Files From One Server To Another

Mar 10, 2011

I'm moving my site to a new VPS and need to learn how to move the files from my current server to the new one. I'd rather not download everything to my computer and then re-upload everything... seems like a lot of wasted time. There has to be a way to copy between the two servers, but how? I have heard someone mention rsync... is that a program I could use? If so, how?

View 8 Replies View Related

Ubuntu :: SVN Errors While Moving Files Into New Directory

Jul 14, 2011

I have encountered the following error,
taylor@ubuntu:~/Projects/Slicer4/Applications/CLI/Multiply/Data$ mkdir Baseline
taylor@ubuntu:~/Projects/Slicer4/Applications/CLI/Multiply/Data$ svn mv ~/Projects/Slicer4/Testing/Data/Baseline/CLI/MultiplyTest.nrrd Baseline
svn: 'Baseline' is not a working copy

I am simply trying to move a file (MultiplyTest.nrrd) into a new directory (Baseline) in order to make the program (Slicer4) more organized. I googled my error and found a few like it but they all involved installing SVN so none of the solutions apply to me. And I have tried deleting Baseline and remaking it.

View 5 Replies View Related

Ubuntu :: Moving A Huge Amount Of Files?

Jul 27, 2011

i have about 2 TB of 700mb avi files as data on disc want to spread it across two 2TB ext usb drives (sata 3.5 inside the housing) obviously i have to rip them to the laptop and then move to the ext hdd (omg laborious little task) am i better doing the ripping in meerkat or in a windows machine? files need to be accessible by W7, XP, and meerkat to vlc player. what should i format the discs to?

View 5 Replies View Related

Ubuntu :: Moving Tmp Partition - GDM Special Files

Aug 14, 2011

I'm in the process of moving /tmp out of the root filesystem to it's own (larger) partition. From a LiveCD I've:

1. Created the new part (ext4 format and is /dev/sda4)
2. Mounted the installed OS root filesystem (/dev/sda1) as /slash
3. Mounted /dev/sda4 as /newtmp
4. Using gksudo nautilus I'm trying to copy the contents of /slash/tmp to /newtmp

I have 4 files that won't copy - returning the error "Can't copy special files". These are related to ORBit it seems:

[code]...

Questions are: a. Will GDM or ORBit fail if I start up without these? b. Or will they just be recreated on the fly if found to be missing? c. What's the best way to proceed?

View 1 Replies View Related

Ubuntu :: Moving Files Listed In Text File?

Jun 14, 2010

I've got a text file listing 1823 files that need to be copied from their current locations, i.e.To another folder, any idea how I should do this?

View 4 Replies View Related

Ubuntu :: Moving Lots Of Files Around - Nautilus Freezes?

Jan 26, 2011

I use nautilus and its awful. The only good thing are the tabs and the bookmarks on the cons:

* it freezes now and then when moving lots of files.

* Slow to navigate while large amounts of data are moving or displaying.

* Slow presenting of files where there are a lot of them (it should only render whatever is in screen and maybe render a properly sized navigation bar. Anything else shouldnt freeze the client. Render at its once pace if at all. I dont move the scroll bar it shouldnt freeze

* It doesnt queue (meaning it moves everything at the same time instead of queueing stuff, what makes moving stuff take longer) .

View 5 Replies View Related







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