生活随笔
收集整理的這篇文章主要介紹了
mac下用xattr命令来删除文件的扩展属性
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
mac下發現不能用記事本打開文本文件,ls -la 發現格式后面有個@
?
[plain]?view plain
?copy wenke-mini:changeServer?wenke$?ls?-la??total?144??drwxr-xr-x??20?wenke??staff????680??6??4?16:37?.??drwxr-xr-x??22?wenke??staff????748??6??3?16:54?..??-rw-r--r--@??1?wenke??staff??39940??6??4?16:37?.DS_Store??drwxr-xr-x???8?wenke??staff????272??3?27?11:44?103??drwxr-xr-x???6?wenke??staff????204??3?27?13:56?110??drwxr-xr-x???7?wenke??staff????238??3?27?11:44?215??drwxr-xr-x???7?wenke??staff????238??6??4?16:37?215_110??drwxr-xr-x???8?wenke??staff????272??5?30?13:38?225??drwxr-xr-x???8?wenke??staff????272??3?27?11:44?225_110??-rwxr-xr-x???1?wenke??staff????950??4??2?18:39?changeServerTo110??-rwxr-xr-x???1?wenke??staff???1351??4??2?15:46?changeServerTo215??-rwxr-xr-x@??1?wenke??staff???1474??5??2?13:10?changeServerTo225??-rwxr-xr-x???1?wenke??staff????960??4?17?16:31?changeServerTo225_110??-rwxr-xr-x@??1?wenke??staff???1474??5??6?20:26?changeServerToHome??-rwxr-xr-x???1?wenke??staff????933??4?17?16:31?changeServerTos1??-rwxr-xr-x???1?wenke??staff????936??4??2?18:39?changeServerTos1_pop?? ?
goole了一下,用xattr命令可以查看和刪除這個@.
[plain]?view plain
?copy wenke-mini:changeServer?wenke$?xattr?-l?*??changeServerTo225:?com.apple.quarantine:?0002;53589829;QQ;??changeServerToHome:?com.apple.quarantine:?0042;53589829;QQ;?? ?
[plain]?view plain
?copy wenke-mini:changeServer?wenke$?xattr?-c?changeServerTo225??wenke-mini:changeServer?wenke$?xattr?-c?changeServerToHome?? ?
[plain]?view plain
?copy wenke-mini:changeServer?wenke$?ls?-l??total?64??drwxr-xr-x??8?wenke??staff???272??3?27?11:44?103??drwxr-xr-x??6?wenke??staff???204??3?27?13:56?110??drwxr-xr-x??7?wenke??staff???238??3?27?11:44?215??drwxr-xr-x??7?wenke??staff???238??6??4?16:37?215_110??drwxr-xr-x??8?wenke??staff???272??5?30?13:38?225??drwxr-xr-x??8?wenke??staff???272??3?27?11:44?225_110??-rwxr-xr-x??1?wenke??staff???950??4??2?18:39?changeServerTo110??-rwxr-xr-x??1?wenke??staff??1351??4??2?15:46?changeServerTo215??-rwxr-xr-x??1?wenke??staff??1474??5??2?13:10?changeServerTo225??-rwxr-xr-x??1?wenke??staff???960??4?17?16:31?changeServerTo225_110??-rwxr-xr-x@?1?wenke??staff??1474??5??6?20:26?changeServerToHome??-rwxr-xr-x??1?wenke??staff???933??4?17?16:31?changeServerTos1??-rwxr-xr-x??1?wenke??staff???936??4??2?18:39?changeServerTos1_pop??
轉載于:https://www.cnblogs.com/exmyth/p/7887210.html
總結
以上是生活随笔為你收集整理的mac下用xattr命令来删除文件的扩展属性的全部內容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。