[英]Script help: giving the user the option to delete a file in the home directory then creates a log of deleted files
[英]Can I delete the Matlab installation file in root user home directory
我刚刚发现Matlab(2016a)在安装过程中在根目录(Linux mint 18), /root/Downloads/MathWorks
下放置了一个2.5 Gb的安装文件。 我想这可能是因为我使用sudo
进行安装。
我的问题是:
sudo
执行程序时,程序存储信息是否正常? /root/Downloads
下的文件吗? (我有限的Linux知识告诉我不要触摸/root
文件夹中的任何内容) su...do
,你基本上执行它“为” root
。 /root/Downloads
- 因为您已经以root用户身份执行了安装程序)来获取临时数据(根据https://de.mathworks.com/matlabcentral/answers/229835-is- the-mathworks-folder-essential-to-run-proper?requestedDomain = www.mathworks.com )。 MathWorks.bak
并检查Mathworks是否仍能正常工作。 如果一切正常,您可以删除MathWorks.bak
。 程序可以在以sudo
身份运行时执行任何操作,并且仅取决于程序的设计目的。 sudo
只是在运行给定命令时提升权限。
我原以为安装程序会将所有内容下载到/tmp
而不是/root/Downloads
,但只要您没有选择/root/Downloads
作为MATLAB的安装目录,这只是临时下载位置,你可以在将MATLAB成功安装到“典型”位置(例如/usr/local/MATLAB/R2016a
后,一定要删除它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.