Hmmm, trying to create a directory under '/home' on a Mac?
Well, Apple doesn't want you to (with good reason, automounter owns this dir, which makes it easier to do NFS mounts and such) so you shouldn't muck with it but if you really just 'have to do it', here is how you can.
Basically: Edit /etc/auto_master and remove or comment out the line that starts with "/home".
example:sudo vim /etc/auto_master
before:
# Automounter master map +auto_master # Use directory service /net -hosts -nobrowse,hidefromfinder,nosuid /home auto_home -nobrowse,hidefromfinder /Network/Servers -fstab /- -static
after:
# Automounter master map +auto_master # Use directory service /net -hosts -nobrowse,hidefromfinder,nosuid #/home auto_home -nobrowse,hidefromfinder /Network/Servers -fstab /- -static
to have the change take effect without a reboot:sudo automount
mkdir /home/test
ls -l /home/
total 0
drwxr-xr-x 3 root admin 102 Aug 10 11:33 test
NOTE: I wouldn't do anything 'important' with this directory as it's easy to forget you altered this and an upgrade will plow over this directory, removing all data. (this dir is also not included in any Time Machine backups.
转:http://myth326.blog.163.com/blog/static/122251863201122410491446/
相关推荐
linux快速安装jdk1.8方式及环境配置 一、下载jdk ... **注:安装之前先查看一下系统有没有已经安装的版本 查看当前系统jdk的版本:java -version 如果有先卸载,查看jdk目录文件yum ...进入linux创建Java文件mkdir /usr/ja
2,用命令配置NFS服务 A,安装NFS服务器端 root@yuanxh-desktop:/home/yuanxh# apt-get install nfs-kernel-server nfs-common portmap B,配置访问目录及权限 root@yuanxh-desktop:/home/yuanxh/at91_works# mkdir ...
-d $ANDROID_HOME/platforms ] && mkdir -p /opt/android-sdk/platforms $ unzip platform-28_r04.zip -d $ANDROID_HOME/platforms/ $ mv $ANDROID_HOME/platforms/android-{9,28} 官网下载地址:...
go1.4.darwin-amd64-osx10.8.pkg go1.4 Mac OS X (x86 64-bit) PKG installer 设置环境变量 配置 GOROOT 和 GOPATH: 代码如下: 创建目录下的go文件夹: mkdir ~/go 下面的东西放到.bash_rc(也可能是.bash_profile...
例如,在代码`feature_dir=os.path.join(os.getcwd(), 'system', 'feature')`中,如果'system'目录不存在,直接运行`os.mkdir(feature_dir)`将会失败,因为os.mkdir无法创建多级目录结构中的非最后一级目录。...
在本教程中,我们将深入探讨如何在Cent OS操作系统上安装并部署Redis,这是一个高效、开源的内存数据结构存储系统,常被用作数据库、缓存和消息代理。Redis以其高速性能和丰富的数据结构支持而备受青睐。以下是详细...
sudo mkdir -p ${JENKINS_HOME}/workspace/NEW_TEST/__logs sudo touch /var/deploy/NEW_TEST/phing/build.xml sudo touch /var/deploy/NEW_TEST/phpdox/gen.xml ``` 通过以上步骤,我们可以成功搭建基于 Jenkins ...
wget http://cseweb.ucsd.edu/~viscomp/projects/LF/papers...mkdir -p data cd data wget http://cseweb.ucsd.edu/~viscomp/projects/LF/papers/ECCV20/nerf/nerf_example_data.zip unzip nerf_example_data.zip cd ..
mkdir -p bin curl --location --retry 5 https://github.com/aria2/aria2/releases/download/release-1.29.0/aria2-1.29.0-osx-darwin.tar.bz2 | tar --strip-components=2 -C bin -jxf - aria2-1.29.0/bin/aria2c ...
# mkdir -p /mnt/cdrom # mount /dev/cdrom /mnt/cdrom # mkdir -p /tmp/vmwaretools # cp /mnt/cdrom/VMwareTools*.tar.gz /tmp/vmwaretools/ # unmount /dev/cdrom # cd /tmp/vmwaretools # tar xf VMwareTools*....
1. 安装SVN apt-get install subversion 2. 建立svn仓库 1). 建立svn目录:mkdir /home/.svn(使用... 创建仓库test:svnadmin create /home/.svn/test,执行完毕后test目录有svnadmin创建的目录和文件 ………………
* 修改用户权限:chmod命令可以修改用户权限,例如chmod 755 /home/test。 十三、文件安装 * 文件下载:wget命令可以下载文件,例如wget http://example.com/test.rpm。 * 文件安装:rpm命令可以安装文件,例如rpm...
mkdir -p /home/zck/zhuchengkai/software/Python-3.6.4 # 编译安装 ./configure --prefix="/home/zck/zhuchengkai/software/Python-3.6.4" make make install 3、配置环境变量 vim ~/.bash_profile # python 环境...
根据提示输入项目名称(例如“test”),选择默认的数据库(通常是SQLite)和Subversion路径(即`/home/svn/test`)。 确保Trac目录的权限正确: ```bash sudo chown -R www-data /home/trac sudo chown -R ...
mkdir kernel cd kernel git clone git://android.git.kernel.org/kernel/common.git git clone git://android.git.kernel.org/kernel/experimental.git git clone git://android.git.kernel.org/kernel/msm.git git...
mkdir /home/weblogic chown weblogic:weblogic /home/weblogic ``` 2. **以WebLogic用户身份进行WebLogic安装:** - 解压WebLogic介质到`/home/weblogic`目录。 - 运行安装程序并按照提示完成安装。 ##### 4.4...
mkdir ~/rcs; cd ~/rcs git clone git://opennms.git.sourceforge.net/gitroot/opennms/opennms ``` 然后,使用以下命令查看所有的分支: ``` git branch -a ``` 并创建本地分支: ``` git checkout -b 1.8 ...
cd data/VOC0712 vim create_data.sh ./create_data.sh 火车 cd examples/yolo/darknet_voc mkdir models # edit according yourself vim gnet_region_train_darknet448_voc.prototxt vim gnet_region_test_darkent...
mkdir SimData $AMRVAC_DIR /setup.pl -d=2 # Each time mod_usr.t is updated make -j 4 # Each simulation mpirun -np 4 ./amrvac -i test.par 去做 进行基础模拟设置 将问题陈述转换为.par参数文件(请参阅基本...