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 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

Linux tar Command

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

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...

Linux su command

The su command is most commonly used to switch to another user. You will then be able to run...

Linux wc command

If you’re interested in finding the word count or lines of a file in your Linux environment you...

Powered by WHMCompleteSolution