Ubuntu :: Move Folder Which Have Same Name In Subfolder?
Mar 1, 2010
How to move folder which have same name in subfolder Path : /root/Documents/untitled_folder/untitled_folder/abc.txt I want to move files from that folder how to do that
Output : /root/Documents/untitled_folder/abc.txt through terminal any idea ? and plz suggest a way to do in all folder present in directory recursevely how to check recursively in all folder's present in directory
./folder1/abc.txt
./folder1/folder1/abc.txt
./folder2/folder2/folder2/bbc.txt
./folder3/folder3/folder3/folder3/my.txt
./folder4/folder4/folder4/folder4/folder4/bcz.txt
./folder5/folder5/ca.txt
[Code]...
View 9 Replies
ADVERTISEMENT
Jun 27, 2010
I have a small bash script that compress all folders in a specific folderThe script also:- add a password to the compressed files- delete the original folder after compressionSuppose that this script is called "rar.sh".At some particular moment, there will not have any folder in the specific folder since they have all been compressed.I want something (a script?) that will check (every minute approximately) if there's new folder in the specific folder.If there's new folder, then execute script rar.shor if there's not new folder, then re-scan in the next minute.
View 2 Replies
View Related
Jul 29, 2011
I want to delete a subfolder ABC in a main Project folder Globe. It occurs in many subfolders. It is very hectic to search and issue an rm -rf ABC command. I need to make a script for that .
View 4 Replies
View Related
Jul 13, 2011
I have many folders with many subfolders. All I want it to get the folder name and the first subfolder. I tried using ls -R but this give me more than I want it. Let say I have:
dir1/subdir1/sub_1_1/file.a
dir1/subdir1/sub_1_1/file.a2
dir1/subdir1/sub_1_1/file.a3
[code]....
All I want when I execute the command is to show me:
dir1/subdir1
dir1/subdir1
dir1/subdir2
[code]....
View 4 Replies
View Related
Sep 14, 2010
When I position icons on the desktop in specific places, then I choose to move a file or folder into another folder, all the icons arrange back to the left side. This happened in an earlier version of KDE 4.x, disappeared the next version, and reappeared. how to keep this from happening. It makes using the desktop a pain in the you know what.
View 2 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 13, 2011
this is posable but am trying to do this "Create folder from a filename and move the file into the folder" i have 500000+ file's i need to do with is there a easy way?I really don't want to download them all make/move them with filemonkey just to re-upload them
View 2 Replies
View Related
Apr 29, 2011
I found a script that runs any commands from a dropbox folder. It seems to take the scripts i have from the remote folder to the output folder to the old folder. but it never seems to actually run the scripts. it just seems to move the scripts from folder to folder Here is the page of what I'm talking about. [URL]
View 6 Replies
View Related
Dec 1, 2010
I would like to move a folder to another folder but I just want to merge the two folders.
For example,
say I have Folder B which has the following files in it
- fileA
- fileB
- fileC
Folder A has the following files in it
- fileA
- fileB
- fileC
- fileD
- fileE
And I want to move folder A to folder B.
The objective here is to ensure that existing fileA, fileB and fileC are not replaced but fileD and fileE are to be copied across.
Is there an easier way to do this in linux?
I am running Ubuntu 10.04.
View 4 Replies
View Related
Jun 20, 2010
I have an NTFS partition automatically mounted in fstab. I have read many forums and have done what they have to try and fix this problem, but it still won't move the files to the NTFS trash folder. What can I do to make this work?Here is my fstab entry:
Code:
# NTFS partition /dev/sda1
UUID=5D924B8408514F71 /media/MediaDrive ntfs rw,auto,users,nosuid,uid=1000,fmask=137,dmask=027,utf8 0 0
View 5 Replies
View Related
Mar 17, 2010
when i cut and paste a movie player playlist elsewhere it says "An error occurred, location not found"
though it shows the videos names and in the right order etc.
i can't be the only one noticing that..
View 7 Replies
View Related
Aug 20, 2010
I've got a folder called Foo. In foo, there are 20 folders called bar1, bar2, bar3,...,bar20. In each of those barXX folders there are 2 files. How can i move those 2 files up one level into Foo with one command?
View 9 Replies
View Related
Nov 3, 2010
How to move hidden folder from /home to another location - on another partition? Is it possible? I'd like to move some folders for example ./thunderbird or so that I wouldn't need to make a backup. Or at least is it possible that program can right files to two folders, or that everything from /home./thunderbird would copy automatically to ./thunderbird on another partition every time there is a change? Is it possible to write a script or something? I use luckybackup but I would like to be able to forget about backups and make script or program to do it for me.
View 9 Replies
View Related
Nov 20, 2010
I dual boot a computer from separate hard drives in Windows XP and Ubuntu 10.04. Here is the deal: On my windows drive I have a folder that is filled with folders inside folders packed full of files in all the folders. There is a 100% possibility that I have multiple copies of any file in multiple locations. Is there any nice command or program to move all the files in all the folders to one central folder and in any way get rid of the multiple copies? Also, how do I compare to files that may or may not have the same name, but otherwise be identical to see if they are identical?
View 9 Replies
View Related
Dec 7, 2010
I want to move a simple .rules file from a downloaded package which I have extracted to my homefolder, to the rules.d folder. So I open both Nautilus windows and drag it over, and I get the great "permission denied" error
View 1 Replies
View Related
Apr 29, 2011
I am trying to post a driver in ..../cups/model folder but it says"access denied....could not write to ....cups/model.how do i move this driver file to the model folder
View 1 Replies
View Related
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
Mar 12, 2010
Anyways, I recently got into the whole HTPC scene, and picked up an Acer Revo for my self, with a media center OS (XBMC) that was apparently modded from Ubuntu. Keep in mind that I can only use the terminal for any of this, as the GUI is just for video settings, etc.
So, XBMC just totally crashed on me, and the GUI stopped working. The files were still there, I just couldn't watch them. After many hours of tinkering, I decided to just reinstall XBMC, but make two partitions, and then move my movies and stuff to the new, working partition, and afterwards, delete the old, non working one.
I just don't know how to move from one partition to another.
So, can someone explain, in absolute layman terms, how to move my "Movies" folder from my first partition, to the New one?
View 4 Replies
View Related
Jun 24, 2011
In my bash script I need to move files in a folder if it is not in use.
Code:
for entry in `ls /root/shared_storage/input`; do
echo $entry
run=`lsof /root/shared_storage/input/$entry`
ru=${run:0:5}
echo $entry
if [ "$ru" == "" ]; then
........
It worked fine sometimes but sometimes it just get stuck at lsof. Is there any other way that I can use here to check if the $entry is using some other process?
View 10 Replies
View Related
Mar 13, 2010
I am trying to use rsync & ssh to move a backup folder some computers to a server. I found a command that is supposed to do this, but I am having issues getting it to work.
Code:
rsync -avz -e 'ssh -p 'port' 'username'@'hostname' ' /source/path host:/destination/path
View 2 Replies
View Related
Mar 23, 2010
I am able to view my windows network from my UBUNTU desktop after being prompted for a username and password to the windows network. No problem. But how can I accomplish this from the command prompt?
Here is my windows directory; smb://corpserver/d$/Data
And here is what I am trying to accomplish;
Code:
mv /var/lib/mysql/RSecuredData.csv smb://corpserver/d$/Data/Common/Secured%20R%20Reports/$(date +%Y%m%d)_RSecuredData.csv
Basically taking a csv file and moving it from mysql directory on my Ubuntu machine to a network folder on my windows server. (Windows Server 2003)
When I try that command from the command prompt I recieve;
Code:
mv: cannot move `/var/lib/mysql/RepoSecuredData.csv' to `smb://corpserver/d$/Data/Common/Secured%20Repo%20Reports/20100323_RepoSecuredData.csv': No such file or directory
View 9 Replies
View Related
Apr 11, 2010
What are the steps I must take to move my existing home folder to a separate, encrypted partition? Can I create this partition without damaging my current partition? Where is a trusted location to download App Armor profiles? What else can I do to harden the security of Ubuntu?
View 1 Replies
View Related
Jun 9, 2010
I am planning to move to Lucid from Karmic now that I am out of university for the summer and have time. I have heard that there is a way to copy your home folder over to the next release and all of the data and program settings will remain intact. I have tried some research on the subject but everything I have found has been extremely confusing. I want to do a fresh install (as my updater has been failing time and time again and asking for partial upgrades etc). Instead of creating a new partition for the home folder, would it be possible to move it to an external drive and copy it back over (I have tried to copy it to the external but I get some errors even in sudo)?
View 4 Replies
View Related
Feb 24, 2011
I installed Ubuntu Maverick as a file within Windows XP. A folder was created called Ubuntu and two files called wubildr and wubildr.mbr appeared on my C-Drive. The Windows boot.ini file looks like this code...
The initial 8 GB I gave to Ubuntu is too small and I would like to move the file to my D-Drive and expand it to 40 GB.
I would hate to have to begin again from scratch. Is this possible? If so, how?
View 3 Replies
View Related
Mar 7, 2010
Gparted shows that my dual boot laptop has the following partitions: [URL] I want to create a partition and move the contents of my Home folder into it.
View 3 Replies
View Related
Mar 17, 2010
I have been using Ubuntu 10.04 (32 bit) as a headless workstation, running a VNC screen. Worked perfectly for about 3 weeks, then suddenly, I lost the Drag and Drop capability, for all applications.For example: Dragging and dropping to move items on the desktop does not work. The item simply pops back to the original location. Dragging and dropping to move items from one folder to another does not work. Same behavior -- the item just pops back to the original location. Dragging and dropping Bookmarks in Firefox does not work. The attempted Drag and Drop is ignored. Copy and paste still works fine.The problem does NOT occur when using an attached monitor (primary display screen :0).After much Googling (including these forums), I suspected that the changed behavior was caused by an update (from Ubuntu Update Manager). I confirmed this with the following:Reinstalled Ubuntu 10.04 fresh from the live cd.Configured minimal networking and installed VNC server.Tested Drag and drop -- works okayApplied pending updates (116) from Ubuntu Update ManagerTested Drag and drop -- not workingI am using vnc4server and openssh-server installed from the repositories using Synaptic.
View 7 Replies
View Related
Aug 31, 2010
Am I able to move Music folder to a different hard drive without moving my whole /home or do I just make a folder there and call it Music and change all the programs that use the music's default music folder?
View 3 Replies
View Related
Dec 2, 2010
I'm running out of disk space in root, so I decide to move /usr/lib64 directory to other partition by creating moving the whole directory to new location and create a softlink in the old location. What I'm planning to do is:
1. Copy the whole directory to new location
2. Make sure if there's no problem in the copy process
3. Create a softlink in the old location pointing to the new location.
However, when I'm comparing the old location and the new location using du command, there's some discrepancies between those two where the new location contain bigger size than the old one. How is this possible?
Is this the proper way to save disk space by creating a softlink?
View 5 Replies
View Related
Mar 25, 2011
i want to move all files inside the folder moving to folder public_html which command i should use? m using centos5 64bit tell me full command which i should writer in ssh client..so my all files will be moved to public_html...from moving folder.
View 4 Replies
View Related
Apr 8, 2010
I m using sendmail. I have two queries regrding mailq
1) How i can move unwanted mails from mailq to diffrent folder?
2) How i can remove those mails from the mailq ?
View 3 Replies
View Related