How to display hidden files in Linux, Linux basics course Ashgabat

How to display hidden files in Linux, Linux basics course Ashgabat

Articles

Any serious work with Linus Torvalds' operating system will sooner or later lead to the need to display hidden files. These may be files containing account data for mounting a network partition samba. Or there may be files created by software to save important data. In any case, it is extremely easy to display hidden files in the command line - just go to Linux basics course Ashgabat.

How to display directory contents in command line, Linux basics course Ashgabat

Before anything else, let's make sure that your Linux skills are sufficient. And that you can display a list of files and directories in the current working directory. Because that's the very basics that go into basic Linux course Ashgabat. To display the contents of directories in Linux, use the command ls (From the English. List - "list").

If you enter it into the command line without additional arguments, it will show the names of files and directories located in the current working directory. In this case, the working directory is the directory in which you are currently working. By default, each user starts working in their home directory, the path to which is indicated by the tilde symbol - "~" If you want to see the contents of another directory, you will have to specify the path to it as an argument after the command.

Additionally, there is a way to get more detailed output from the command ls. To do this, add the option to it -l (From the English. Long — "long"). In this case, the output will contain the following data in addition to the name:

  • file or directory type;
  • access rights;
  • owner;
  • owner user group;
  • file size;
  • file creation date;
  • date of last modification.

However, the output will still not take into account the presence of hidden files in the directory. That is, by default, the command ls simply ignores them. Because in Linux hidden file names start with a dot - "." To display them, you need to use additional options provided by the developers.

We recommend that you sign up for online training and complete it Red Hat Linux courses Ashgabat at home. Today, this is one of the most reliable ways to start learning IT from scratch in Turkmenistan. Enroll today to become a sought-after specialist in 2023!

How to make ls show hidden files

Now let's try to force the team ls display all hidden files in the directory. For this purpose, the utility developers have provided a special option — -a. With its help, you will be able to see in the list of output files those whose names begin with a dot. That is, hidden files - regardless of whether they were created by the system, another user or you.

In addition, this way you will be able to confidently use hidden files in Linux. For example, to store important information, account data or other important content. Find out more examples of using hidden files in our Linux Lecture Course Ashgabat. Which can be completed remotely by anyone who wishes to do so on the university platform. SEDICOMM.

To study, you will need an hour of free time a day, a desire to learn and improve your skills. And also access to the Internet and a computer. For our part, we will provide you with an up-to-date textbook from LPI, lectures from the best teachers, a virtual environment for practice and an international certificate upon completion of exams. Enroll in our courses to radically change your life for the better! And raise your own expertise to a new level together with SEDICOMM!

Our team SEDICOMM University: Cisco Academy, Linux Professional Institute, Python Institute.