文件名称:1234
介绍说明--下载内容均来自于网络,请自行研究使用
完成一个目录复制命令mycp,包括目录下的文件和子目录, 运行结果如下:
beta@bugs.com [~/]# ls -l sem
total 56
drwxr-xr-x3 beta beta 4096 Dec 19 02:53 ./
drwxr-xr-x8 beta beta 4096 Nov 27 08:49 ../
-rw-r r 1 beta beta128 Nov 27 09:31 Makefile
-rwxr-xr-x1 beta beta 5705 Nov 27 08:50 consumer*
-rw-r r 1 beta beta349 Nov 27 09:30 consumer.c
drwxr-xr-x2 beta beta 4096 Dec 19 02:53 subdir/
beta@bugs.com [~/]# mycp sem target
beta@bugs.com [~/]# ls -l target
total 56
drwxr-xr-x3 beta beta 4096 Dec 19 02:53 ./
drwxr-xr-x8 beta beta 4096 Nov 27 08:49 ../
-rw-r r 1 beta beta128 Nov 27 09:31 Makefile
-rwxr-xr-x1 beta beta 5705 Nov 27 08:50 consumer*
-rw-r r 1 beta beta349 Nov 27 09:30 consumer.c
drwxr-xr-x2 beta beta 4096 Dec 19 02:53 subdir/
说明:
Linuk: mkdir,opendir,readdir,symlink,readlink等系统调用
Windows:CreateDirectory,FindFirstFile,FindNextFile等函数-Complete a directory replication command mycp, including files and subdirectories, operating results are as follows: beta@bugs.com [~ /]# ls-l sem total 56 drwxr-xr-x3 beta beta 4096 Dec 19 02:53 ./ drwxr-xr-x8 beta beta 4096 Nov 27 08:49 ../-rw-r- r- 1 beta beta128 Nov 27 09:31 Makefile-rwxr-xr-x1 beta beta 5705 Nov 27 08:50 consumer*-rw-r- r- 1 beta beta349 Nov 27 09:30 consumer.c drwxr-xr-x2 beta beta 4096 Dec 19 02:53 subdir/beta@bugs.com [~ /]# mycp sem target beta @ bugs.com [~ /]# ls-l target total 56 drwxr-xr-x3 beta beta 4096 Dec 19 02:53 ./ drwxr-xr-x8 beta beta 4096 Nov 27 08:49 ../-rw-r r- 1 beta beta128 Nov 27 09:31 Makefile-rwxr-xr-x1 beta beta 5705 Nov 27 08:50 consumer*-rw-r- r- 1 beta beta349 Nov 27 09:30 consumer.c drwxr-xr-x2 beta beta 4096 Dec 19 02:53 subdir/Descr iption: Linuk: mkdir, opendir, readdir, symlink, readlink system calls Windows: CreateDirectory, FindFirstFile, FindNextFile and other functions
beta@bugs.com [~/]# ls -l sem
total 56
drwxr-xr-x3 beta beta 4096 Dec 19 02:53 ./
drwxr-xr-x8 beta beta 4096 Nov 27 08:49 ../
-rw-r r 1 beta beta128 Nov 27 09:31 Makefile
-rwxr-xr-x1 beta beta 5705 Nov 27 08:50 consumer*
-rw-r r 1 beta beta349 Nov 27 09:30 consumer.c
drwxr-xr-x2 beta beta 4096 Dec 19 02:53 subdir/
beta@bugs.com [~/]# mycp sem target
beta@bugs.com [~/]# ls -l target
total 56
drwxr-xr-x3 beta beta 4096 Dec 19 02:53 ./
drwxr-xr-x8 beta beta 4096 Nov 27 08:49 ../
-rw-r r 1 beta beta128 Nov 27 09:31 Makefile
-rwxr-xr-x1 beta beta 5705 Nov 27 08:50 consumer*
-rw-r r 1 beta beta349 Nov 27 09:30 consumer.c
drwxr-xr-x2 beta beta 4096 Dec 19 02:53 subdir/
说明:
Linuk: mkdir,opendir,readdir,symlink,readlink等系统调用
Windows:CreateDirectory,FindFirstFile,FindNextFile等函数-Complete a directory replication command mycp, including files and subdirectories, operating results are as follows: beta@bugs.com [~ /]# ls-l sem total 56 drwxr-xr-x3 beta beta 4096 Dec 19 02:53 ./ drwxr-xr-x8 beta beta 4096 Nov 27 08:49 ../-rw-r- r- 1 beta beta128 Nov 27 09:31 Makefile-rwxr-xr-x1 beta beta 5705 Nov 27 08:50 consumer*-rw-r- r- 1 beta beta349 Nov 27 09:30 consumer.c drwxr-xr-x2 beta beta 4096 Dec 19 02:53 subdir/beta@bugs.com [~ /]# mycp sem target beta @ bugs.com [~ /]# ls-l target total 56 drwxr-xr-x3 beta beta 4096 Dec 19 02:53 ./ drwxr-xr-x8 beta beta 4096 Nov 27 08:49 ../-rw-r r- 1 beta beta128 Nov 27 09:31 Makefile-rwxr-xr-x1 beta beta 5705 Nov 27 08:50 consumer*-rw-r- r- 1 beta beta349 Nov 27 09:30 consumer.c drwxr-xr-x2 beta beta 4096 Dec 19 02:53 subdir/Descr iption: Linuk: mkdir, opendir, readdir, symlink, readlink system calls Windows: CreateDirectory, FindFirstFile, FindNextFile and other functions
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验五
......\linux
......\.....\LINUXCP.c
......\windows
......\.......\winmycp.cpp