• sort


    [root@localhost ~]# sort -t ':' -k 3 -n /etc/passwd

    [root@localhost /]# du -sh * | sort -n

    [root@localhost /]# du -sh * | sort -nr

    sort -M 以月份排序Jan、Feb、Mar、Apr、May、Jun、Jul、Aug、Sep、Oct、Nov、Dec

    [root@localhost /]# netstat -lnut

    [root@localhost /]# lsof -i:111

    [root@localhost /]# lsof -i:111

    [root@localhost /]# mount -av

    [root@localhost ~]# sleep 300&

    [1] 4535

    [1]+  运行中               sleep 300 &

    [root@localhost ~]# jobs -l

    [1]+  4535 运行中               sleep 300 &

    [root@localhost ~]# ps --forest

       PID TTY          TIME CMD

      4304 pts/1    00:00:00 bash

      4535 pts/1    00:00:00  \_ sleep

      4708 pts/1    00:00:00  \_ ps

    [root@localhost ~]# ps -ef | grep 4535 | grep -v grep

    root       4535   4304  0 00:51 pts/1    00:00:00 sleep 300

    [root@localhost ~]# which ps

    /usr/bin/ps

    [root@localhost ~]# type -a ps

    ps 是 /usr/bin/ps

    [root@localhost ~]# !232 

    [root@localhost ~]# alias -p    查看当前用的别名

    [root@localhost ~]# echo `date +%Y-%m-%d--%H:%M:%S`.log

    [root@localhost ~]# rpm -qa | sort | less

  • 相关阅读:
    比较全的笔记
    ios路线
    字符串颜色
    ios 开发学习步骤
    百度地图反地理
    p12证书
    ios官方demo
    ios视频网盘
    图片穿透
    OC温习一:基本数据类型
  • 原文地址:https://www.cnblogs.com/charon2/p/10349791.html
Copyright © 2020-2023  润新知