zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    [BZOJ2969] 矩形粉刷
    数字 (number)
    字符串(String)
    小HY的四元组
    最大公约数(Max Gcd)
    [洛谷P2102] 地砖铺设
    Python OS模块(内置模块)
    json解析神器--jsonpath
    kafka 优势+应用场景
    Python之异常处理
  • 原文地址:https://www.cnblogs.com/charon2/p/10349791.html
Copyright © 2011-2022 走看看