Linux——作业1

1、列出:/dev目录下以tty开头后面是数字1-63的文件,并统计文件个数
ls /dev/tty[1-9] /dev/tty[1-9][0-9]
ls /dev/tty[1-9][0-9] /dev/tty[1-9]|wc
2、统计/etc目录下有多少个文件、目录、链接
find /etc/ -type f|wc -l
find /etc/ -type d|wc -l
find /etc/ -type l|wc -l
3、建立一个文件的硬链接,找出具有统一链接号的所有文件
ln /etc/issue /tmp/issue.hard
ls -i /tmp/issue.hard
find /tmp -inum 2054489
ls -il|grep ^2054489

你可能感兴趣的:(Linux——作业1)