Tag: folder

Remove empty directories

Remove all empty directories within the current directory find . -type d -empty -exec rmdir {} \; perl -MFile::Find -e”finddepth(sub{rmdir},’.’)”…

Directory Listing Only Search

The search that limits the results to just directory listings… intitle:”index.of” inanchor:”Last Modified” inanchor:”Description” inanchor:”Parent Directory” -filetype:php -filetype:asp -filetype:htm -filetype:html…

Create a Folder’s ISO image

How to make an ISO image from contents of a directory? mkisofs -V label-name -r directory-name > iso-image.iso [tags]iso,image,folder,linux,mkisofs[/tags]

Remove Extension in Shell Scripting

This command will list all the files a folder without their extensions. Comes handy when doing shell scripting perl -e…

Backup Locally using Rsync

Backup a folder to another local folder using the rsync tool. rsync -av ~/Scripts/ /var/Backup/Rsync/Scripts/ a = Archive Mode v…

List All Files in a Folder Recursively

Save the list of all files in a folder – recursively. find .|sed ‘s/\.\///;’ Another option is ls -R -1…