Category Archives: Linux

Shell Script to copy files in a folder

A shell script to find all the files in the given path recursively and then copying them in the target folder

#!/bin/sh 
#################################################################
# A shell script to go through a directory recursively and copy #
# all the files in the given folder by sandeep nandal 2012      #
#################################################################
 Continue reading 

open any file from terminal in linux

All window users know how to open a file with it’s default application, by simply double click on the file icon. Same can be done if linux is used in X Window Graphical User Interface. Eg. double click any .mp3 file to play the .mp3 in the default music player or double click any .pdf file in default pdf viewer. Now here we list how to open these files through (command line) terminal with their default applications.These commands work same as if you double click the file in GUI. Continue reading