How to view the catalog in linux
This article is to share with you how to view the catalog in linux. I believe most people have not learned this skill. In order to make you understand better, I have summarized the following contents. Without saying much, let's read on.
You can use the ls command to view the directory under linux.
The ls command lists everything in the current directory.
The syntax format of the ls command is:
# ls [- option] [file name or directory name]
The ls command is one of the most commonly used commands in Linux because you want to view the contents of the directory at any time on the command line. If no option is added, the ls command lists only the files and directory names in the current directory. For example, to view the contents of the / etc directory, you can use the following command:
# ls / etc
If you want to list all the files in the current directory, you can use the following command:
# ls-a
After reading the above, have you mastered the method of viewing the catalog in linux? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!