UOS中我该如何去查找终端所执行命令
Tofloor
poster avatar
newer
deepin
2020-08-03 18:06
Author
是这样的,UOS中,我该如何去查找终端所执行某些修改数据命令的数据文件。路径就行,具体的数据值暂不关心。
Reply Favorite View the author
All Replies
avatar
SamLukeYes
deepin
2020-08-03 19:11
#1
你是要找 .bash_history 吗
Reply View the author
avatar
newer
deepin
2020-08-03 19:37
#2
https://bbs.deepin.org/post/198233
你是要找 .bash_history 吗

不是。我要查找命令行改变数据。这个数据文件是从哪里读取到的。
Reply View the author
avatar
SamLukeYes
deepin
2020-08-03 19:46
#3
https://bbs.deepin.org/post/198233
不是。我要查找命令行改变数据。这个数据文件是从哪里读取到的。

那就用 lsof 命令?
Reply View the author
avatar
newer
deepin
2020-08-03 23:39
#4
https://bbs.deepin.org/post/198233
那就用 lsof 命令?

就是要在设备关机下,搜索磁盘文件,对这个磁盘文件的一些日志进行提取。比如UOS v20 中设置UTC=0的这个配置文件进行读取,但是配置文件的路径就不清楚在哪里了。
Reply View the author
avatar
SamLukeYes
deepin
2020-08-03 23:43
#5
https://bbs.deepin.org/post/198233
就是要在设备关机下,搜索磁盘文件,对这个磁盘文件的一些日志进行提取。比如UOS v20 中设置UTC=0的这个 ...

如果能连接到硬盘,不妨用 chroot?
Reply View the author
avatar
newer
deepin
2020-08-05 19:19
#6
https://bbs.deepin.org/post/198233
如果能连接到硬盘,不妨用 chroot?

这种还是在开机情况下,不能达到关机情况下,对UTC的值进行改变或者读取。
Reply View the author