Command Line Tools for Managing Linux Server
The SSH command allows you to log in to a remote machine as well as execute commands on a remote machine. When performed as the root user, this method of connecting to the server provides the greatest level of control over the server.
We recommend using OpenSSH, the premier open-source connectivity tool for remote login with the SSH protocol. OpenSSH encrypts all traffic to eliminate eavesdropping, connection hijacking, and other attacks. In addition, OpenSSH provides a large suite of secure tunneling capabilities, several authentication methods, and sophisticated configuration options.
As the administrator of a Linux VPS or Dedicated Server, you will undoubtedly find a number of situations that require accessing the server over SSH and performing commands through the terminal. For a step-by-step guide on accessing the server over SSH, view our Knowledgebase article, How to SSH Your Virtual or Dedicated Server (Linux). In this blog, we have compiled a short list of SSH commands, which are most commonly used in managing a virtual or dedicated Linux server.
cd: change directory
The cd command is used to navigate to a specified directory.
Example usage:
# cd /var
Moves the user to the /var directory.
pwd: print working directory
The pwd command is used to provide the full pathname of the current directory.
Example usage:
# pwd
Prints full pathname of the current directory.
yum: yellowdog updater modified
The yum command is an interactive, automated update program which can be used for maintaining systems using rpm.
Example usage:
# yum update <package name>
Updates the package “package name”.
nano: GNU nano text editor
The nano command opens a specified file with the GNU nano text editor.
Example usage:
# nano /path/to/file.txt
Opens file.txt with command line text editor.
mkdir: make directory
The mkdir command creates a new directory.
Example usage:
# mkdir /folder_name
Creates new directory, “folder_name”.
rm: remove
The rm command is used to delete files and directories.
Example usage:
# rm photo.jpg
Deletes the photo.jpg file.
mv: move
The mv command moves and/or renames files.
Example usage:
# mv file.png folder/file2.png
Moves file.png to the folder directory and renames it “file2.png”.
wget: GNU wget
The wget command retrieves content from web servers. It is commonly used to download files from public repositories.
Example usage:
# wget https://github.com/Rad-Web-Hosting/RadWebHosting-whmcs/archive/v3.0.4.tar.gz
Downloads the Rad Web Hosting Domain Reseller WHMCS module v2.1.0 from the GitHub repository.
These are just a few of the more common commands performed over SSH for Linux server management. You can find more in-depth server management tips in our Knowledgebase Documentation and active clients can always get support from our Support Technicians by opening a ticket in the Hosting Dashboard.
- 5.0 from 10 reviews
SiteCheck Admin
LARRY JOHNSON
The only hosting provider I trust with my VPS
ArticleSurge Editor (ArticleSurge.com)
Very reliable and more helpful than big host companies I've used previously. Very glad to have discovered it about three years ago. I hope they continue to be supportive. The prices are good because they do not have increased renewal fees like almost everyone else.
LARRY JOHNSON
The only hosting provider I trust with my VPS
SiteCheck Admin
Artist Of
As kindly as I can say: got some really bad spam from these people and did a search and found this web hoster as a provider of them at the time. I am hoping this complaint will further facilitate ending this, spam harassment.I must update this review. I finally conquered this problem sometimes you just have to comp[lain enough about some things. Stay radical Rad Web.
LARRY JOHNSON
Very great hosting and servers. Have used for years and plan to continue on! Thanks Rad Web Hosting!
Todd Greenwald
We're a single server company that manages our box ourselves. We had to move to a new NOC in a pinch and we chose Rad Web Hosting. They were thorough and complete in the phase of learning their capabilities (their chat access is excellent), and they delivered 100% in what they said they offered. We had a new server shipped to them from Dell, they installed and provisioned immediately and turned the machine over to us ready to go with both IDRAC via VPN and Internet availability. Whenever we have had questions they have been thorough and prompt. In our >20 years of business, this is by far the best NOC we've been in.
Bitcoin Linux
Great service and support after the sale. I much like the renewal price is the same as the price I signed up with. No surprises and no games!
SiteCheck Admin
Excellent hosting service all the way through! From the helpful staff to their consistent performance and affordability. So much better than the big guys!