1.who 命令查看 who -b 查看最后一次系统启动的时间 who -r 查看当前系统运行时间 [root@test ~]# who -b system boot 2017-02-04 10:09 [root@test ~]# who -r run-level 5 2017-02-04 10:09 2.查看系统运行了多长时间 [root@test ~]# top top - 10:46:41 up 37 min, 2…
Sys.Date( ) returns today's date. date() returns the current date and time.# print today's datetoday <-Sys.Date()format(today, format="%B %d %Y")"June 20 2007" # convert date info in format 'mm/dd/yyyy'strDates <- c("01/05/1…