How to sort a file of size 2N bytes, if I have N bytes of memory?

Answers were Sorted based on User's Feedback



How to sort a file of size 2N bytes, if I have N bytes of memory?..

Answer / naggy

In sorting huge files, the most useful options for GNU sort
are "-S size" and "-T tmp_dir". The first option specify the
largest memory sort should use. Sort is more efficient with
larger memory. The second option indicates the temporary
directory used by sort. It is helpful if there is not enough
disk space in the "/tmp" partition.

-S, --buffer-size=SIZE
use SIZE for main memory buffer

Is This Answer Correct ?    0 Yes 0 No

How to sort a file of size 2N bytes, if I have N bytes of memory?..

Answer / victor

by creating n sixe of virtual memory.

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More Linux AllOther Interview Questions

What are the questions we are expecting for 2yrs. experience guy for linux company interview questions?

1 Answers  


What are the main differences between RHEL4 & RHEL5?

11 Answers  


What is the difference between ext3 and ext4?

0 Answers   IBM,


What file should you examine to determine the defined runlevels for your system?

7 Answers  


My root password has been changed, how can i enter into the system without root password?

6 Answers  






What are main anti-spam features available in sendmail?

1 Answers   CSC,


cups stands for..?

6 Answers   IBM,


What utility can you use to automate rotation of logs?

2 Answers  


what is the difference betweenh the NFS and FTP?

4 Answers   IBM,


How do display error messages instantly when command fails?

4 Answers  


How to findout, if the user is local user or NIS user in the Linux (RHEL)?

1 Answers  


what is kernel panic error ? how will you fix it if you have face it after rebooting without the the help of rescue disk ?

2 Answers   Oracle,


Categories