'2022/05/28'에 해당되는 글 1건

  1. 2022.05.28 .DS_Store 파일 생성 막기
Apple2022. 5. 28. 20:56

 

일단 요건 카탈리나(10.15.7)에서 에러나고

% defaults write com.apple.desktopservices DSDontWriteNetworkStores true

[링크 : http://uidesignguides.com/mac-ds-store-file-prevent/]

 

아래는 에러없이 실행은 되는데 samba 서버에서 안생기는지 테스트 하기에는 좀 귀찮...

% defaults write com.apple.finder AppleShowAllFiles FALSE
% killall Finder

[링크 : https://iboysoft.com/wiki/ds-store.html]

 

% defaults
Command line interface to a user's defaults.
Syntax:

'defaults' [-currentHost | -host <hostname>] followed by one of the following:

  read                                 shows all defaults
  read <domain>                        shows defaults for given domain
  read <domain> <key>                  shows defaults for given domain, key

  read-type <domain> <key>             shows the type for the given domain, key

  write <domain> <domain_rep>          writes domain (overwrites existing)
  write <domain> <key> <value>         writes key for domain

  rename <domain> <old_key> <new_key>  renames old_key to new_key

  delete <domain>                      deletes domain
  delete <domain> <key>                deletes key in domain

  import <domain> <path to plist>      writes the plist at path to domain
  import <domain> -                    writes a plist from stdin to domain
  export <domain> <path to plist>      saves domain as a binary plist to path
  export <domain> -                    writes domain as an xml plist to stdout
  domains                              lists all domains
  find <word>                          lists all entries containing word
  help                                 print this help

<domain> is ( <domain_name> | -app <application_name> | -globalDomain )
         or a path to a file omitting the '.plist' extension

<value> is one of:
  <value_rep>
  -string <string_value>
  -data <hex_digits>
  -int[eger] <integer_value>
  -float  <floating-point_value>
  -bool[ean] (true | false | yes | no)
  -date <date_rep>
  -array <value1> <value2> ...
  -array-add <value1> <value2> ...
  -dict <key1> <value1> <key2> <value2> ...
  -dict-add <key1> <value1> ...

'Apple' 카테고리의 다른 글

개발자는 맥을 쓴다?  (14) 2022.06.08
맥은 맥이다. (mac is NOT LINUX)  (0) 2022.05.29
mac 창 분할 사용하기  (0) 2022.05.01
맥 멀티 모니터 설정  (0) 2022.05.01
macos opengl(cocoa?)  (0) 2022.04.28
Posted by 구차니