-a Lists all entries, including those that begin with a dot (.), which are normally not listed. -l Lists in long format, giving mode, ACL indication, number of links, owner, group, size in bytes, and time of last modification for each file (see above). If the file is a special file, the size field instead con- tains the major and minor device numbe...
by meteorm - Linux文档专区 - 2007-09-20 16:39:39 阅读(911) 回复(0)
import java.io.*; public class Execunix { public static void main(String[] args) throws IOException { for (int i=0; i Runtime.getRuntime().exec("ls -l /tmp/file? > /tmp/data_collect"); Runtime.getRuntime().exec("rm -f /tmp/file?"); } } 本文来自Chinaunix博客,如果查看原文请点:http://blog.chinaunix.net/u2/75083/showart_1110525.html
本帖最后由 ganybo 于 2011-01-20 11:44 编辑 用ftp登陆unix系统后用di、ls查看文件,文件和目录无法显示出来,pub下面是有目录和文件的。但用root登陆就可以。过程如下: #ftp 110.134.30.136 Connected to 110.134.30.136. 220- 220 scosysv FTP server (Version wu-2.6.2(1) Thu Aug 3 02:08:20 EDT 2006) ready. Name (10.34.0.36:root): ftp 331 Guest login ok, send your complete e-mail address as password. Passwo...
#ls 200 PORT command successful. 150 ASCII data connection for /bin/ls (192.168.0.136,4267) (0 bytes). 226 ASCII Transfer complete. 显示以上内容
#ls\r\n200 PORT command successful.\r\n150 ASCII data connection for /bin/ls (192.168.0.136,4267) (0 bytes).\r\n226 ASCII Transfer complete.\r\n显示以上内容
/* * 对UNUX V7 ls命令原代码的注释。 * 位置:unix V7/usr/src/cmd/ls.c */ #include #include #include #include #define NFILES 1024 FILE *pwdf, *dirf; char stdbuf[BUFSIZ]; /* struc lbuf 封装了对ls有用的struct stat */ struct lbuf { union { char lname[15]; char *namep; //文件名 } ln; char ltype; //文件类型 short lnum; //索引结点号 short lflags; //权限位 short lnl; //链接数...