文件名称:myls
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- 叶*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
完成ls的如下功能
不带参数的ls:列出当前目录下的非隐藏(文件和目录名不以.开头)的文件和目录
ls -a:列出当前目录下的所有文件和目录
ls -l:以长列表形式列出当前目录下的非隐藏的文件和目录。每个文件或目录只要求列出如下信息:类型与权限、文件名、链接数、用户ID、组ID、字节大小、块数
ls 路径名:如果路径名代表一个存在的文件则显示该文件,否则提示出错;如果路径名字代表一个存在的目录则列出该目录中的文件
列出文件名和目录名时,要求可执行文件最后加上一个*号,目录名最后加上一个/号。
所提供的路径名可以包含“.”,“..”,“~”等特殊目录-completion of the following non-functional parameters of ls : listed in the current directory-hidden (files and directories were not. Beginning) of files and directories ls-a : listed in the current directory of all files and directories ls-l : in the long list of current directory listed under the non-hidden possession of files and directories. Each file or directory only asked to list the following information : the type and competence, file name, number of links, the user ID and group ID, byte size, a few blocks ls path : If a path representatives of the document showed documents suggest otherwise error; If representatives of a path name the presence of the directory lists the directory lists the file name and directory name, asked executable file with a* Finally, the last name of the
不带参数的ls:列出当前目录下的非隐藏(文件和目录名不以.开头)的文件和目录
ls -a:列出当前目录下的所有文件和目录
ls -l:以长列表形式列出当前目录下的非隐藏的文件和目录。每个文件或目录只要求列出如下信息:类型与权限、文件名、链接数、用户ID、组ID、字节大小、块数
ls 路径名:如果路径名代表一个存在的文件则显示该文件,否则提示出错;如果路径名字代表一个存在的目录则列出该目录中的文件
列出文件名和目录名时,要求可执行文件最后加上一个*号,目录名最后加上一个/号。
所提供的路径名可以包含“.”,“..”,“~”等特殊目录-completion of the following non-functional parameters of ls : listed in the current directory-hidden (files and directories were not. Beginning) of files and directories ls-a : listed in the current directory of all files and directories ls-l : in the long list of current directory listed under the non-hidden possession of files and directories. Each file or directory only asked to list the following information : the type and competence, file name, number of links, the user ID and group ID, byte size, a few blocks ls path : If a path representatives of the document showed documents suggest otherwise error; If representatives of a path name the presence of the directory lists the directory lists the file name and directory name, asked executable file with a* Finally, the last name of the
(系统自动生成,下载前可以参看下载内容)
下载文件列表
myls.c