文件夹按时间排序
按照时间升序
命令:ls -lrt
-l use a long listing format 以长列表方式显示(详细信息方式)
-t sort by modification time 按修改时间排序(最新的在最前面)
-r reverse order while sorting (反序)
按照时间降序(最新修改的排在前面)
命令:ls -lt
-l use a long listing format 以长列表方式显示(详细信息方式)
-t sort by modification time 按修改时间排序(最新的在最前面)
更改linux host文件 ,机器名
$ vim /etc/hosts
10.3.13.213 node1
10.3.13.197 node2
10.3.13.194 node3
立即生效
# root @ localhost in ~ [10:44:57] C:127
$ source /etc/hosts
tail
tail -f -n 1000 /user/local/log.out #滚动显示最新的1000行
切换到root账户
https://www.cnblogs.com/sunyllove/p/9771626.html
sudo passwd root #设置root用户密码
su #后输入密码,可以切换到root用户