alexa

What is SSH/Command Line Access?


test
test
test
You are reading   Back To Support

Knowledge Base Tutorials

Every web hosting customer must learn to execute basic SSH commands. A learning developer or a coder must gain knowledge in basic SSH commands so that they can conduct small projects. SSH commands are an important aspect of a web hosting servers because they are running on Linux server OS or Windows server OS. Millions of web hosting companies running services on SSH terminal commands. SSH is a language to create, edit, and remove the internal elements of the server.

What is SSH/Command Line Access?

The readers might have a hard time understanding the aspects of the command line. We are going to explain the origins and purpose of the SSH run command in detail. SSH full form is Secure SHell Commands used by professional web hosting company to communicate with the servers.

Web hosting control panel is a stage for the customers, and it allows the registered customers to access accounts via SSH. Millions of people have gotten used to the cPanel control panel, which is an industry standard user-friendly interface. cPanel cannot execute several tasks, which are possible with basic SSH commands.

SSH Command Line is a manual method to control, operate and make changes to the server. It can execute tasks that a regular cPanel control panel or similar interface cannot implement. It is one of the major reasons, why industry experts recommend the web hosting customers to learn basic SSH commands.

Windows OS Command Line:


Windows command line

Linux OS Terminal:


Linux Command Line

The above two images display desktop environment command lines, and the significance is similar to one and another. We have utilized the images for representation purposes only, and the web hosting GUI interface might differ from the snapshots. Also, keep in mind that the SSH executes remote command also available in several web hosting providers accounts.


List of Basic SSH Commands

No one would tell you this until the learner realizes it that SSH Commands is a programming language. In short, it is a computer language to communicate between Hardware, OS, and Software. A new language can add stress to the mind as the newer form of words does not record into the mind easily. The first few days can create confusion and challenging, so brace yourself.

Note: Every command should be in small letters, even though it is not a custom, but it is a tradition.

CommandSummary
touchCreate a new file from scratch.
mkdirCreate a new folder (directory).
vi/nanoUsers can edit texts using vi and nano commands.
historyView last fifty commands.
lsView directory contents such as names of files.
pwdView show current directory of the full path to where you are right now.
cp/mvMove file/folder and Move file/folder.

Everyone must learn the beginning commands to start working on create, edit, view, copy, and move. The above commands represent a list of basic SSH commands that every newbie enters to implement a task.


How to use SSH commands?

Now, you might be wondering, how to implement the commands in SSH Command Line and we can demonstrate it. In this demonstration, we are going to take the users through a basic creation, edit, and finding the current working directory.

How to create a new file?

By learning the basic SSH commands, you can start working on the new file immediately.

[root@v124566 `]# touch Project1

[root@v124566 `]# ls

cpanel13-skel perl5 Prohect1 tmp

[root@v124566 `]#


The command line or terminal has default codes appearing in it, so do not get confused over additional information in the window. I have used commands like (touch “filename”) to create a new file. You can view the contents of the file by entering (ls), and it will view other files in it as well, and in this case, a TEMPORARY file is saved in it.

How to edit a file?

Launch the terminal or Windows command prompt, and start editing a file by using a text editing command. Type (vi or nano) to start editing a text file in it.

The editor does not appear within the terminal so that an additional window will appear on the screen. Start editing the text in the editor and you can save the contents in the file.

Enter your text here.........

How to create a directory?

Creating a new directory using the command line is a piece of cake. The customers must enter the right commands to create a new directory from scratch.

[root@v124566 `]# mkdir newfolder

[root@v124566 `]# ls

cpanel13-skel newfolder perl5 tmp

[root@v124566 `]#


In the above code, I have used (mkdr “folder name”) to create a new directory. Of course, you can call it a new folder as well, and the users have the right to create a custom folder as well. I have used (ls) command to view the contents inside of the new folder. As per the server, a TEMPORARY file saved in the new folder.

How to find the current working directory?

There are times when experts get confused over the working directory. The command lines come in handy to identify the current working directories.

[root@v124566 `]# pwd

/root

[root@v124566 `]#


In the above code, you can view the number of commands I have used to go back to the working directory. I have listed (pwd) command line in the listed basic SSH commands list, and you can utilize it to identify the working folders.

Other SSH Terminal Commands

Adding a bonus to the content is like adding the cherry on top of the cake. We are going to introduce new commands to make life easier. Anyone can perfect the basics successfully, until or unless, they are practicing daily.

mv: Instead of moving the file from one place to another place, the command users can rename the files as well.

find: It is a basic command line that millions of programmers utilize to find the lost items in the directory.

cat: It is an important SSH command in Unix to find merged files and view contents in a file.

ls: The SSH command line is an ultimate weapon to view all files included hidden files in a folder, directory, and contents of a file as well.

These four Secure Shell Commands improves visibility, editing and finding an element in a messed up scenario.


Conclusion

Learning basic SSH commands are general knowledge in programming, and it is a beginning of everything. Mastering the basics is an important step towards advanced methodologies. Let us know what we have missed covering in the Linux SSH command lists in the comment section below.

Still have questions? Check our forum!
test
test
test