how to transfer files between computers or over the network

rsync command to copy directory structure

Quite often you will need to transfer files from one location to another, many times large files. File transfer is a term that is generally used to refer to the process of transmitting files from one machine to another machine over a computer network such as LAN, WAN or the even the internet. There are several different ways to transfer…

how to merge multiple files into one single file in linux

merge multiple file to one in linux

Many a times you may have multiple files that needs to merged into one single file. It could be that you previously split a single file into multiple files, and want to just merge them back or you have several log files that you want merged into one. Whatever the reason, it is very easy to merge multiple text files into…

how to copy the directory structure without the files in linux

rsync command to copy directory structure

Sometimes, you want to replicate just the structure of a directory to another location, without any of the files that reside inside the directory or the sub-directories. It is quite easy to copy over entire directory including the files by using the cp command. But the cp command does not provide an easy way to exclude files while copying or…

how to sort the output of ‘ls command’ in linux command line

ls Command sorting in linux

In Linux or Unix, ls is the command used to list the contents of a directory. When displaying the files and folders in the directory, it is sometimes more informative to have them sorted by name, size or an another attribute. The ls command does provide some sorting options that are commonly used, such as sorting by name, last modified…

how to remove (rm) or delete a directory or folder in linux

Using Dolphin to remove directories in Linux

There are several different ways to delete folders or directories in Linux file systems. If you use a graphical file browser such as dolphin or nautilus then it provides an easy enough way to delete directory, files and sub-folders. But, sometimes you have access only to the command line and want to delete directory from the command line. Using the…