/root( /~ ) ディレクトリ内のすべてのエントリを削除します。

/root( /~ ) ディレクトリ内のすべてのエントリを削除します。

ソフトウェアをインストールしようとしていますが、デフォルトのインストールディレクトリです/root。ただし、ソフトウェアをインストールできません。今私はそれをやりたいです。しかし、/rootディレクトリにいくつかのファイルがあります。私がインストールしたソフトウェアなのかシステムファイルなのか分かりません。とにかく、Ubuntuをインストールするときに/ rootディレクトリが空かシステムファイルがあるかどうかを尋ねたいと思います。

ls -laこれはコマンドの出力です。

root@rnt-U410:~# ls -la
total 84
drwx------ 13 root root 4096 Jan  4 23:24 .
drwxr-xr-x 25 root root 4096 Dec 23 21:16 ..
drwxr-xr-x  4 root root 4096 Dec 23 19:44 .android
drwxr-xr-x  3 root root 4096 Dec 23 19:05 Android
drwxr-xr-x  4 root root 4096 Dec 23 19:01 .AndroidStudio
-rw-------  1 root root 6955 Jan  3 23:30 .bash_history
-rw-r--r--  1 root root 3133 Jan  1 16:53 .bashrc
-rw-r--r--  1 root root 3106 Feb 20  2014 .bashrc~
drwx------  3 root root 4096 Dec 23 21:28 .cache
drwxr-xr-x  5 root root 4096 Dec 23 21:28 .config
drwx------  3 root root 4096 Dec 23 21:28 .dbus
-rw-r--r--  1 root root   68 Dec 23 22:24 .gitconfig
drwx------  2 root root 4096 Dec 23 21:28 .gvfs
drwxr-xr-x  3 root root 4096 Dec 23 19:01 .java
drwxr-xr-x  3 root root 4096 Dec 23 21:28 .local
-rw-r--r--  1 root root  256 Dec 26 20:47 .profile
-rw-r--r--  1 root root  194 Dec 26 20:46 .profile~
drwxr-xr-x  3 root root 4096 Dec 23 22:21 .repoconfig
-rw-r--r--  1 root root  116 Dec 23 22:24 .repopickle_.gitconfig
drwxr-xr-x  3 root root 4096 Dec 25 04:26 .swt
root@rnt-U410:~# 

ベストアンサー1

ファイルのタイムスタンプは、インストールプロセス中に何かが生成されたかについてのヒントを提供します。

この/rootディレクトリは root ユーザのホームディレクトリです。明示的に入れない限り、重要なものは存在しません。したがって、すべてを削除しても大丈夫です。 (おそらく.bashrc合計を維持したいかもしれません.profile。)

ヒント:一般ユーザーとして、ほとんどのソフトウェアをコンパイルしてインストールできます。このためにルートを使用する必要はありません。

おすすめ記事