Advanced Linux commands cheat sheet for developers

Updated: 4/11/2017

This cheat sheet helps developers build their skills by experimenting with new ways to develop web applications on Red Hat Enterprise Linux. In particular, throughout the course of this cheat sheet author Maxim Burgerhout walks through the development of a LAMP application as an example.

This cheat sheet explains how to:

  • Started developing a web application on Red Hat Enterprise Linux 7.

  • Set up a SELinux boolean.

  • Run a program in your shell's background.

  • Use Java instead of PHP.

 
Cover image for the Advanced Linux Commands cheat sheet

Get Advanced Linux Commands now

 

 

Intro to Advanced Linux

Simple commands for Linux developers

As an example scenario, we are going to pretend we are developing a LAMP (Linux, Apache, MariaDB and PHP) application on single machine running Red Hat Enterprise Linux 7. As a first step, we’re going to install Apache, PHP and MariaDB (the drop-in replacement for MySQL that’s shipped with Red Hat Enterprise Linux 7), and start the appropriate services:

 

# yum -y install httpd mariadb-server php-mysql php

Installs the correct packages to start developing a LAMP application: the Apache webserver,

the base packages for PHP, and a MariaDB server, including MySQL bindings for PHP.

$ systemctl status httpd

Show information about httpd, including process ID, child processes,

time since startup, what man pages are available, the most recent log messages, and more.

# systemctl start httpd mariadb

Start the httpd and mariadb services. Instead of ‘start’, you can

also use stop or restart, for obvious use cases

# systemctl enable httpd mariadb

Enable the httpd and mariadb services to start at next boot.

You can also use disable, mask or unmask.

Get Advanced Linux Commands now