반응형
File : 파일의 종류 (type) 를 볼 수 있는 명령어
[root@system1 ~]# file file1
Example>
[root@system1 ~]# mkdir -p /test
[root@system1 ~]# rm -rf /test/*
[root@system1 ~]# cd /test
.
0 directories, 0 files
[root@system1 /test]# cp /etc/passwd file1
[root@system1 /test]# mkdir dir1
[root@system1 /test]# ln -s file1 file2
[root@system1 /test]# cp /bin/ls file3
.
├── dir1
├── file1
├── file2 -> file1
└── file3
1 directory, 3 files
[root@system1 ~]# file file1
file1: ASCII text
[root@system1 ~]# file dir1
dir1: directory
[root@system1 ~]# file file2
file2: symbolic link to `file1'
[root@system1 ~]# file file3
file3: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=ceaf496f3aec08afced234f4f36330d3d13a657b, stripped
반응형
'CentOS > Study' 카테고리의 다른 글
[Linux]Pico Editor (0) | 2019.12.08 |
---|---|
Linux - Prompt (0) | 2019.08.31 |
Linux - Home Directory Structure (0) | 2019.08.25 |
Linux - Directory Structure (0) | 2019.08.25 |
Class Arrangement Note 1 (0) | 2019.08.24 |