![]() ![]() As per the above command, we are using the sort command with different options like “-n & -r”.We need to use the “-r and -n” option with the sort command. It is the most common way to practice the sort command in the Linux operating system. The sort command, we are able to sort the largest file size in the environment. Given below are the examples mentioned : Example #1 It is the natural sort of (version) numbers within the text. It will help for sort according to the WORD but we need to use the specific flags with it like general-numeric -g, human-numeric -h, month -M, numeric -n, random -R, version -V. It will help to reverse the result of comparisons. The parameters help to get the random bytes from FILE. It will help to sort by the random hash of keys. It will help to compare the string numerical value. It will help to compare the human readable numbers like 2K 1G. It will help to compare the month parameters like. It will only consider the printable characters. It will help to compare the general numerical value. It will help to convert the lower case to upper case characters. It will only consider the blanks and alphanumeric characters. It will help to ignore the leading blanks. As per the arguments, the sort command will sort the files as per the file size.īelow are the lists of options that are compatible in sort command as per the file size. The sort command will accept the different arguments like the option, file, file path, etc. To avoid such incidents, we can use the sort command-line utility to identify the large size files and folders. The server or the environment will be in an unhealthy state or may the server will not work. If the size will increase and we haven’t taken the necessary action on it. In the Linux operating system, it is mandatory to check the files and folders size. It will help to identify the files as per the given parameters. FILE: We can provide the specific file or path to the “sort” command.OPTION: We can provide the different flags as the option that is compatible with the “sort” command.As per the provided arguments, it will sort the necessary files as per the giving parameters or options. It will take different arguments like OPTION, file name, path, etc. sort: We can use the “sort” keyword in the syntax or command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |