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

there are many IPC mechanisms available in Linux ? Which one is best to use and when ?

1 Answers   Broadcom,


How to give 2 different gateway IP addresses for 2 different interfaces in same system ?

5 Answers   Toyota,


cups stands for..?

6 Answers   IBM,


What is the name and path of the main system log?

3 Answers  


what is NIS Server...?

2 Answers   IBM,






How to load the old kernel without rebooting server

1 Answers  


How can you see all mounted drives?

10 Answers  


what are the different types of Backups..?

6 Answers   IBM, SDG,


What is Hard mount and soft Mount?

0 Answers   Cap Gemini,


What is LILO?

11 Answers   Cisco,


As a system admin i want to know some things what are the troubleshooting issues we are facing frequently and what are the tickets will be raised.

0 Answers   Ondot,


Through ssh whole directory structure from / is shared regardless the user we have connected with ....... how do i prevent sharing ??

4 Answers   Tech Mahindra,


Categories