0 0 Votes

Linux/Ubuntu: List of files of the current terminal directory

Question by Guest | 21/02/2018 at 19:57

Thanks for the tip on how to navigate through the folders in the Linux terminal. The terminal commands "cd FolderName" to open a folder or "cd .." to get out again have really helped me.

Now, I would like to see the files that are stored in the corresponding folders. Is there also a command for this? I am searching for a command to get a list of all files from the folder I'm in the terminal at the moment?

ReplyPositiveNegative

Progger99

Show Profile | Message
Avatar
0Best Answer
0 Votes

It is sufficient to just type "ls" (list) for a simple list or "ll" for an extended list.

Of course there are also a lot of parameters for ls available to adjust the list to your needs. For example:

  • ls -a also displays hidden files
  • ls --author shows the author of the files
  • ls -l shows information about date, size and write permissions
  • ls -lh shows a list similar to the known Explorer list (corresponds to the ll command)
  • ls -R also shows the contents of all directories below the directory

Of course, this is just a small selection of all possible parameters you can pass. For an overview of other parameters and commands, enter "ls --help" into the terminal.

In addition, the parameters can also be combined with each other. For example "ls -a -R".
22/02/2018 at 16:00

ReplyPositive Negative
Reply

Related Topics

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own articles on askingbox.com. How to do.