我已经在Ubuntu10.04上安装了Samba,并且即将使用webmin对其进行配置,但我刚刚意识到,我不知道在Linux系统上创建文件共享的最佳位置。
我希望使用最佳实践,避免意外地造成安全风险,或者在一个有经验的Linux用户很难找到它的非常规地方进行共享。
基本上,我想在Ubuntu文件共享( transfer )和Windows机器之间来回传输一些通用文件(图片、文档等)。
用于man hier的Linux文件系统层次结构文档( /usr/bin )说:
/usr/bin
This is the primary directory for executable programs.
Most programs executed by normal users which are not
needed for booting or for repairing the system and which
are not installed locally should be placed in this
directory.
可能重复: Unix和类Unix系统上目录的含义
我对linux相当陌生,但我安装了几种不同的版本。我注意到它们在根目录中都有相似的文件夹名。
bin
boot
dev
etc
home
lib
lost+found
media
mnt
opt
proc
root
sbin
selinux
srv
sys
tmp
usr
var
我在谷歌上搜索了一下,但找不到任何地方可以解释这两种方法的目的。我能理解一对夫妇,但谁能指点我的某个地方,或者给出一个简单的分类。
我有一个脚本是rsync‘’ing文件夹。但是rsync并没有创建父目录。--dry-run说正在创建文件夹,但是当我删除--dry-run时,脚本错误表示failed: No such file or directory。
image_source="/pi/home/data/pic/2019/05/*.png";
image_destination="/data/static/maps/2019/05";
rsync -hav --progress $image_source $image_destination;
我必须先检查文件夹的存在吗?
我遵循这关于使用Linux (beta)在Chromebook上安装RStudio的伟大指南。我使用的是2017年三星Chromebook 3 (XE500C13K)。在将/etc/apt/sources.list文件附加到deb https://cran.rstudio.com/bin/linux/debian stretch-cran35后,在运行sudo apt update时会收到以下错误:
E: Malformed entry 3 in list file /etc/apt/sources.list (Component)
E: The list of sources could n