-
How to read ls resultlinux 2023. 2. 20. 16:17
When you run the ls command in Linux, you may see some characters preceding the file or directory names. Here's what each of these characters mean:
- -: The file is a regular file. This is the default file type, and it indicates that the file is not a directory, symbolic link, or any other special file type.
- d: The file is a directory.
- l: The file is a symbolic link (also called a "soft link" or "symlink"). This is a special type of file that acts as a pointer to another file or directory.
- b: The file is a block device. This is a special type of file that represents a device that can be accessed in fixed-size blocks, such as a hard disk.
- c: The file is a character device. This is a special type of file that represents a device that can be accessed as a stream of characters, such as a serial port. (ex : keyboard, mouse and so on)
'linux' 카테고리의 다른 글
How to copy file or directory in linux (cp) (0) 2023.02.20 How to delete file and directory in linux (rm) (0) 2023.02.20 How to change current directory in Linux (cd) (0) 2023.02.20 How to make directory, folder in Linux (mkdir) (0) 2023.02.20 Linux file list (ls) (0) 2023.02.20