SSH Shell access allows you to do many things, such as view your directories, the date they were last modified or written, subdirectories, and more. Knowing SSH is not mandatory for running a dedicated server, but it will help you if you want to save money or don’t want to buy a control panel.
Here are some of the most popular shell commands for viewing files in SSH.
At the command prompt, enter: “ls“. This will list the contents of your current directory.
You should see something like the following sample contents:
[root@restoretmp diva]# ls
file.html public_html test
[root@restoretmp diva]#
These contents will normally be color coded, though. For example, folders might be blue and files could be white, etc.
“ls” or (list) has a great many options. For example…
“ls -a” in the same directory will show:
[root@restoretmp diva]# ls -a
. .. .bash_logout .bash_profile .bashrc file.html public_html test
[root@restoretmp diva]#
As you can see, the “-a” option allows you to see all the files in the directory, including the hidden ones!
“ls -l” on the other hand will show the longer format, including group owner size, the date modifies, and file permissions.
“ls -R” lists the contents in all of the subdirectories.
What’s great about these commands is that you can also mix these options. For example:
“ls -al” will produce a long list of all the files in the directory, including the hidden ones.
You can also view directories without actually moving into them. For example, “ls /home/diva” from the root will show:
[root@restoretmp root]# ls /home/diva
file.html public_html test
[root@restoretmp root]#
More Dedicated Web Hosting Help!

