亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? unx03.htm

?? Unix Unleashed, Third Edition is written with the power user and system administrator in mind. This
?? HTM
?? 第 1 頁 / 共 5 頁
字號:
<TR>

<TD>

<P>Write</P>

<TD>

<P>2</P>

<TD>

<P>2</P>

<TD>

<P>-</P>

<TR>

<TD>

<P>Execute</P>

<TD>

<P>-</P>

<TD>

<P>-</P>

<TD>

<P>-</P>

<TR>

<TD>

<P>Total</P>

<TD>

<P>6</P>

<TD>

<P>6</P>

<TD>

<P>4</P></TABLE>

<P>In Table 3.3, the resulting numeric mode is 664, the total of the columns for owner, group, and other. The following command sets those permissions regardless of the current ones:

<BR></P>

<PRE>$ ls -l plan-doc2

-r&#151;&#151;&#151;&#151;   1 karen   planners  1721 Aug 14 11:28 plan_doc2

$ chmod 664 plan_doc2

$ ls -l plan-doc2

-rw-rw-r&#151; 1 karen   planners    1721 Aug 14 11:28 plan_doc2</PRE>

<P>Now suppose that Karen has a game program named trek. She wants everyone on the system to be able run the program, but she doesn't want anyone to alter or read it. As the owner, she wants to have read, write, and execute permission. Table 3.4 shows how 

to calculate the correct numeric mode.

<BR></P>

<UL>

<LH><B>Table 3.4. Calculating another set of numeric </B><B>chmod</B><B> options.</B>

<BR></LH></UL>

<TABLE BORDER>

<TR>

<TD>

<PRE><I>Permission</I>

<BR></PRE>

<TD>

<PRE><I>Owner</I>

<BR></PRE>

<TD>

<PRE><I>Group</I>

<BR></PRE>

<TD>

<PRE><I>Other</I>

<BR></PRE>

<TR>

<TD>

<P>Read</P>

<TD>

<P>4</P>

<TD>

<P>-</P>

<TD>

<P>-</P>

<TR>

<TD>

<P>Write</P>

<TD>

<P>2</P>

<TD>

<P>-</P>

<TD>

<P>-</P>

<TR>

<TD>

<P>Execute</P>

<TD>

<P>1</P>

<TD>

<P>1</P>

<TD>

<P>1</P>

<TR>

<TD>

<P>Total</P>

<TD>

<P>7</P>

<TD>

<P>1</P>

<TD>

<P>1</P></TABLE>

<P>Because the three columns add up to 711, the correct chmod command is as follows:

<BR></P>

<PRE>$ chmod 711 trek

$ ls -l trek

-rwx&#151;x&#151;1 1 karen   user1    56743 Apr 9 17:10 trek</PRE>

<P>Numeric arguments work equally well for files and directories.

<BR></P>

<H3 ALIGN="CENTER">

<CENTER><A ID="I18" NAME="I18">

<FONT SIZE=4><B>Default File and Directory Permissions&#151;Your </B><B><I>umask</I></B>

<BR></FONT></A></CENTER></H3>

<P>How are default file and directory modes chosen? Consider the following commands, for example:

<BR></P>

<PRE>$ touch myfile

$ mkdir mydir</PRE>

<P>What permissions will be assigned to myfile and mydir by default, and how can you control those defaults? After all, you don't want to type a chmod command every time that you create a file or directory&#151;it would be much more convenient if they were 

created with the modes that you most often want.

<BR></P>

<P>Your umask (user-mask) controls default file and directory permissions. The command umask sets a new umask for you if you're dissatisfied with the one that the system gives you when you log in. Many users include a umask command in their login start-up 

files (.profile or .login). To find out your current umask, just type <B>umask</B>:

<BR></P>

<PRE>$ umask

022</PRE>

<P>To change your umask, enter <B>umask</B> and a three digit number that specifies your new umask. For instance, to change your umask to 027, enter the following command:

<BR></P>

<PRE>$ umask 027</PRE>

<P>UNIX determines the default directory modes by subtracting your umask from the octal number 777. Therefore, if your umask is 027, your default directory mode is 750.

<BR></P>

<P>The result of this arithmetic is a mode specification like that which you give chmod, so the effect of using the umask command is similar to using a chmod command. However, umask never sets file execute bits, so you must turn them on with chmod, 
regardless of your umask. To find the corresponding file permissions, you subtract your umask from 666. For example, if your umask is 022, your default file modes will be 644.

<BR></P>

<P>Table 3.5 shows some typical umasks and the default file and directory modes that result from them. Choose one that is appropriate for you and insert it into your login start-up file. Table 3.5 shows file and directory modes both numerically and 
symbolically, and umask values range from the most to the least secure.

<BR></P>

<UL>

<LH><B>Table 3.5. Typical </B><B>umask</B><B> values.</B>

<BR></LH></UL>

<TABLE BORDER>

<TR>

<TD>

<PRE><I>umask Value</I>

<BR></PRE>

<TD>

<PRE><I>Default File Mode</I>

<BR></PRE>

<TD>

<PRE><I>Default Directory </I><I>Mode</I>

<BR></PRE>

<TR>

<TD>

<P>077</P>

<TD>

<P>600 (rw&#151;&#151;&#151;-)</P>

<TD>

<P>700 (rwx&#151;&#151;&#151;)</P>

<TR>

<TD>

<P>067</P>

<TD>

<P>600 (rw&#151;&#151;&#151;-)</P>

<TD>

<P>710 (rwx&#151;x&#151;-)</P>

<TR>

<TD>

<P>066</P>

<TD>

<P>600 (rw&#151;&#151;&#151;-)</P>

<TD>

<P>711 (rwx&#151;x&#151;x)</P>

<TR>

<TD>

<P>027</P>

<TD>

<P>640 (rw-r&#151;&#151;-)</P>

<TD>

<P>750 (rwxr-xr-x)</P>

<TR>

<TD>

<P>022</P>

<TD>

<P>644 (rw-r&#151;r&#151;)</P>

<TD>

<P>755 (rwxr-xr-x)</P>

<TR>

<TD>

<P>000</P>

<TD>

<P>666 (rw-rw-rw-)</P>

<TD>

<P>777 (rwxrwxrwx)</P></TABLE>

<P>Perhaps the best way to understand umask values is to experiment with the commands umask, touch, mkdir, and ls to see how they interact, as in the following examples:

<BR></P>

<PRE>$ umask 066

$ touch myfile

$ mkdir mydir

$ ls -l

-rw&#151;&#151;&#151;1 karen     user1     0  Feb 12 14:22 myfile

drwx&#151;x&#151;1 2 karen     user1    512 Feb 12 14:22 mydir

$ rm myfile

$ rmdir mydir

$ umask 027

$ touch myfile

$ mkdir mydir

$ ls -l

-rw-r&#151;&#151; 1 karen    user1     0  Feb 12 14:23 myfile

drwxr-x&#151;  2 karen    user1   512  Feb 12 14:23 mydir</PRE>

<P>The umask command may seem confusing, but it's important. You must choose a umask that provides the default file and directory permissions that are right for you. Otherwise, you'll spend all your time changing file and directory permissions, or leave 
your files and directories with insecure permissions.

<BR></P>

<H3 ALIGN="CENTER">

<CENTER><A ID="I19" NAME="I19">

<FONT SIZE=4><B>Hard and Symbolic Links</B>

<BR></FONT></A></CENTER></H3>

<P>The ln (link) command creates both hard and symbolic links. When you refer to the file &quot;prufrock&quot; in the command cat prufrock, UNIX translates the filename into an internal name. Because UNIX uses a different representation for its internal 
bookkeeping, you can refer to files by more than one name. A hard link is an alternative name for a file. Suppose you have a file data and you use ln to make a hard link to it called data2:

<BR></P>

<PRE>$ ln data data2

$ ls

data  data2</PRE>

<P>The name data2 now refers to exactly the same internal file as data. If you edit data, the changes will be reflected in data2 and vice versa. Data2 is not a copy of data1 but a different name for the same file. Suppose that Karen enters:

<BR></P>

<PRE>$ ln memo1 memo2</PRE>

<P>Karen now has two filenames&#151;memo1 and memo2&#151;that refer to the same file. Since they refer to the same internal file, they are identical except for their names. If she removes memo1, memo2 remains because the underlying file that memo2 refers 
to is still there. UNIX removes the internal file only after you remove all of the filenames that refer to it, in this case both memo1 and memo2. You can now see that rather than saying that rm removes a file, it's more accurate to say that it removes the 

file's name from the file system. When the last name for a file is gone, UNIX removes the internal file.

<BR></P>

<P>What good are hard links? Sometimes people working together on projects share files. Suppose that you and Joe work on a report together and must edit the same file. You want changes that you make to be reflected in Joe's copy automatically, without 
having Joe copy the file anew each time you change it. You also want Joe's changes to be reflected in the copy. Instead of trying to synchronize two separate files, you can make a hard link to Joe's file. Changes he makes will be reflected in your version 

and vice versa because you both are working with the same file even though you use different names for it.

<BR></P>

<P>A symbolic link (also known as a symlink) allows you to create an alias for a file, a sort of signpost in the file system that points to the real file someplace else. Suppose that you frequently look through your friend Joe's Italian recipes, but you 
are

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看精品一区| 一区二区激情小说| 亚洲裸体xxx| 青青青伊人色综合久久| 97精品久久久久中文字幕 | 奇米精品一区二区三区在线观看一| 久久99久久久久| 在线视频一区二区免费| 国产欧美视频一区二区三区| 日韩福利电影在线观看| 99re6这里只有精品视频在线观看| 欧美一二三区精品| 亚洲国产wwwccc36天堂| 波多野结衣一区二区三区| 精品成人在线观看| 日韩电影在线观看网站| 欧美丝袜丝交足nylons图片| 亚洲同性同志一二三专区| 国产不卡视频一区| 国产色综合久久| 精品一区二区三区在线播放| 欧美一区二区三区公司| 午夜精品久久久久久久99樱桃| 91视频在线看| 中文字幕中文在线不卡住| 国产传媒一区在线| 国产午夜精品久久| 国产精品影音先锋| 精品对白一区国产伦| 麻豆专区一区二区三区四区五区| 欧美日韩国产a| 亚洲成人一二三| 欧美日免费三级在线| 一区二区三区在线看| 在线影视一区二区三区| 夜夜亚洲天天久久| 欧美三级一区二区| 五月天婷婷综合| 51精品国自产在线| 蜜桃久久久久久久| 精品三级在线看| 国产精品一区二区x88av| 国产三级精品在线| eeuss鲁片一区二区三区在线观看| 国产精品网站在线播放| av综合在线播放| 亚洲最大成人网4388xx| 欧美日韩一区不卡| 老司机精品视频一区二区三区| 精品免费国产一区二区三区四区| 国产综合色精品一区二区三区| 久久久久久**毛片大全| 99久久综合99久久综合网站| 一区二区三区在线免费视频| 91精品国产综合久久福利软件| 精品在线观看视频| 亚洲婷婷在线视频| 91.xcao| 精品一区二区三区影院在线午夜| 欧美国产精品v| 欧美日韩精品一区二区三区蜜桃| 欧美aaa在线| 国产精品二区一区二区aⅴ污介绍| 91官网在线免费观看| 男男gaygay亚洲| 亚洲欧洲精品一区二区精品久久久| 欧美自拍丝袜亚洲| 精品一区二区久久久| 亚洲同性gay激情无套| 欧美一区二区三区小说| av资源网一区| 久久99精品久久久久婷婷| 亚洲天堂2016| 精品日韩欧美在线| 在线观看日产精品| 国产成a人无v码亚洲福利| 亚洲午夜在线电影| 国产午夜精品一区二区三区四区| 欧美视频一区二| 国产电影一区在线| 天涯成人国产亚洲精品一区av| 久久久久高清精品| 91精品国产麻豆国产自产在线| 成人av影院在线| 美女视频网站久久| 午夜一区二区三区在线观看| 国产欧美一区二区精品忘忧草| 91精品国产全国免费观看| 99久久亚洲一区二区三区青草| 久久精品99久久久| 亚洲h在线观看| 亚洲美女电影在线| 中文子幕无线码一区tr| 欧美mv和日韩mv国产网站| 欧美精品色综合| 欧美午夜不卡视频| 91免费看`日韩一区二区| 国产精品18久久久久久vr| 美女看a上一区| 婷婷久久综合九色综合绿巨人| 一区二区三区精品久久久| 亚洲欧洲精品天堂一级| 久久精品一区二区| 久久亚洲二区三区| 欧美大片在线观看一区| 欧美日韩国产一二三| 欧美三级中文字幕在线观看| 91色|porny| 97se亚洲国产综合自在线不卡| 国产成人av一区二区| 国产精品小仙女| 国产成人在线免费| 风间由美一区二区三区在线观看| 国精产品一区一区三区mba视频 | 精彩视频一区二区| 久久99精品国产91久久来源| 青草国产精品久久久久久| 日韩国产一区二| 美国十次了思思久久精品导航| 青草国产精品久久久久久| 麻豆国产精品官网| 国产在线精品一区二区不卡了| 久久er99精品| 国产精品18久久久| 99久久久精品| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 91麻豆精品秘密| 欧美美女黄视频| 欧美一区二区三区成人| 日韩欧美一级二级三级| 久久久影视传媒| 中文一区在线播放| 1024成人网| 香蕉成人啪国产精品视频综合网| 男女性色大片免费观看一区二区| 麻豆成人免费电影| 高清在线不卡av| 一本色道a无线码一区v| 欧美丰满美乳xxx高潮www| 久久伊99综合婷婷久久伊| 国产精品久久久一本精品| 亚洲国产欧美在线人成| 免费的国产精品| 成人一区二区在线观看| 色狠狠av一区二区三区| 日韩欧美中文一区二区| 国产精品青草综合久久久久99| 亚洲国产人成综合网站| 国产伦理精品不卡| 色综合天天综合狠狠| 欧美本精品男人aⅴ天堂| 亚洲欧洲精品天堂一级| 日韩激情视频网站| 成人国产在线观看| 欧美精品99久久久**| 成人欧美一区二区三区黑人麻豆| 丝袜诱惑亚洲看片| 成人18精品视频| 欧美一级久久久久久久大片| 国产精品久久久久久久久动漫 | 国产精品一区二区无线| 91国偷自产一区二区三区成为亚洲经典| 日韩欧美久久久| 亚洲高清视频在线| 国产高清精品在线| 3d成人h动漫网站入口| 亚洲欧洲无码一区二区三区| 捆绑调教一区二区三区| 欧美四级电影网| 综合电影一区二区三区 | 高清国产一区二区三区| 欧美高清一级片在线| 成人免费在线视频| 国产乱码精品一品二品| 欧美伦理影视网| 一区二区三区成人在线视频| 国产91精品一区二区| 欧美大胆人体bbbb| 午夜激情一区二区| 日本福利一区二区| 国产精品色哟哟网站| 韩国三级在线一区| 欧美一区二区视频观看视频 | 日本福利一区二区| 日韩美女精品在线| 成人av片在线观看| 欧美激情自拍偷拍| 国产一区二区美女| 精品盗摄一区二区三区| 美女国产一区二区三区| 欧美日韩午夜精品| 亚洲bdsm女犯bdsm网站| 欧美在线观看一二区| 玉米视频成人免费看| 91热门视频在线观看| ●精品国产综合乱码久久久久| 不卡电影一区二区三区| 国产精品女同互慰在线看| 成人午夜伦理影院| 亚洲国产精品精华液ab|