Admin Sky Blog
  • Admin Sky Blog
  • GitLab
  • Mikrotik
  • RocketChat
  • Ansible
    • Ansible. Windows
  • CitrixXenServer
    • XenServer. Change boot order for VM ( HDD / ISO )
    • Using GRE tunnel
    • Citrix XenServer
    • XenServer. Install extra software
    • XenServer 6.5. Install
    • XenServer 7.0. Install
    • XenServer 7.2. Install
  • Etc
    • VirtualUSB
  • Git
    • Endline
  • Linux
    • crontab
    • find + scp
    • sort by column
    • Sending Magic Keys through SSH
  • MacOS
    • OpenVPN. MacOS
    • Macos. Terminal touchid
  • Mail
    • Check reputation
    • Postfix: header_checks
  • PostgreSQL
    • Postgresql. Restore
  • Proxmox
    • GPU passthrow to VM
  • etc
    • VirtualUSB
  • windows
    • Autohotkey
    • Windows. Lost password
Powered by GitBook
On this page
  1. Linux

sort by column

Sometimes you might need to sort a list, not by the first column, but by any other column:

sort -t : -k 3

This command will sort the list based on the third column. The "-t" flag specifies ":" as the field separator, and "-k" indicates which column to sort by.

Previousfind + scpNextSending Magic Keys through SSH

Last updated 1 year ago