linux中date命令和time命令的作用

date命令作用:可以用来显示或设定系统的日期与时间。

date命令详细用法:https://www.cnblogs.com/asxe/p/9317811.html

time命令:常用于测量一个命令的运行时间。
它能做的不仅仅是测量运行时间,还可以测量内存、I/O等的使用情况。一个程序在运行时使用的系统资源通常包括CPU、Memory和I/O等,其中CPU资源的统计包括实际使用时间(real time)、用户态使用时间(the process spent in user mode)、内核态使用时间(the process spent in kernel mode)。

相关推荐