COMMAND LINUX REMOTELY

List of Terminal Commands For Linux Servers and Devices

A list of terminal commands for Linux, that can be used locally, or remotely via a terminal or SSH connection on some shared hosts, dedicated servers, or Linux Devices.

Episode #9-09 released on October 14, 2018

Watch on Youtube
Download MP3 Audio
Download MP4 HD Video

Today, for anyone interested in using the terminal on their own server, a shared host, or a device like a Raspberry Pi, I put you in touch with many of the commands you will need to know or have a current list of. We will go through a few basic commands, and I will, also, explain some of the tips and tricks of using Linux on a computer, including installing applications, updating the apt-get database, updating the operating system, and, also, how to reboot and shutdown the system remotely, or via terminal.

Once you have accessed your shared host, dedicated server, or Linux based device, you get a multitude of basic commands you can use to do things. Note: most of the commands will work on the majority of Linux distributions, however, I can only guarantee they work on Debian based Linux distros that use APT-GET.

LS is the command that allows you to view a list of files within a current directory.
CD allows you to change directory.
MKDIR allows you to make a new folder.
RMDIR allows you to delete an empty folder.
RM allows for file deletion.
CP allows you to make a copy of a file.
MV allows you to move a file.
CHMOD allows you to change the permissions of a file, useful for servers.
SUDO, short for superuser do, allows to run commands at a superuser level.
UNZIP allows you to unzip files compressed as zip.
WGET is a command useful from getting files directly from the web.
PING is, also, a command that allows us to verify we can connect to the internet, server, or device on a local area network.
MAN, a very useful command, that shows you the manual for installed and running all commands. Need more information about SUDO, simply type man sudo in the terminal.

If a command you need is missing, you can use the following command:

sudo apt-get install application

Replace application with name of application you need. You may periodically need to update the resources and information of APT-GET, and you do this by doing the following:

sudo apt-get update

However, APT-GET is not the only thing that needs updating, your Linux server, or device may need updating. This is easy within the graphic user interface, but if you really want to geek out, you do the following:

sudo apt-get update
sudo apt-get dist-upgrade

To it in that order, this way everything is updated. It may take a while, but it does have to download the latest files. To update to the latest release, you need to use the following command:

sudo do-release-upgrade

Now, many of the apt-get commands will only work on dedicated servers, or local devices. It may not work on shared hosting, and neither will the following commands. The following commands will allow you to reboot or shutdown devices within the terminal, whether locally, or remotely.

To reboot a Linux device, the command is: sudo reboot
To shutdown a Linux device, the command is: sudo shutdown -r now

Host : Steve Smith | Music : | Editor : Steve Smith | Producer : Zed Axis Dot Net

Sources & Resources

Community Comments

Share your thoughts, opinions and suggestions

Login or Register to post Your comment.