Ask for an explanation of a linux command

< hr >
cat /usr/local/var/log/nginx/access.log|sort -nrk9|head -2
< hr >

what I wonder about is sort-nrk9;
-nrk. I know what this 9 means. What does this 9 stand for?
here is the format of nginx log

.
log_format  main  "$remote_addr - $remote_user [$time_local] "$request" "
                       "$upstream_response_time "
                       "$status $body_bytes_sent "$http_referer" "
                       ""$http_user_agent" "$http_x_forwarded_for"";
May.31,2021

sort the lines of the log file in reverse numerical order in the ninth column, and finally output the first two lines


in fact, there are three commands here: cat, sort, and head.
for you, 9 is the sorted column

.

has reference http://blog.chinaunix.net/uid.


this means sorting by the ninth column of each row


by the ninth column of each row

  • Php kafka

    installation uses the kafka extension, starts the zookeeper,kafka service, but does not start. . zookeeper-server-start.sh usr kafka kafka-2.0.0-src config zookeeper.properties . kafka-server-start.sh usr kafka kafka-2.0.0-src config server.prop...

    Apr.10,2021
  • Discussion on redis problem

    discuss a few questions, thank you! 1 the working principle of aof storage is used by Magi Redis? 2 how does aof rewrite work? In which processes the main thread and the generated new thread play a role respectively. ...

    Jun.22,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37ba9-2b41e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37ba9-2b41e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?