Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jan 172010
 

Difference between more and less command

Answer:

Both the less and more help you to display the contents of a given file one screen at a time.

The differences:

  1. more is available on all UNIX system, while less is not
  2. less is more flexible, such as allow to scroll backward

If you are using modern Linux, you can always use less to replace more.

Jan 132010
 

How to split a large file into multiple smaller files in Linux

Answer:

If you have a very large file and want to split into multiple smaller files, split command can do the job for you.

# split -l 10 text.txt

The above command split the file text.txt into a multiple files (xaa, xab, xac...), which contains at most 10 lines per file.