1)系统安装时间

passwd -S root

[(27) root@Fedora~]#passwd -S root

root PS 2017-05-27 0 99999 7 -1 (密码已设置,使用SHA512算法)

输出信息:

root:代表查询的用户

PS:表示已经存在密码或者已经被锁。NP 表示没有密码 LK 表示用户被锁

2017-05-27 :表示上次用户密码更改时间

0 :密码更改最小日期

99999 :密码更改最大日期

7 :密码过期提醒期限

-1 :密码过期后仍可使用的时间

原文:

-S Report password status on the named account. The first part

indicates if the user account is locked (LK), has no password

(NP), or has an existing or locked password (PS). The second

part gives the date of the last password change. The next parts

are the minimum age, maximum age, warning period, and inactivity

period for the password.

2)查询MAC

[(33) root@Fedora~]#ifconfig

enp2s0: flags=4163 mtu 1500

inet 10.20.41.182 netmask 255.255.0.0 broadcast 10.20.255.255

inet6 fe80::223:9eff:fe03:da00 prefixlen 64 scopeid 0x20

ether 00:23:9e:03:da:00 txqueuelen 1000 (Ethernet)

RX packets 1148342 bytes 300679175 (286.7 MiB)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 877017 bytes 302273584 (288.2 MiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

device interrupt 3

其中ether就是MAC地址

查询mac地址第二种方法:

lshw -c network

[(32) root@Fedora~]#lshw -c network

*-network

description: Ethernet interface

product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller

vendor: Realtek Semiconductor Co., Ltd.

physical id: 0

bus info: pci@0000:02:00.0

logical name: enp2s0

version: 0c

serial: 00:23:9e:03:da:00

size: 100Mbit/s

capacity: 1Gbit/s

width: 64 bits

clock: 33MHz

capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation

configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.042.00 duplex=full ip=10.20.41.182 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s

resources: irq:3 ioport:5000(size=257) memory:58100000-58101000 memory:58200000-58204000

其中serial就是MAC地址

3)查询硬盘序列号:

[(34) root@Fedora~]#hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media

Model Number: LITEON IT LCH-128V2S

Serial Number: 002631100XXF

Firmware Revision: FC72102

Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0

Standards:

Supported: 9 8 7 6 5

Likely used: 9

Configuration:

Logicalmaxcurrent

cylinders1638316383

heads1616

sectors/track6363

--

CHS current addressable sectors: 16514064

LBA user addressable sectors: 250069680

LBA48 user addressable sectors: 250069680

Logical Sector size: 512 bytes

Physical Sector size: 512 bytes

Logical Sector-0 offset: 0 bytes

device size with M = 1024*1024: 122104 MBytes

device size with M = 1000*1000: 128035 MBytes (128 GB)

cache/buffer size = unknown

Nominal Media Rotation Rate: Solid State Device

Capabilities:

LBA, IORDY(can be disabled)

Queue depth: 32

Standby timer values: spec'd by Standard, no device specific minimum

R/W multiple sector transfer: Max = 2Current = 2

DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6

Cycle time: min=120ns recommended=120ns

PIO: pio0 pio1 pio2 pio3 pio4

Cycle time: no flow control=120ns IORDY flow control=120ns

Commands/features:

EnabledSupported:

*SMART feature set

Security Mode feature set

*Power Management feature set

*Write cache

*Look-ahead

*Host Protected Area feature set

*WRITE_BUFFER command

*READ_BUFFER command

*NOP cmd

*DOWNLOAD_MICROCODE

SET_MAX security extension

*48-bit Address feature set

*Device Configuration Overlay feature set

*Mandatory FLUSH_CACHE

*FLUSH_CACHE_EXT

*SMART error logging

*SMART self-test

*General Purpose Logging feature set

*WRITE_{DMA|MULTIPLE}_FUA_EXT

*WRITE_UNCORRECTABLE_EXT command

*{READ,WRITE}_DMA_EXT_GPL commands

*Segmented DOWNLOAD_MICROCODE

*Gen1 signaling speed (1.5Gb/s)

*Gen2 signaling speed (3.0Gb/s)

*Gen3 signaling speed (6.0Gb/s)

*Native Command Queueing (NCQ)

*Host-initiated interface power management

*Phy event counters

*DMA Setup Auto-Activate optimization

Device-initiated interface power management

*Software settings preservation

unknown 78[8]

*SMART Command Transport (SCT) feature set

*SCT Write Same (AC2)

*SCT Error Recovery Control (AC3)

*SCT Features Control (AC4)

*SCT Data Tables (AC5)

*DOWNLOAD MICROCODE DMA command

*WRITE BUFFER DMA command

*READ BUFFER DMA command

*Data Set Management TRIM supported (limit 8 blocks)

*Deterministic read ZEROs after TRIM

Security:

Master password revision code = 65534

supported

notenabled

notlocked

notfrozen

notexpired: security count

supported: enhanced erase

2min for SECURITY ERASE UNIT. 2min for ENHANCED SECURITY ERASE UNIT.

Checksum: correct

其中Serial Number就是序列号了。

看linux后台台账,linux怎么查询台账信息相关推荐

  1. 登录linux后台工具,linux后台进程管理工具-supervisor

    安装环境为:centos,如果是ubuntu的话命令可能会不一样. Supervisor 是一个用python编写的进程管理工具,能将一个普通的命令行进程变为后台的deamon,方便管理. 安装sup ...

  2. linux后台任务结束,linux 中任务的前后台切换和暂停、结束任务的命令

    nohup (command) 2>&1 & 把command命令不挂断的运行,并且放到后台执行,运行日志默认存储到nohup.out文件中 例如: nohup 命令运行时,忽略 ...

  3. linux关闭后台运行命令,linux后台运行、关闭、查看后台任务常用命令

    一.& 加在一个命令的最后,可以把这个命令放到后台执行,如: [root@bqh-01 ~]# watch -n 3 "sh 1.sh"  #每3s在后台执行一次1.sh脚 ...

  4. CentOS 7 如何查询硬件信息

    硬盘 如何查询硬盘硬件信息 lshw -class disk 结果类似如下 参考: linux怎么查询硬盘信息-linux运维-PHP中文网查询硬盘信息的方法:1.使用"df-h" ...

  5. Linux后台开发必看!

    来自:我是程序员小贱 一 自我介绍二 面试情况三 相关知识点汇总1 c/c++相关2 计算机网络3 数据结构相关4 数据库相关5 操作系统6 Linux基础知识及应用编程(后台必备!)7 大数问题8 ...

  6. 深度:一文看懂Linux内核,Linux内核架构和工作原理详解

    简介 作用是将应用层序的请求传递给硬件,并充当底层驱动程序,对系统中的各种设备和组件进行寻址.目前支持模块的动态装卸(裁剪).Linux内核就是基于这个策略实现的.Linux进程1.采用层次结构,每个 ...

  7. Linux常用基本命令【分类查询版】(超实用不来看看嘛?)

    文章目录 命令介绍 Linux命令的通用命令格式 命令的别名 多命令间的逻辑关系 管道命令 帮助命令 man:获得帮助信息 help:获得 shell 内置命令的帮助信息 常用快捷键 文件目录类命令 ...

  8. linux后台运行程序命令screen

    linux后台运行程序命令screen 前言 screen的简单使用 1.创建一个会话窗口 2. 查看我们screen的会话 3. 恢复会话窗口,就是继续查看我们后台运行的程序 前言 我们在服务器终端 ...

  9. linux 共享内存_盘点那些linux 后台开发类常见问题及知识点

    一.linux和os: netstat :显示网络状态 tcpdump:主要是截获通过本机网络接口的数据,用以分析.能够截获当前所有通过本机网卡的数据包.它拥有灵活的过滤机制,可以确保得到想要的数据. ...

  10. Linux的实际操作:查询用户id切换用户su -

    1.查询用户信息:其中 (uid是用户的id号,gid是用户组的id号,属于哪个组) id 用户名 如果没有此用户,控制台就会返回信息"no such user" 2.切换用户: ...

最新文章

  1. @RequestBody, @ResponseBody 注解详解
  2. 【HDU 2028】Lowest Common Multiple Plus
  3. 【运维】详解 /etc/fstab
  4. MTM:matlab实现3谱功率计算
  5. JavaScript版几种常见排序算法
  6. 超实用资源,SCI写作到投稿全阶段模板
  7. selenium IE 浏览器驱动下载地方
  8. 小程序 --- 项目小练手Ⅰ
  9. NET问答: 如何将 ASP.NET Core WebAPI 中抛出的异常封装成对象?
  10. MFC中使用FLASH相关
  11. golang协程池设计
  12. 海康人脸库上传人脸图片和人员扩展信息踩坑记
  13. 爱在心中【tarjan + 缩点】
  14. 爬完点评爬某东,爬他个600多本书籍资料
  15. Veritas NetBackup 7.7.3 + Vistor 虚拟带库
  16. NVIDIA边缘端设备(nano、tx2、xavier等)查看安装的jetpack版本
  17. linux怎么模糊查找文件,linux模糊查找一个文件的方法
  18. 计算机基础课教学心得,浅谈高专院校计算机基础课程的教学心得体会养
  19. STM32 SPI读写FLASH
  20. 如何制作好看的菜单c语言,一种漂亮的自绘菜单

热门文章

  1. 初学git与github理解、使用、实验
  2. C++输入0结束循环
  3. UEFI 基础教程 (十七) - SMM的简单使用
  4. 台式计算机能用蓝牙耳机吗,台式电脑可以连蓝牙耳机吗_台式电脑可以连蓝牙吗-win7之家...
  5. java项目-第120期儿童成长博客记录系统-java毕业设计
  6. bq3060电池控制芯片使用笔记
  7. Win11的两个实用技巧系列之dns异常和打印机重命名
  8. 简单的PPO算法笔记
  9. OpenCV+反色处理
  10. 《自然杂志》19卷4期的 ‘探索物理学难题的科学意义'的 97个悬而未决的难题