在 CentOS 系统中,你可以使用以下命令来查看当前的时间戳:
使用 date
命令:
date +%s
date +%s%3N
使用 python
脚本(如果你安装了 Python):
python -c 'import time; print(int(time.time()))'
python -c 'import time; print(int(time.time() * 1000))'
使用 perl
脚本(如果你安装了 Perl):
perl -e 'print time(), "
"’ ```
perl -e 'print int(time() * 1000), "
"’ ```
这些命令都会输出当前的系统时间戳,你可以根据需要选择合适的命令来使用。