00 Votes

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

Question by Guest | 2018-02-21 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
0Best Answer0 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".
2018-02-22 at 16:00

ReplyPositive Negative
Reply

Related Topics

VirtualBox: Change Date and Time

Tutorial | 10 Comments

Change Date of File

Tutorial | 0 Comments

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 article on askingbox.com. That’s how it’s done.