Tag: Linux

Comparing files using diff and cmp

The diff command gives details of differences between two files. The cmp command simply tells you whether two files are the same or different. The results would be something like…

scp – secure copy

SCP allows file to be copied to, from, or between different hosts using ssh for data transfer. Copy files from remote computer to a local computer: Copy files from local…

bash: Sorting and Merging files

The following script merges several files into one file. Line 5 creates a sorted list of directory contents. Line six loops through all files with .fasta extension. Line 8 appends…

Linux alias command

The alias command assigns a command or set of commands to a string. Aliases are generally used to simply typing a long command or to execute an option to a…

PHP: Display directory contents

For security reasons, most servers on the Internet do not show the contents of a directory if the directory address is typed. The user is either redirected to index.whatever, a…

rsync command

rsync is a very useful alternative to rcp and scp. It tool lets you copy files and directories between a local host and a remote host. The main advantage of…

Linux split command

In Linux you can use split and join commands to split large files into smaller files or join many smaller files into a large file. This kind of operations are…