Saturday, March 30, 2013

File Handling Commands in Linux

File Handling Commands in Linux

cat - used to display the contents of a small file on terminal
      usage: cat <file name>
      cat when supplied with more than one file will concatenate the files without
 any header information

 more and less commands are used to view large files one page at a time
      usage: more <file name>
      usage: less <file name>

wc -command is used to count lines, words and characters, depending on the
option used.
     usage: wc [options] [file name]
    You can just print number of lines, number of words or number of characters
by using following options:
     -l : Number of lines
     -w : Number of words
     -c : Number of characters

File Handling Commands in Linux

No comments:

Post a Comment

Linux Tips and tricks,Online Linux Helpers