SSH ls command

One of the most important and widely used, yet basic 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 SSH 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 SSH ls command

ls -i

Display files and directories, sorting by size

ls -S

Show output in a human-readable format with SSH ls command

ls -lh

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

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Linux tar Command

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

How to Install WordPress via SSH

Since WordPress is the most widely used CMS it’s installation process has been made as simple and...

SSH Execute Command on a Remote server

Via SSH you can connect to a remote server’s shell. This will allow you to execute commands on...

How to connect to your shared hosting account via SFTP with FileZilla

SFTP is a convenient way to use SSH, while also using the interface of a simple FTP. In order to...

SSH netstat command

If you wish to debug or track statistics of your network in a Linux environment you can use SSH...