Basics of the using the Linux Command line / SSH - Part 3:

Things you will need:

  • To be connected via SSH or on the terminal of a Linux machine.

Video Description:

This is a part three of a short video series discussing some basics of using the Linux command line.

Aimed at users new to the Linux command line this tutorial gives advice and information for using the Linux command line after connecting to the terminal or via ssh.

Useful links / code from the video:

yum update && yum upgrade - Updates software repository and if successful upgrades installed software on the system.

df -h -View space available on the server in a human readable format.

lsblk - list disks, partitions and volumes for the server.

lscpu - Details of server cpus.

top - View live system usage information

free - View available and used memory.

ssh [email protected] - Connect via SSH from one Linux machine to another (in this case connect to the root user account for myserver.serverdown.co.uk)

ss -plnt - List processes listening on TCP along with their port numbers.

hotnamectl set-hostname chosenhostname.serverdown.co.uk - Set the hostname on a Centos system.

hotnamectl status - Check the hostname of the system

Related content:

Recommended prior reading / viewing:

- Part 1 of this series (Video)

- Part 2 of this series (Video)

Recommended follow up reading / viewing:

- Transferring files between Linux machines (Written)