answersLogoWhite

0


Best Answer

Try this in the terminal:

man sort

and

sort -?

Reading it for yourself is the best way to learn.

User Avatar

Wiki User

βˆ™ 9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does the command sort file 1 file 2 do in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is n command in Linux?

There is no "-n" command by default in linux, though it can be an option to other commands. For example, in the make(1) command, it can be used to suppress the make program from actually doing the actions specified - it just prints out what it would have done.Answer[-n] may be what is called a "switch" typically passed to a Unix or Linux command. As mentioned above, it modifies the actions of another command. For example, in the sort(1) command, it instructs sort to sort numerically instead of alphabetically. The meaning of any given switch will typically vary from command to command so read each man page carefully before using a switch. [JMH]


How do you find the largest file in Unix?

There is no simple command available to find out the largest files/directories on a Linux/UNIX/BSD filesystem you can easily find out list of largest files/directoris: du -a /var | sort -n -r | head -n 1


How do you dump printer queue jobs into a file in linux?

1. For ubuntu the command is lpq 2. For redhat the command is lpstat


Why does delete command in ftp failed?

You might not have permission to delete files. On a Linux server, it could be either: 1. You are not listed as the "owner" of the FTP file -- then you'd need to "chown" or change ownership 2. That you don't have the permissions to delete -- then you'd need to "chmod" the file if possible


How do you combine two files without duplication using unix command?

let the first file be a.txt ,second be b.txt and the third one (final file) be c.txt The command would be cat a.txt b.txt | sort -u >c.txt cat a.txt b.txt will combine the two files (with duplicates) | (pipe) will take the output of the previous command and send it as input the next command sort -u sort -u will sort it in ascending order taking only the unique values sort -u > c.txt will send the sorted unique values to c.txt file cat a.txt,b.txt give 1 2 3 4 5 6 5 6 7 89 10 sort -u will give 1 2 3 4 5 6 7 8 9 10 this output is then stored in c.txt hope this was what you were looking for


What are the two commands for setting permissions on a file or directory?

There is generally only 1 standard command for permissions on a file or directory - chmod. You can affect permissions by other commands such as changing the ownership or group ownership of a file or directory. Other commands may be specific to different versions of Unix and Linux, so are not listed here.


Ignou mca 2nd semester solved assignment?

write the Linux command for the following: 1) to display yhe information about Is command i need assignments


To make a copy of a file use the command?

You can use cp command to make a copy of a file. cp <file 1> <file 2> If you want to make a copy of the entire directory then use the recursive option cp -r <dir 1> <dir 2>


How does Linux know what program to open files with?

The exact method the desktop environment uses (it is not a feature of the Linux kernel itself) that selects a program to open a file with varies slightly, but works something like this: 1. The file manager / explorer tries to identify what type of file it is. Unlike in Windows, this is not determined by the file extension, but by various identifying features in the file, such as "magic numbers", or commonly used strings, and syntax used in specific types of plaintext documents. 2. The file is matched by its type to a program. 3. The file manager launches the program with the path to the file as an input parameter, much like entering "programname filename" on the command line.


What is the last file found in Linux?

There is no "last file" to Linux, as 1.) there is no specification as to what files need to be present in a Linux system, other than the kernel, 2.) you would have to define whether "last" meant the last file placed on the disk, or the last file in alphabetical order, and 3.) the system may use an initial ram disk, which has additional files in a compressed form, and will create device nodes upon boot.


HOW to Delete blank torrent file from desktop.U downloaded a torrent file off of a website and it created the actual file that you used to download the file you wanted but it also created this blank 1?

use a Linux CD like ubuntu. run it without make installation.with Linux file explorer find blank torrent files and simple delete it. peri.nic.


What is tar.rpm.bin and source file in Linux and where from we download?

These are different file types used under Linux 1. .tar and archieve files and need to be untared before use 2. .bin could be binary files in(elf format) 3. source file could be normal ASCII files.