Linux常用命令

查看目录文件
按照年月日时分秒显示
ll -rt --time-style="+%Y-%m-%d %H:%M:%S"
临时生效
export TIME_STYLE='+%Y-%m-%d %H:%M:%S'
永久生效
sudo echo "export TIME_STYLE='+%Y-%m-%d %H:%M:%S'" >> /etc/profile && source /etc/profile

 

在配置文件找参数是否存在,可用于找某个参数在哪些配置文件中有
grep -R --include="supervision-fssdj-processor.properties" fss.api.password= /usr/java

 

Oracle中查看最近被修改过的表
select uat.table_name as 表名,(select last_ddl_time from user_objects where object_name = uat.table_name ) as 最后修改日期
from user_all_tables uat order by (select last_ddl_time from user_objects where object_name = uat.table_name ) desc

posted @ 2020-12-06 20:13  自律™  阅读(6)  评论(0编辑  收藏  举报