Linux ls command

One of the most basic and used commands in a Linux environment is ls. It stands for list and displays the content of a folder. In this article, we’ll show the most useful usage of the Linux ls command.

Display the content of a folder including hidden files and additional information

ls -la

* Note: l stands for long, it will display additional information about the files and directories
* Note: a stands for all, it will display hidden files as well

Display inodes’ numbers using ls

ls -i

Display files and directories, sorting by size

ls -S

Show output in a human-readable format

ls -lh

You can use any of the above-mentioned options in combination with the other to view the desired outcome.

  • 0 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

Linux tar Command

The Linux tar command is used to compress and extract files to and from an archive. In this...

Linux top command

If you wish to monitor the performance of your VPS or Dedicated server and track processes, RAM...

Linux ping command

If you wish to test your connection to a server from your Linux system you can use the Linux ping...

Linux file command

The file command is used to check a file’s type and contents in Linux environment. It is most...

Linux export command

When you’re managing your shell’s variables and you wish to save them to your environment you can...