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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? unx04.htm

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

<HEAD>

<TITLE>UNIX Unleashed unx04.htm</TITLE>

<LINK REL="ToC" HREF="index.htm">

<LINK REL="Next" HREF="unx05.htm">

<LINK REL="Previous" HREF="unx03.htm"></HEAD>

<BODY TEXT="#000000" LINK="#0000FF" VLINK="#800080" bgcolor=white>

<P><A HREF="unx03.htm"><IMG SRC="bluprev.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Previous Page"></A>

<A HREF="index.htm"><IMG SRC="blutoc.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="TOC"></A>

<A HREF="unx05.htm"><IMG SRC="blunext.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Next Page"></A>

<A HREF="index.htm"><IMG SRC="bluprev.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Home"></A>

</P><UL>

<LI>

<A HREF="#I1">4 &#151; Listing Files</A></LI>

<UL>

<UL>

<LI>

<A HREF="#I3">Listing Files and Directories: ls Revisited</A></LI>

<UL>

<LI>

<A HREF="#I4">ls The Short and Long of It</A></LI></UL>

<LI>

<A HREF="#I5">Other ls Options</A></LI>

<UL>

<LI>

<A HREF="#I6">Showing Hidden Files with -a</A></LI>

<LI>

<A HREF="#I7">Showing File Types with -F</A></LI>

<LI>

<A HREF="#I8">Listing Files Whose Names Contain Nonprintable Characters with -q</A></LI>

<LI>

<A HREF="#I9">Other Useful ls Options</A></LI></UL>

<LI>

<A HREF="#I10">Using Metacharacters When Referring to Filenames</A></LI>

<UL>

<LI>

<A HREF="#I11">Pattern Matching on a Single Character</A></LI>

<LI>

<A HREF="#I12">Pattern Matching on a Group of Characters</A></LI>

<LI>

<A HREF="#I13">Pattern Matching on Character Sets</A></LI></UL>

<LI>

<A HREF="#I14">How File Substitution Works</A></LI>

<LI>

<A HREF="#I15">The find Command</A></LI>

<UL>

<LI>

<A HREF="#I16">Search Criteria</A></LI>

<UL>

<LI>

<A HREF="#I17">Finding Files with a Specific Name: -name fname</A></LI>

<LI>

<A HREF="#I18">Locating Files of a Specific Size: -size n</A></LI>

<LI>

<A HREF="#I19">Locating Files of a Specific Size: -size n</A></LI>

<LI>

<A HREF="#I20">Displaying the Path Names of Found Files: -print</A></LI>

<LI>

<A HREF="#I21">Executing a UNIX Command on the Found Files: -exec cmd \;</A></LI>

<LI>

<A HREF="#I22">Executing a UNIX Command on Found Files, But Querying First: -ok cmd \;</A></LI>

<LI>

<A HREF="#I23">Writing Found Files to a Device: -cpio device</A></LI></UL>

<LI>

<A HREF="#I24">Search Qualifiers</A></LI>

<UL>

<LI>

<A HREF="#I25">Searching for Files on Only the Current File System: -mount</A></LI>

<LI>

<A HREF="#I26">Altering the Search Path with -depth</A></LI></UL>

<LI>

<A HREF="#I27">Combining Search Criteria</A></LI>

<UL>

<LI>

<A HREF="#I28">Negating Expressions to Find Files That Don't Meet Criteria</A></LI>

<LI>

<A HREF="#I29">Specifying More Than One Path to Search</A></LI></UL></UL>

<LI>

<A HREF="#I30">Controlling Input and Output</A></LI>

<UL>

<UL>

<LI>

<A HREF="#I31">Output Redirection</A></LI></UL>

<LI>

<A HREF="#I32">Input File Redirection</A></LI>

<LI>

<A HREF="#I33">Redirecting Error Messages</A></LI></UL>

<LI>

<A HREF="#I34">Using Pipes to Pass Files Between Programs</A></LI>

<LI>

<A HREF="#I35">Summary</A></LI></UL></UL></UL>



<H1 ALIGN="CENTER">

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

<BR>

<FONT SIZE=5><A ID="I2" NAME="I2"></A><B>4 &#151; Listing Files</B>

<BR></FONT></A></CENTER></H1>

<P>This chapter covers some useful commands and constructs that help you better manage your data files. As a system matures, the file system becomes an eclectic collection of data files&#151;some old, some new, some borrowed, some blue. The file system 
maintains information about data files such as file ownership, the size of the file, and the access dates. All of this information is useful in helping to manage your data. You'll learn more about ls, the directory list command. In addition, you'll learn 
about the find command, which you can use to locate files even when you don't know the complete path name.

<BR></P>

<P>Sometimes you want to limit the scope of a command so that the output from the command is more focused. You accomplish this by using partial filenames and some special wildcard characters. This chapter discusses three ways of causing the system to make 

filename substitutions.

<BR></P>

<P>You'll also look at two of the most powerful features of UNIX&#151;redirection and piping&#151;which are methods for rerouting the input and output of most commands.

<BR></P>

<H3 ALIGN="CENTER">

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

<FONT SIZE=4><B>Listing Files and Directories: </B><B><I>ls</I></B><B> Revisited</B>

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

<P>As you learned in Chapter 3, &quot;The UNIX File System: Go Climb a Tree,&quot; the ls command lists the names of files and directories. This section reviews the basics of ls and provides examples of its options.

<BR></P>

<H4 ALIGN="CENTER">

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

<FONT SIZE=3><B><I>ls</I></B><B> The Short and Long of It</B>

<BR></FONT></A></CENTER></H4>

<P>In its simplest form, the ls command without arguments displays the names of the files and directories in the current working directory in alphabetical order by name. For example,

<BR></P>

<PRE>$ <B>ls</B>

21x        LINES.dat    LINES.idx   PAGES.dat   PAGES.idx

acct.pds   marsha.pds   p11         t11         users</PRE>

<P>On some systems, the default output from ls is a single column of output. Most of the examples in this chapter use the columnar format to conserve space.

<BR></P>

<P>The ls command can also accept a filename as a command line parameter. For example,

<BR></P>

<PRE>$ ls marsha.pds

marsha.pds</PRE>

<P>If the command line parameter is a directory name, all the files in that directory are listed. For example,

<BR></P>

<PRE>$ ls users

dave     marsha     mike</PRE>

<P>Notice that the files are listed in order by collating sequence. That is, files beginning with numbers come first; files beginning with uppercase characters come next; and files beginning with lowercase characters come last. Also notice that although 
this format displays your filenames in a compact fashion, it doesn't give you much information about the files. You can get more detail about the files by requesting a long listing with the -l option. For example,

<BR></P>

<PRE>$ ls -l

-rwxr-xr&#151;   1 asm      adept       512 Dec 14 16:16 21x

-rw-rw-r&#151;   1 marsha   adept      1024 Jan 20 14:14 LINES.dat

-rw-rw-r&#151;   1 marsha   adept      3072 Jan 20 14:14 LINES.idx

-rw-rw-r&#151;   1 marsha   adept       256 Jan 20 14:14 PAGES.dat

-rw-rw-r&#151;   1 marsha   adept      3072 Jan 20 14:14 PAGES.idx

-rw-rw-r&#151;   1 marsha   acct        240 May  5  1992 acct.pds

-rw-rw-r&#151;   1 marsha   adept      1024 Nov 22 15:42 marsha.pds

-rwxrwxr&#151;   4 root     sys      243072 Aug 22  1991 p11

-rwxrwxr&#151;   4 root     sys      256041 Aug 22  1991 t11

drw-rw-r&#151;   1 marsha   adept      3072 Oct 12 11:42 users</PRE>

<P>A long listing displays seven columns of information about each file. In the first line of the listing,

<BR></P>

<TABLE BORDER>

<TR>

<TD>

<P>-rwxr-xr&#151; </P>

<TD>

<P>indicates the file's type and permissions</P>

<TR>

<TD>

<P>1</P>

<TD>

<P>indicates the number of links to the file</P>

<TR>

<TD>

<P>asm </P>

<TD>

<P>is the user ID of the file's owner</P>

<TR>

<TD>

<P>adept </P>

<TD>

<P>is the group ID of the group that the owner belongs to</P>

<TR>

<TD>

<P>512 </P>

<TD>

<P>is the size of the file in bytes</P>

<TR>

<TD>

<P>Dec 14 16:16 </P>

<TD>

<P>is the time stamp&#151;the date and time when the file was last modified</P>

<TR>

<TD>

<P>21x </P>

<TD>

<P>is the name of the file (refer to Figure 3.4 in Chapter 3)</P></TABLE>

<P>The first and second columns require a bit more explanation. The first column is a ten-character field that indicates the file's mode&#151;its type and its permissions. In the first line of the list, the file's mode is -rwxr-xr&#151;. The first 
character tells the file type, which is a hyphen (-) for regular files, and d for directories. In this example, the first nine items in the list are all ordinary files, and the last item is a directory.

<BR></P>

<P>The next nine characters of the entry are the file's permissions&#151;three sets of three characters that control which users may access a file and what they can do with it. The first set of three characters controls what the file's owner can do; the 
second set of three characters controls what others in the group can do; and the third set of three characters controls what all other users can do. Each set of three characters shows read (r), write (w), and execute (x) permission, in that order. A hyphen 

(-) means that the permission is denied.

<BR></P>

<P>The second column of the long listing is the number of links to this file. All the files except two&#151;p11 and t11&#151;are pointed to only from this directory. p11 and t11 have entries in three other directories, for a total of four links.

<BR></P>

<P>You should refer to the &quot;Keeping Secrets&#151;File and Directory Permissions&quot; section in Chapter 3 for a complete description of file types and for further details on file permissions. File links are covered in the &quot;Hard and Symbolic 
Links&quot; section of Chapter 3.

<BR></P>

<H3 ALIGN="CENTER">

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

<FONT SIZE=4><B>Other </B><B><I>ls </I></B><B>Options</B>

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

<P>The ls command has several options. This section covers many of the ones more frequently used.

<BR></P>

<H4 ALIGN="CENTER">

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

<FONT SIZE=3><B>Showing Hidden Files with </B><B><I>-a</I></B>

<BR></FONT></A></CENTER></H4>

<P>The ls option doesn't normally list files that begin with a period. Suppose that the directory displayed in the previous section also contained a file named .profile. In that case, you would see

<BR></P>

<PRE>$ ls -a

.           ..          .profile    21x          LINES.dat

LINES.idx   PAGES.dat   PAGES.idx   acct.pds    marsha.pds

p11         t11         users</PRE>

<P>Note that the files . and .. represent the current and parent directories, respectively.

<BR></P>

<P>You can combine options, as in this example:

<BR></P>

<PRE>$ ls -al

-rw-r&#151;r&#151;   1 marsha   adept      2156 Jul 19 1991  .

-rw-r&#151;r&#151;   1 marsha   adept      2246 Jul 19 1991  ..

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧洲综合另类在线| 成人午夜在线视频| 五月婷婷综合网| 亚洲一二三专区| 一区二区三区四区蜜桃| 亚洲精品欧美激情| 一区二区三区欧美激情| 亚洲欧美韩国综合色| 亚洲一区免费视频| 午夜欧美电影在线观看| 麻豆久久久久久| 久久99精品国产| 国产成人精品三级| 97国产精品videossex| 色婷婷综合激情| 欧美日韩国产欧美日美国产精品| 欧美日本一区二区三区四区| 7777精品伊人久久久大香线蕉的| 666欧美在线视频| 欧美变态tickling挠脚心| 久久久五月婷婷| 国产精品免费看片| 一区二区三区免费在线观看| 午夜在线成人av| 韩国三级在线一区| 北条麻妃国产九九精品视频| 欧洲一区在线观看| 精品少妇一区二区三区| 国产人成亚洲第一网站在线播放| 中文字幕在线视频一区| 亚洲国产一区二区a毛片| 久久精品国产精品亚洲综合| 国产精品一区二区在线看| 99国产精品久久久久久久久久久 | 欧美精品日韩精品| 精品国产乱码久久久久久老虎 | 另类小说综合欧美亚洲| 成人黄色小视频在线观看| 在线视频一区二区免费| 日韩精品中文字幕一区二区三区| 久久精品日产第一区二区三区高清版 | 久久久久99精品国产片| 亚洲免费在线视频一区 二区| 日韩黄色免费电影| 丁香婷婷综合色啪| 欧美人与z0zoxxxx视频| 中文字幕第一页久久| 亚洲图片一区二区| 粉嫩久久99精品久久久久久夜| 在线观看一区不卡| 国产色产综合色产在线视频| 亚洲一区二区av在线| 国产激情视频一区二区三区欧美| 欧美最猛性xxxxx直播| 久久久综合视频| 亚洲成人自拍网| 国产不卡在线播放| 538在线一区二区精品国产| 国产精品理论在线观看| 免费在线观看精品| 色婷婷激情综合| 国产欧美日韩中文久久| 日韩电影免费一区| 色综合久久久久久久久| 久久久一区二区| 免费观看一级特黄欧美大片| 91一区二区三区在线观看| 久久网站最新地址| 婷婷国产在线综合| 日本韩国一区二区三区| 亚洲国产精品精华液2区45| 久久黄色级2电影| 欧美色精品在线视频| 国产精品伦一区| 裸体歌舞表演一区二区| 欧美伦理影视网| 亚洲激情成人在线| 成人国产精品视频| 久久免费精品国产久精品久久久久| 五月婷婷综合在线| 欧洲精品在线观看| 国产精品久久久久aaaa樱花| 国产在线观看免费一区| 欧美一区二区三区免费| 亚洲一区在线视频| 色吊一区二区三区| 综合激情网...| 不卡视频在线观看| 中文字幕不卡在线| 国产成人亚洲综合a∨婷婷 | 中文字幕+乱码+中文字幕一区| 蜜桃久久久久久久| 91精品国产一区二区三区蜜臀| 亚洲综合免费观看高清在线观看| 99久久精品国产导航| 国产精品萝li| 99久久精品国产麻豆演员表| 亚洲欧洲日韩综合一区二区| 国产.欧美.日韩| 欧美国产日本视频| 成人在线视频一区二区| 国产欧美日韩亚州综合 | 欧美午夜免费电影| 亚洲国产精品影院| 欧美日韩免费一区二区三区视频| 自拍视频在线观看一区二区| 91看片淫黄大片一级在线观看| 亚洲欧洲一区二区三区| 一本大道综合伊人精品热热| 亚洲精品va在线观看| 欧美丝袜丝交足nylons| 天天影视涩香欲综合网| 欧美一区二区三区免费视频| 精品一区二区三区免费视频| 久久久久国产精品免费免费搜索| 国产a视频精品免费观看| 中文欧美字幕免费| 91美女蜜桃在线| 亚洲地区一二三色| 精品国产乱码久久久久久蜜臀| 国产精品一二三四五| 国产精品久久久久久久裸模| www.av亚洲| 亚洲成人www| 久久亚洲综合色一区二区三区| 北条麻妃一区二区三区| 亚洲国产精品久久人人爱| 欧美一区三区四区| 国产资源在线一区| 综合色中文字幕| 欧美一级日韩不卡播放免费| 国产麻豆视频一区二区| 亚洲免费av网站| 欧美一级欧美一级在线播放| 国产伦理精品不卡| 一区二区三区毛片| 欧美一级日韩不卡播放免费| 粉嫩绯色av一区二区在线观看| 一区二区三区中文在线观看| 日韩女优毛片在线| av高清不卡在线| 日韩精品午夜视频| 欧美国产精品一区| 欧美三级一区二区| 国产精品99久久久久久宅男| 一区二区三区波多野结衣在线观看| 91精品久久久久久久99蜜桃| 懂色av一区二区三区免费观看| 亚洲va中文字幕| 中文成人av在线| 91精品一区二区三区久久久久久| 国产成人av电影| 午夜不卡av在线| 国产精品全国免费观看高清| 欧美精品在线观看播放| 东方aⅴ免费观看久久av| 日本大胆欧美人术艺术动态| 国产精品国产a| 日韩一区二区不卡| 色噜噜狠狠一区二区三区果冻| 久久成人综合网| 一级做a爱片久久| 国产亚洲精品7777| 7777精品伊人久久久大香线蕉超级流畅 | 色综合网站在线| 寂寞少妇一区二区三区| 亚洲一区二区三区小说| 国产精品婷婷午夜在线观看| 日韩一区二区中文字幕| 欧美性感一类影片在线播放| 大陆成人av片| 久久福利资源站| 日韩精品亚洲一区二区三区免费| 最新久久zyz资源站| 久久精品一区四区| 欧美一级在线视频| 欧美老女人第四色| 在线观看中文字幕不卡| 9色porny自拍视频一区二区| 国产精品一区三区| 久久国产福利国产秒拍| 日日欢夜夜爽一区| 亚洲一区二区视频| 亚洲女同ⅹxx女同tv| 日本一二三四高清不卡| 久久精品亚洲精品国产欧美kt∨| 7777精品伊人久久久大香线蕉| 色综合久久中文综合久久牛| 成人18视频在线播放| 国产精品自拍网站| 久久国产精品第一页| 美腿丝袜亚洲综合| 日韩精品三区四区| 亚洲国产日韩a在线播放| 亚洲一区二区三区在线看| 一区二区三区免费看视频| 亚洲日本乱码在线观看| 1区2区3区国产精品| 一区在线中文字幕| 亚洲欧美日韩综合aⅴ视频|