编译和运行结果:
digdeep@ubuntu:~/uulp$ gcc -Wall -o ls1 ls1.c
digdeep@ubuntu:~/uulp$ ./ls1 /etc/network/
/etc/network/:
drwxr-x--- 2 root root 4096 Apr 26 07:03 if-down.d
drwxr-x--- 2 root root 4096 Jul 14 10:47 if-up.d
drwxr-x--- 2 root root 4096 Apr 26 07:05 if-pre-up.d
drwxr-x--- 6 root root 4096 Jun 14 05:34 .
drwxr-x--- 2 root root 4096 Apr 26 07:05 if-post-down.d
-rwrr----- 1 root root 196 Jun 14 05:33 interfaces
drwxr-x---147 root root 12288 Sep 19 20:33 ..