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/
相关推荐
-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} 官网下载地址:...
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 ...
mkdir /opt/centos-yum.bak mv /etc/yum.repos.d/* /opt/centos-yum.bak/ 上传CentOS-Base.repo到/etc/yum.repos.d/ yum clean all yum makecache yum update 2.如果创建网站失败的话一般是没装好 可以试下...
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...
FATFS,elm-chan官网下载的开源程序,官网下载超慢的,上传此处保留使用。这是官网文件说明:http://elm-chan.org/fsw/ff/00index_e.html
示例:mkdir /home/user/Documents/Photos可以在 “/home/user/Documents” 目录下创建一个名为 “Photos” 的新目录。 使用rm命令删除文件: 示例:rm /home/user/Documents/example.txt可以删除 “/home/user/...
if not os.path.exists(training_path): os.mkdir(training_path) 判断在运行。 2、使用try try: os.mkdir(training_dir) except OSError: pass 参考:...
# 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创建的目录和文件 ………………
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 环境...
安装:yum install httpd* 文件: ... service httpd restart ...然后要本地ip解析 /etc/hosts 配置文件: /etc/httpd/conf/httpd.... chmod o+x /home/username firefox:中: http://ip~username用来访问特定用户的目录
mkdir hexo && cd hexo && hexo init 源文件在 hexo 中 文章 /hexo/source/_posts 写法 文章中 使用 <!-- more --> 进行截断,显示 阅读全文 域名问题 修改 sw 的版本号 /hexo/themes/next/source/service-...
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参数文件(请参阅基本...
# mkdir data # cd data 从下载数据 从github获取此工具的源代码。 # cd /hoge # git clone https://github.com/med2rdf/dbnsfp.git # cd dbnsfp 运行docker命令。 # docker build -t dbnsfp . 对于代理 #...
mkdir /usr/local/ffmpeg 2、安装nasm nasm下载链接如下: https://www.linuxfromscratch.org/blfs/view/8.2/general/mercurial.html 进入网址后,界面如下 先点击右上角Next,到nasm-2.13.03的页面,再选择红框选中...
mkdir metasploitable3-workspace cd metasploitable3-workspace curl -O https://raw.githubusercontent.com/rapid7/metasploitable3/master/Vagrantfile && vagrant up ``` Windows users: ``` mkdir ...
-d $ANDROID_HOME/platforms ] && mkdir -p /opt/android-sdk/platforms $ unzip platform-27_r03.zip -d $ANDROID_HOME/platforms/ $ mv $ANDROID_HOME/platforms/android-{8.1.0,27} 官网下载地址: ...
--Facility is not officially supported in GELF anymore, but you can use staticFields to do the same thing--> <key>tag</key> <value>business-server</value> </staticField> </layout> </encoder>...
mkdir build cd build git clone https://github.com/CineEncoder/cine-encoder.git cd cine-encoder qmake-qt5 -o builddir/Makefile app/cine_encoder.pro -spec linux-g++ CONFIG+=qtquickcompiler make