Command line tools for managing linux server

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.1.0.tar.gz

Downloads the Rad Web Hosting Domain Reseller WHMCS module v3.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.

 

Avatar of editorial staff

Editorial Staff

Rad Web Hosting is a leading provider of web hosting, Cloud VPS, and Dedicated Servers in Dallas, TX and Phoenix, AZ.

One thought on “Command Line Tools for Managing Linux Server

  1. […] control panel is an easy way to manage your virtual servers. It can be installed on any server with SSH commands. Several hosting providers offer pre-installed Webuzo control […]

Leave a Reply

lg