[root@wen ~]# w
19:01:27 up 1 day, 7:06, 3 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root tty1 - Sun06 36:30m 0.00s 0.00s -bash
root pts/0 192.168.13.1 14:00 2:39m 0.45s 0.45s -bash
root pts/1 192.168.13.1 19:01 0.00s 0.00s 0.00s w [root@wen ~]# uptime
19:01:38 up 1 day, 7:06, 3 users, load average: 0.00, 0.00, 0.00

查看负载信息

查看ip
ifconfig
ip addr ----- man ip 查看更多 查看磁盘使用情况
[root@wen ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 8.6G 2.3G 5.9G 29% /
tmpfs 491M 0 491M 0% /dev/shm
/dev/sda1 190M 36M 145M 20% /boot 查看inode使用情况
[root@wen ~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda2 577088 81403 495685 15% /
tmpfs 125596 1 125595 1% /dev/shm
/dev/sda1 51200 38 51162 1% /boot 查看当前系统内存的使用情况 [root@wen ~]# free -m
total used free shared buffers cached
Mem: 981 232 748 0 69 62
-/+ buffers/cache: 100 880
Swap: 1023 0 1023

[root@wen ~]# netstat -lntpu|grep 22
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1540/sshd
tcp 0 0 :::22 :::* LISTEN 1540/sshd [root@wen ~]# ss -tunlp|grep 22
tcp LISTEN 0 128 :::22 :::* users:(("sshd",1540,4))
tcp LISTEN 0 128 *:22 *:* users:(("sshd",1540,3)) [root@wen test]# lsof -i :22
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sshd 1540 root 3u IPv4 11157 0t0 TCP *:ssh (LISTEN)
sshd 1540 root 4u IPv6 11159 0t0 TCP *:ssh (LISTEN)
sshd 7296 root 3r IPv4 24132 0t0 TCP bogon:ssh->bogon:64386 (ESTABLISHED)
sshd 8060 root 3r IPv4 25604 0t0 TCP bogon:ssh->bogon:54262 (ESTABLISHED)
sshd 8167 root 3r IPv4 26440 0t0 TCP bogon:ssh->bogon:54599 (ESTABLISHED)
[root@wen test]# lsof -i tcp:22
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sshd 1540 root 3u IPv4 11157 0t0 TCP *:ssh (LISTEN)
sshd 1540 root 4u IPv6 11159 0t0 TCP *:ssh (LISTEN)
sshd 7296 root 3r IPv4 24132 0t0 TCP 192.168.13.128:ssh->bogon:64386 (ESTABLISHED)
sshd 8060 root 3r IPv4 25604 0t0 TCP 192.168.13.128:ssh->bogon:54262 (ESTABLISHED)
sshd 8167 root 3r IPv4 26440 0t0 TCP 192.168.13.128:ssh->bogon:54599 (ESTABLISHED)

查看80端口

查看文本

[root@wen ~]# sed -n '1,3p' /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin [root@wen ~]# awk 'NR<4{print $0}' /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin 将/home/tong/test目录下大于100k的文件移到/tmp目录
[root@wen ~]# cd /home/tong/test
[root@wen test]# dd if=/dev/zero of=oldboy bs=1K count=111
记录了111+0 的读入
记录了111+0 的写出
113664字节(114 kB)已复制,0.000403373 秒,282 MB/秒 [root@wen test]# ls
oldboy [root@wen test]# find . -type f -size +100k|xargs -i mv {} /tmp/
[root@wen test]# ls /tmp/
ps - report a snapshot of the current processes.
[root@wen test]# ps aux|grep 8338
root 8363 0.0 0.0 103320 860 pts/1 S+ 19:52 0:00 grep --color=auto 8338 网卡配置文件,最后的网卡序号可能会变 [root@wen test]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
USERCTL=no
IPV6INIT=no
HWADDR=00:0c:29:e9:95:dd
DNS2=8.8.8.8
DNS1=192.168.59.2
PEERDNS=yes 查看DNS,网卡也可以配置DNS(最先生效),最终也会解析下面的DNS文件
[root@wen test]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search localdomain
nameserver 192.168.13.2
真正查看网卡
[root@wen test]# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: off (auto)
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
查看二进制文件
[root@wen test]# od /bin/ls
统计/var/log/下的文件数
[root@wen test]# find /var/log -type f|wc -l
77
[root@wen test]# find /var/log -maxdepth 1 -type f|wc -l
42


basic play的更多相关文章

  1. Atitit HTTP 认证机制基本验证 (Basic Authentication) 和摘要验证 (Digest Authentication)attilax总结

    Atitit HTTP认证机制基本验证 (Basic Authentication) 和摘要验证 (Digest Authentication)attilax总结 1.1. 最广泛使用的是基本验证 ( ...

  2. Basic Tutorials of Redis(9) -First Edition RedisHelper

    After learning the basic opreation of Redis,we should take some time to summarize the usage. And I w ...

  3. Basic Tutorials of Redis(8) -Transaction

    Data play an important part in our project,how can we ensure correctness of the data and prevent the ...

  4. Basic Tutorials of Redis(7) -Publish and Subscribe

    This post is mainly about the publishment and subscription in Redis.I think you may subscribe some o ...

  5. Basic Tutorials of Redis(6) - List

    Redis's List is different from C#'s List,but similar with C#'s LinkedList.Sometimes I confuse with t ...

  6. Basic Tutorials of Redis(5) - Sorted Set

    The last post is mainly about the unsorted set,in this post I will show you the sorted set playing a ...

  7. Basic Tutorials of Redis(4) -Set

    This post will introduce you to some usages of Set in Redis.The Set is a unordered set,it means that ...

  8. Basic Tutorials of Redis(3) -Hash

    When you first saw the name of Hash,what do you think?HashSet,HashTable or other data structs of C#? ...

  9. Basic Tutorials of Redis(2) - String

    This post is mainly about how to use the commands to handle the Strings of Redis.And I will show you ...

  10. Basic Tutorials of Redis(1) - Install And Configure Redis

    Nowaday, Redis became more and more popular , many projects use it in the cache module and the store ...

随机推荐

  1. C++ 编写的DLL导出的函数名乱码含义解析

    C++编译时函数名修饰约定规则: __stdcall调用约定:   1.以"?"标识函数名的开始,后跟函数名:     2.函数名后面以"@@YG"标识参数表的 ...

  2. 关于VMware中的几个网络模式

    直接参考别人的: 写的已经很细致了: http://blog.csdn.net/yaoyaowugui/article/details/7422388 关键是看别人的几张图

  3. 20190815 On Java8 第五章 控制流

    第五章 控制流 迭代语句 逗号操作符 在 Java 中逗号运算符(这里并非指我们平常用于分隔定义和方法参数的逗号分隔符)仅有一种用法:在 for 循环的初始化和步进控制中定义多个变量.我们可以使用逗号 ...

  4. Docker 换源

    近几天又折腾起 docker来了    我发现自己在拉镜像的时候,总是超时    然后百度了一下  说要换源 90sec的一个水友 推荐了我 阿里云的加速源    我看了还是免费就想试一下 讲一下过程 ...

  5. Java中的容器(集合)之HashMap源码解析

    1.HashMap源码解析(JDK8) 基础原理: 对比上一篇<Java中的容器(集合)之ArrayList源码解析>而言,本篇只解析HashMap常用的核心方法的源码. HashMap是 ...

  6. CF1105C Ayoub and Lost Array ——动态规划

    CF1105C Ayoub and Lost Array 题意:一个整数数组,满足: 1. 长度为n 2. 所有元素都在[l, r]范围内 3. 所有元素的和能被3整除给出n, l, r (1 ≤ n ...

  7. Libre OJ 2255 (线段树优化建图+Tarjan缩点+DP)

    题面 传送门 分析 主体思路:若x能引爆y,从x向y连一条有向边,最后的答案就是从x出发能够到达的点的个数 首先我们发现一个炸弹可以波及到的范围一定是坐标轴上的一段连续区间 我们可以用二分查找求出炸弹 ...

  8. Codeforces 1093D(染色+组合数学)

    题面 传送门 题目大意:给出一个无向图,每个节点可以填1,2,3三个数中的一个 问有多少种填数方案,使两个相邻节点的数之和为奇数 分析 如果图中有奇环,一定无解 我们对图黑白染色,由于图可能不联通,记 ...

  9. [Java聊天室server]实战之三 接收循环

    前言 学习不论什么一个稍有难度的技术,要对其有充分理性的分析,之后果断做出决定---->也就是人们常说的"多谋善断":本系列尽管涉及的是socket相关的知识.但学习之前,更 ...

  10. 使用form提交到搜狗浏览器示例

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...