General :: Directory - Find Folder Inside Sub Folders

Jan 21, 2011

I am trying to find a directory named 480debugerror nested under child directories. I don't know the exact path, or even if I have the exact spelling of the directory I ant to find.

Is there any linux command to find directories with a given prefix or suffix, for example directories with a name of debug or debugerror, with unknown some prefix or suffix?

View 3 Replies


ADVERTISEMENT

General :: Compress .gz Folder With All Contents Inside Sub-folders / Images?

Oct 5, 2010

How can i compress to .gz my folder public_html:

media/sda7/user1/public_html/

I want all files and folders and subfolders and images and everything inside of public_html. Also to be saved on the same folder so i can find it easy How can i do it?

View 4 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 :: Renaming Multipal Folders \ Want To Give Some Prefix No. To Folder Only Not The Files Inside?

Jun 8, 2011

I have around 150+ folders in one directory. All contains some pdf files. Now i want to give some prefix no. to folder only not the files inside. How can i give the prefix to all my folders?Eg : Suppose i want no. 8562 then i want it like as follows

OLD FOLDER NEW FOLDER
ABC/ 8562-ABC/
AABC/ 8562-AABC/

View 2 Replies View Related

Ubuntu :: Cannot Create New Folder Inside /opt Directory

Jun 16, 2010

I have Administrator rights. I want to create new folder into /opt directory. So i clicked(Right click). but new folder menu has disabled. I cannot create new folder. Then Alternatively I used terminal. then I type mkdir /opt/lampp/htdocs/dummy now folder name has created. but I cannot paste anything into my dummy folder. So I checked permission which has you are not owner. How to create new folder & copy contents to new folder.

View 1 Replies View Related

Ubuntu :: Hiding Folders Inside Of Shared Folders?

Mar 27, 2010

I am setting up a lubuntu nas with all of my music, movies, etc on it. I want to give my kids access to my mp3 directory, so I can move all of the kid appropiate music into the root of my mp3 dir, in the same order I have all of my music sorted. Under the Music folder, I have them sorted, in folders, by letter. So A, B, C, D, etc... Now, in those folders are the respective artists. So where there may be something approipate in the P folder (say, Paramore), there is something inapproipate (say, Pantera)Now, when the kids go to the P folder, I don't want them to even see the Pantera folder. I just want them to see the Paramore folder. I tried a test using chmod 711 and chmod 700 on a directory with a test user, and the user can't access the directory, but can still see it

View 3 Replies View Related

General :: Display Only Folders That Have Changed Inside Of Two Different Directories?

Mar 2, 2011

How can I display only the folders that have changed inside of two different directories?

PHP Code...

Will this suffice?

I am trying to see what new directories were added between my working build and a new onefor a project that I working on.

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

General :: How To Create A Folder Inside A Tarball

Jun 9, 2011

I created a tarball with multiple files. The rpm generator requires those files to be inside a folder. I don't want to move the files before generating the tar. Is there a way to create this folder while generating the tar or after it?

View 1 Replies View Related

Ubuntu :: Easiest Way To Find Files In Folder / Directory?

Oct 10, 2010

With Windows XP, I just right clicked a folder/directory and pressed FIND then I could search for whatever file/folder name i wanted to. I could even do custom searches based on the size, modification date etc.How do you do this on Ubuntu? There doesnt seem to be a way to easily do it like this. So far i found PLACES -> SEARCH FOR FILES but that means I have to go into the directory i want. Where as I would much rather be browsing through directories and THEN want to quickly search in a particular folder. The SEARCH FOR FILES method in PLACES just wastes more time.

View 3 Replies View Related

General :: Listing TAR Contents Inside Directory

Jun 16, 2011

This is the script I'm running
tar tf some.tar somefolder_insidetar
And output it's a list with all folders, files, and SUBDIRECTORY Files, the only thing I need it's just show the contents (folder and files) of the current directory choosed, not listing subdirectory files, or subdirectories inside subdirectories.

View 3 Replies View Related

General :: Make A Cronjob Who Makes A Tag.gz Of Everything Inside A Directory In A Recursive Way?

Mar 23, 2011

I would like to make a cronjob who makes a tag.gz of everything inside a directory in a recursive way. BUT there is a HUGE directory full of jpg's. I don't want this one in the backup.Additional points if it can backup symbolic links.

View 2 Replies View Related

General :: Execute Command Inside First Directory Of Each Matched Result?

Aug 8, 2011

I am working at a client who has a project where code is a mixture of different source control systems. So a layout might be like this

project/a/.svn
/a/subfolder/.svn
/b/.hg
/c/subproject/.svn
/d/.hg

So I am trying to put together a simple command that when executed from the project folder will run the appropriate hg/svn command in each project i.e:

[Code]...

Since the client has many such projects, Instead I am looking for a solution similar to find -exec where the svn/hg commands are automatically executed on each first level of match (i.e. svn up is run in the project/a folder but not in project/a/subfolder). How can such a command be constructed ?.

View 1 Replies View Related

Ubuntu Installation :: Can't Find Dpkg Directory In /usr/bin Folder And While Installing Mysql Server?

Sep 6, 2010

I cannot find dpkg directory in /usr/bin folder and while installing mysql server it gives the following error Errors were encountered while processing:

/var/cache/apt/archives/mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

View 1 Replies View Related

General :: How To Find A File With Specific String Inside It

May 7, 2010

Is there any way i can find a file with specific word inside it.For example if i want to find a file which has some text written inside it.How would i form a command to search them?

View 5 Replies View Related

General :: Script To Traverse Into Sub-directory And Replace Line Of File Inside Zip?

Aug 27, 2010

I can't get sed to actually change the file, clearly there's something basic not working, can anyone point me in the right direction? I know nothing about scripting. Oh yeah, all the directories have spaces which was why so elaborated.

find . -name "*epub" | while read file; do unzip -o "$file" content.opf && mv content.opf content.opf.bak && sed 's/<dc:language>UND</dc:language>/<dc:language xsi:type="dcterms:RFC4646">EN</dc:language>/' < content.opf.bak > content.opf && zip "$file" content.opf && rm -f content.* ; done

View 2 Replies View Related

Ubuntu :: Cannot Create .js Inside Some Folders

Jan 19, 2010

During two instances now I have had to create a .js file in a folder. In one instance, (POLIPO) I can create the file, I just cannot save it. I have momentarily forgotten the error message stating why. In the second instance, I have to create a user.js file inside my Firefox folder to allow cut/copy/paste functionality in order to fully utilize an internet forum. I have a Windows desktop at home and used URL...to "fix" Firefox. My laptop, however, needs to have the same capabilities and is running Ubuntu 9.04, fully updated, and Firefox 3.0.17, fully updated.

In short, I would like to know how to have complete control over functions such as "create file" EVERY time I want to. Is this a permission issue? I have only one user on the Ubuntu box. Also, how can I modify Firefox to allow for cut/copy/paste in the Mozilla Rich Text Editor?I am new to using Linux, so a minor spoonfeeding may be required.

View 4 Replies View Related

General :: CHOWN All Folders Within A Folder?

Feb 9, 2011

I would like to change the ownership of some all folders and files within them folders by making changes to parentfolder. But I mess it up.

The folder path is /home/myaccount/shared/target_folder.

Target folder holds several new folders with files inside. How can I easily change ownership to all folders and files within target_folder?

I tried this:
Code: sudo chown myusername /home/myusername/shared/target_folder But I get error:

Unnable to resolve. No such file or directory.

View 5 Replies View Related

General :: No App Folders Being Created In Home Folder / Why Is So?

Jun 14, 2010

No app folders being created in home folder. For example, when I do something like code...

View 3 Replies View Related

General :: Why Are No Application Folders Being Created In Home Folder

Jun 15, 2010

For example, when I do something like...

sudo apt-get install vim

No .vim folder is created in the home folder.

View 1 Replies View Related

Programming :: Need To Copy The Obtained Output Files Inside Corresponding Folders?

Nov 2, 2010

I have encountered a problem:I have "while" loop; at each run a set of outputs is produced but then I need to shift them into a corresponding folder ; otherwise next run the new outputs will be over-written. Furthermore, I need to pipe what I have on the screen inside a file. I have put my code in the following:

Code:
# !/bin/bash
jf="GeoQuery.jar"

[code]...

View 3 Replies View Related

General :: Find Directory Older Than X And Mv Directory With Sub Files Command?

Jul 13, 2011

I'm quite new to linux but I have configured a simple ftp server and it's working great. I have a FTP-Shared folder with upload and download subfolders. Under upload's and download's I have identical category subfolders like mp3's, movies, software etc. in both. As the guy's upload, I would like to create a line crontab where I can move all the content under /FTP-Shared/upload/mp3/* older than 14 day's to FTP-Shared/downloads/mp3/ recursively (Like in cp command), but the timestamp must be searched on the first directory and not sub files example: /mp3/Club Dance/CD1/Hallo world.mp3This is how far I got:[root@clients ~]# /usr/bin/find /FTP_Shared/upload/Mp3s/ -depth -mindepth 1 -mtime +14 -type d -exec mv -f {} /FTP_Shared/download/Mp3s/ ;This command moves the directory and files, but it is not recursively

View 4 Replies View Related

General :: Script To Backup Up Shared Folder Home Folders

May 11, 2009

I am using rhel5 running as samba PDC.Most of the user save their data on a common folder on the server.Now I want to backup this data to some other location to have redundancy.It could be external USB HDD or other folder on the same server.How to create backup script and automate it using cron.

View 1 Replies View Related

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 :: Move All Files And Folders Into A New Directory?

Jan 25, 2011

Unix - In Linux, how do I move all files and folders into a new directory?

View 4 Replies View Related

General :: Move Folders That Contain A File With A Specific Extension To A Destination Folder?

Oct 3, 2010

Many years ago, I converted a portion of my files to an arbitrary format with a specific extension. i no longer desire to have them in this format and i would like begin the process of replacing them because conversion is not an appropriate solution. unfortunately, they are mixed in separate folders of the same root folder with files in my current format of a different extension. I feel it would make this process easier if I were to move every folder that contained a file with the undesired format to a separate root folder. The files are stored on a Linux server and shared via samba. How can I do this with a couple of commands or a script? I am open to other suggestions as well. I want to avoid time spent editing text files. Ultimately, I'd like a command that produced a list of full paths for folders, sorted by the number of levels would be a nice touch. A list of all of the files is clearly not what I'm looking for.

View 2 Replies View Related

General :: Write A Script To Move Specific Files In Various Folders To One Folder?

Nov 16, 2010

Terribly new to Linux and find it mindboggling. I work on brain imaging and unfortunately all of the analysis runs on Linux, and I do not understand computers well coming as I do from a medical background. So my question - There are various folders of patient MRI scans (folders called P1, P2, P3 etc) and within them are enclosed certain files that I am interested in (always called the same name in all folders, say image001). I would like a script that enables me to copy and move this image001 in all these individual folders to another folder altogether.

View 13 Replies View Related

General :: File Permission - User Can Create Files/folders In The Shared Folder

May 4, 2011

Is 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.

View 4 Replies View Related

General :: Bash: Find Folders With Less Than X Files?

Sep 18, 2010

How would I go about finding all the folders in a directory than contain less than x number of .flac files?

View 2 Replies View Related

Fedora :: Some Files Don't Appear Inside The Folder

Jan 19, 2010

I'm having a weird problem with GNOME. Inside a folder I have several files and when i open the folder graphically i can't see some of the files. If i use my terminal i can see those files. It's very strange!! I've rebooted my computer and the problem is still there (inside the same folder)

View 1 Replies View Related







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