rev (Reverse Ubuntu Linux command tutorials)

  • rev command displays the contents of file in the reverse order.

  • rev reverses the characters and digits but not the order of text.

 

Syntax

rev filename

  • The following snapshot shows the output of 1.txt and rev 1.txt

 

 

  • The following snapshot shows the output of names.txt and rev names.txt


 

border