mac tips/ まっく
- .bashrcのロード。
~/.bash_profileに以下を記述。
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
- dsclコマンド(v10.5以降)
directory service command line。ユーザ管理に利用。
$ dscl . -list /
$ dscl . -read /Users/egghead
$ dscl . -read /Users/egghead UserShell
$ dscl . -search /Users UniqueID 501
- install_name_tool コマンド
共有ライブラリパスの変更
$ otool -L executable
$ install_name_tool -change not_found.dylib existing.dylib executable
- roモードでmount_ntfs コマンド
Check the "Device Node:" & "Mount Point:" by the following command.
$ diskutil info "/Volumes/drive name"
Unmount drive. and execute mount_ntfs with "-o rw" option
$sudo mount_ntfs -o rw /dev/disk?s? "/Volumes/drive name"