Tag: files

Command to View just the Files

View just the files of directory ls -F

Command to Sort Files by Size

Show size of the files and directories sorted by size du -sk * | sort -rn

cmp Command – Compare Files

The command cmp is similar to diff: # cmp file1 file2 file1 file2 differ: byte 10, line 1

Basic Diff

If you use the diff command, you will be able to see the difference between the files as shown below:…

Concatinate Files in Linux

This is how you concatinate multiple files in linux… cat file1 file2 file3 > final_file

Change the Extension of Multiple Files in Linux

In this example, we will change all files with extension ‘.info’ to ‘.txt’. Rename all *.info files in one folder…