linux 權(quán)限末尾帶點(diǎn)與不帶點(diǎn)是什么意思啊?我找了好多網(wǎng)站想了解這個問題,要么答非所問,要么根本不提。請指導(dǎo)的人告訴我一下。謝謝 例如:lrwxrwxrwx.
[root@centos7 /]# ll
總用量 24
drwxr-xr-x 3 root root 19 3月 11 19:12 application
lrwxrwxrwx. 1 root root 7 1月 4 18:07 bin -> usr/bin
dr-xr-xr-x. 5 root root 4096 3月 11 20:09 boot
drwxr-xr-x 2 nfsnobody nfsnobody 24 2月 4 16:54 data
drwxr-xr-x 20 root root 3220 4月 15 09:02 dev
drwxr-xr-x. 91 root root 8192 4月 15 09:04 etc
drwxr-xr-x. 9 root root 99 4月 13 14:16 home
lrwxrwxrwx. 1 root root 7 1月 4 18:07 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 1月 4 18:07 lib64 -> usr/lib64
drwxr-xr-x. 2 root root 6 11月 5 2016 media
drwxr-xr-x. 3 root root 18 4月 12 13:25 mnt
drwxr-xr-x. 2 root root 29 2月 10 21:17 opt
dr-xr-xr-x 124 root root 0 4月 15 09:01 proc
dr-xr-x---. 4 root root 134 4月 13 15:16 root
drwxr-xr-x 26 root root 860 4月 15 09:10 run
lrwxrwxrwx. 1 root root 8 1月 4 18:07 sbin -> usr/sbin
drwxr-xr-x 2 root root 92 2月 23 10:37 scripts
drwxr-xr-x. 2 root root 6 11月 5 2016 srv
dr-xr-xr-x 13 root root 0 4月 15 09:01 sys
drwxr-xr-x 2 root root 54 4月 12 16:01 test
drwxrwxrwt. 16 root root 4096 4月 15 09:02 tmp
drwxr-xr-x. 13 root root 155 1月 4 18:07 usr
drwxr-xr-x. 21 root root 4096 4月 12 22:51 var
.
和SELinux相關(guān),表達(dá)具有額外的安全上下文設(shè)置,可以通過ls -alZ
查看
$ ls -alZ
dr-xr-xr-x. root root system_u:object_r:root_t:s0 .
dr-xr-xr-x. root root system_u:object_r:root_t:s0 ..
-rw-r--r-- root root ? .autorelabel
lrwxrwxrwx. root root system_u:object_r:bin_t:s0 bin -> usr/bin
dr-xr-xr-x. root root system_u:object_r:boot_t:s0 boot
drwxr-xr-x root root ? data
drwxr-xr-x root root ? dev
drwxr-xr-x. root root system_u:object_r:etc_t:s0 etc
drwxr-xr-x. root root system_u:object_r:home_root_t:s0 home
lrwxrwxrwx. root root system_u:object_r:lib_t:s0 lib -> usr/lib
lrwxrwxrwx. root root system_u:object_r:lib_t:s0 lib64 -> usr/lib64
drwxr-xr-x. root root system_u:object_r:mnt_t:s0 media
drwxr-xr-x. root root system_u:object_r:mnt_t:s0 mnt
drwxr-xr-x. root root system_u:object_r:usr_t:s0 opt
dr-xr-xr-x root root ? proc
-rw-r--r-- root root ? .readahead
dr-xr-x---+ root root system_u:object_r:admin_home_t:s0 root
drwxr-xr-x root root ? run
lrwxrwxrwx. root root system_u:object_r:bin_t:s0 sbin -> usr/sbin
drwxr-xr-x. root root system_u:object_r:var_t:s0 srv
drwxr-xr-x root root ? ssd
dr-xr-xr-x root root ? sys
drwxrwxrwt. root root system_u:object_r:tmp_t:s0 tmp
drwxr-xr-x. root root system_u:object_r:usr_t:s0 usr
drwxr-xr-x. root root system_u:object_r:var_t:s0 var
因為新版本ls
把acl
和selinux
屬性加進(jìn)去了,與系統(tǒng)無關(guān),新版本的ls
代碼使用12個字節(jié)長的char類型的字符數(shù)組modebuf來記錄文件屬生,前面10個和老版本一樣,第一表示類型,后9個表示權(quán)限,第11個表示selinux和acl的設(shè)置,最后一個當(dāng)然是c的結(jié)尾符0了。
當(dāng)文件或者文件夾只使用了selinux context
的屬性,那么這個在ls -l時后面會是一個點(diǎn)。
只要設(shè)置了acl
,就是那個setfacl設(shè)置的,后面將是一個加(+)號
北大青鳥APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
北大青鳥中博軟件學(xué)院創(chuàng)立于2003年,作為華東區(qū)著名互聯(lián)網(wǎng)學(xué)院和江蘇省首批服務(wù)外包人才培訓(xùn)基地,中博成功培育了近30000名軟件工程師走向高薪崗位,合作企業(yè)超4
中公教育集團(tuán)創(chuàng)建于1999年,經(jīng)過二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術(shù)與教育服務(wù)機(jī)構(gòu),發(fā)展為教育服務(wù)業(yè)的綜合性企業(yè)集團(tuán),成為集合面授教學(xué)培訓(xùn)、網(wǎng)
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
曾工作于聯(lián)想擔(dān)任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
浪潮集團(tuán)項目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗,技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。