zoukankan      html  css  js  c++  java
  • 系统操作有关的命令

    1.重启 

    reboot

    2.关机

    shutdown 或者 halt

    3.查看内存基本信息

    cat /proc/meminfo

    4.查看cpu基本信息和版本

    cat /proc/cupifno

    processor    : 0
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 42
    model name    : Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz
    stepping    : 7
    microcode    : 0x29
    cpu MHz        : 3400.000
    cache size    : 3072 KB
    physical id    : 0
    siblings    : 1
    core id        : 0
    cpu cores    : 1
    apicid        : 0
    initial apicid    : 0
    fdiv_bug    : no
    f00f_bug    : no
    coma_bug    : no
    fpu        : yes
    fpu_exception    : yes
    cpuid level    : 13
    wp        : yes
    flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss nx rdtscp lm constant_tsc arch_perfmon xtopology tsc_reliable nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx hypervisor lahf_lm tsc_adjust arat
    bugs        :
    bogomips    : 6800.00
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 43 bits physical, 48 bits virtual
    power management:

    5.查看主机名称

    hostname

    6.查看系统内核

    uname 是 unix 的缩写

    uname -a 查看全部系统版本信息

    daokr@DK:~$ uname -a
    Linux DK 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:34:49 UTC 2016 i686 i686 i686 GNU/Linux

    7.查看当前系统支持的文件系统

    cat /proc/filesystems

    daokr@DK:~$ cat /proc/filesystems 
    nodev    sysfs
    nodev    rootfs
    nodev    ramfs
    nodev    bdev
    nodev    proc
    nodev    cpuset
    nodev    cgroup
    nodev    tmpfs
    nodev    devtmpfs
    nodev    debugfs
    nodev    tracefs
    nodev    securityfs
    nodev    sockfs
    nodev    bpf
    nodev    pipefs
    nodev    devpts
        ext3
        ext2
        ext4
    nodev    hugetlbfs
        vfat
    nodev    ecryptfs
        fuseblk
    nodev    fuse
    nodev    fusectl
    nodev    pstore
    nodev    mqueue
    nodev    autofs
        xfs
        jfs
        msdos
        ntfs
        minix
        hfs
        hfsplus
        qnx4
        ufs
        btrfs
        iso9660
  • 相关阅读:
    [LeetCode]Reverse Linked List II
    [LeetCode]Remove Duplicates from Sorted List II
    嵌入式培训学习历程第六天
    嵌入式培训学习历程第五天
    嵌入式培训学习历程第三天
    嵌入式培训学习历程第二天
    嵌入式培训学习历程第一天
    shell编程
    找整除--全国模拟(二)
    最长公共连续子串--全国模拟(二)
  • 原文地址:https://www.cnblogs.com/wanglijun/p/8672898.html
Copyright © 2011-2022 走看看