How to list the account Files and Directories with SSH?

Naturally, at some point you would need to get information about what is stored on your account. The most common command to list all of your account Files and Directories is:

ls

The ls command writes to standard output without any additional formatting nor information.

Of course you can add additional options to it in order to make your files and directories listing more accurate to your needs.

Here are some of the most popular

ls -a 

The -a will list all of the files and folders including the hidden ones. In short -a stands for -all.

ls -l 

Lists all files and folders and includes a column to show information like permissions, last modified, owner and group.  In short -l stands for -long.

ls -R

This option will list your files, folders and subfolders recursively. In short -R stands for -Recursive.

ls -t

This option lists files and folders starting with the last modified.

Moreover you can make different combinations to make the listing more structured and even more accurate. for example:

ls -la  – Lists all files and folders (including hidden ones) with additional information.

ls -hl  – Lists all files and folder in human readable format which -h standards for.

For detailed information and all options you can use  ls –help. The Linux help is quite a handy manual with detailed information on how to use different commands and it is accessed by typing in the terminal command –help (ls –help)  or man command (man ls).

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