- Learning Linux Shell Scripting
- Ganesh Naik
- 113字
- 2021-06-25 22:02:46
Setting umask
We will see how Linux decides the default permissions of the newly created file or folder:
$ umask 0002
The meaning of the preceding output is that, if we create a new directory, then, from the permissions of +rwx, the permission 0002 will be subtracted. This means that for a newly created directory, the permissions will be 775, or rwx rwx r-x. For a newly created file, the file permissions will be rw- rw- r--. By default, for any newly created text file, the execute bit will never be set. Therefore, the newly created text file and the directory will have different permissions, even though umask is the same.
推薦閱讀
- 面向STEM的mBlock智能機器人創(chuàng)新課程
- 精通MATLAB神經(jīng)網(wǎng)絡
- 網(wǎng)絡服務器架設(Windows Server+Linux Server)
- Visual C# 2008開發(fā)技術實例詳解
- 空間傳感器網(wǎng)絡復雜區(qū)域智能監(jiān)測技術
- 深度學習中的圖像分類與對抗技術
- 機器學習流水線實戰(zhàn)
- 計算機網(wǎng)絡技術基礎
- Linux嵌入式系統(tǒng)開發(fā)
- 大數(shù)據(jù)案例精析
- ZigBee無線通信技術應用開發(fā)
- 重估:人工智能與賦能社會
- 計算機組裝與維修實訓
- WPF專業(yè)編程指南
- Flink內(nèi)核原理與實現(xiàn)