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 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

SSH ip command

If you wish to obtain information about your server’s IP on a Linux machine using SSH you can use...

SSH rm command

If you wish to remove a file or folder from your Linux system you can use SSH rm command. In this...

SSH echo command

One of the most useful commands in a Linux environment is echo. With it, you can provide output...

SSH history command

If you wish to find what commands you have previously executed in a Linux environment you can use...

SSH cd command

SSH cd command is mainly used to navigate in your Linux environment. In this article, we’ll show...

Powered by WHMCompleteSolution