mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-11 06:16:53 +03:00
e4118b1585
common/: dig, gzip, rm, sort, zfs, zpool linux/: apt-get, shutdown osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler Edits to existing pages: curl: Added simple download example find: Added iname and size exmaples grep: Edited -c description ps: Added wide lines example ssh: edited -D description, added simple port forwarding example unzip: added list option
217 B
217 B
sort
sort lines of text files
- Sort a file in ascending order
sort {{filename}}
- Sort a file in descending order
sort -r {{filename}}
- Sort passwd file by the 3rd field
sort -t: -k 3n /etc/passwd