[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. vue对组件以数组方式赋值的问题

    当从后台直接调接口返回数据 直接将数组array赋值给定义的变量,会导致组件无法更改其它值,例如多选框,多选下拉框,会导致无法选中其它的值,也无法取消当前已赋值的选中项 data() { return ...

  2. 【OpenCV】 在CentOS下搭建OpenCV开发环境

    最近开始入模式识别的坑,自然被迫上OpenCV了. 在多次尝试给VS2015扩展Windows 10 SDK无果后(不要问我为啥..VS2015开发C++的标准库全给扔到这个SDK里了,打包在VS安装 ...

  3. 大数据学习笔记之Zookeeper(二):Zookeeper实战篇(一)

    文章目录 2.1 本地模式安装部署 2.2 配置参数解读 2.1 本地模式安装部署 1)安装前准备: (1)安装jdk (2)通过filezilla工具拷贝zookeeper到到linux系统下 (3 ...

  4. Vagrant 手册之 Multi-machine 多机器

    原文地址 Vagrant 可以在一个 Vagrantfile 中定义并控制多个虚拟机.这就是"multi-machine"环境. 这些机器可以协同工作或互相关联.multi-mac ...

  5. Vue访问子组件实例或子元素

    1 尽管存在 prop 和事件,有的时候你仍可能需要在 JavaScript 里直接访问一个子组件(例如,调用子组件的方法).为了达到这个目的,你可以通过 ref 特性为这个子组件赋予一个 ID 引用 ...

  6. HTML5-autio、video视频音频

    完整版视屏web播放器: 基本autio和ideo介绍 <!DOCTYPE html> <html lang="en"> <head> < ...

  7. python常用模块(3)

    hashlib模块 hashlib提供了常见的摘要算法,如md5和sha1等等. 那么什么是摘要算法呢?摘要算法又称为哈希算法.散列算法.它通过一个函数,把任意长度的数据转换为一个长度固定的数据串(通 ...

  8. Python 学习笔记20 自定义robot Framework 关键字

    Robot Framework 自定义关键字 Robot framework 自定义了一些关键字我们可以把他们当作函数在设计测试用例的时候使用. 同时RF也提供了许多第三方的库,我们可以自己下载使用. ...

  9. Python 学习笔记17 文本 - 读写

    在我们的编程过程中,我们经常需要对文件进行读写操作. 在Python中,对文本的读写非常的方便,只需要简单的几行代码就可以实现. 我们首先新建一个文本文件"Text.txt", 里 ...

  10. ios overflow:scroll不顺畅解决办法

    是要在其样式里面添加这段代码就行  -webkit-overflow-scrolling: touch;