top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to read file in Unix?

+1 vote
How to read file in Unix?
posted Jan 5, 2015 by Vidhya Sagar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

There are a number of utilities in Linux which you can use to read a file.
Some of these are:

 1. gedit  (its a text editor for GNOME, like a note pad in windows)
    example :  $ gedit your_fileName
 2. cat  (concatenate files and print on the standard output)
    example:   $ cat your_fileName        //It will print the containts of the file onto the terminal itself.
 3.  vi or vim 
    example :  $ vi your_fineName.
answer Jan 8, 2015 by Arshad Khan
0 votes

Use the following command.
$cat file_name

answer Jan 5, 2015 by Vikram Singh