正在加载搜索索引…
没有最近搜索
没有结果 for "Query here"
默认按字符的编码排序,非数值。
sort - sort lines of text files
sort -r file
sort -n file
月份格式:Jan、Feb、Mar。
Jan
Feb
Mar
sort -M file
默认按(连续的)空格或制表符分隔。
sort -k 1 file
-k 下标从 1 开始,第 3 列为用户 ID。
-k
sort -t ':' -k 3 -n /etc/passwd
sort -f file
sort -u file
alias -p
可查看命令是否内部命令,内部命令与 Shell 编译成一体,与外部命令不同,无须子进程执行。
type cd
cd is a shell builtin
type ps
ps is hashed (/usr/bin/ps)
type -a echo
echo is a shell builtin echo is /usr/bin/echo echo is /bin/echo
type ll
ll is aliased to `ls -alF'
type -a ls
ls is aliased to `ls --color=auto' ls is /usr/bin/ls ls is /bin/ls
readlink - print resolved symbolic links or canonical file names
不用一个一个看了。
readlink -f /bin/vim
/usr/bin/vim.basic